Android build errors

Common bugs/problems with the Android SDK the Emulator and the ADT-Plugin.

Android build errors

Postby rescue » Sat Feb 26, 2011 9:49 am

Hello!

I trying to build android: $ source build/envsetup.sh $ lunch $ make

After make, I got many errors that files cannot find stdlib.h string.h
unistd.h and other .h files.

Am I right that I need to add in build/core/config.mk in SRC_HEADERS
path bionic/libc/include. I have tried it but I got too many mistakes
in .h files within bionic/libc/include directory.

I am trying to build Android froyo 2.2 for ARM platform. Host - 64-bit
machine, Linux OpenSuse.

here are some logs after build:

bionic/libc/include/stdio.h:240: error: expected declaration specifiers or '...' before 'off_t'
bionic/libc/include/stdio.h:241: warning: type defaults to 'int' in declaration of 'fpos_t'
bionic/libc/include/stdio.h:241: error: expected ';', ',' or ')' before '*' token
bionic/libc/include/stdio.h:243: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ftello'
bionic/libc/include/stdio.h:270: error: expected declaration specifiers or '...' before '__va_list'
bionic/libc/include/stdio.h:270: warning: conflicting types for built-in function 'vfprintf'
bionic/libc/include/stdio.h:271: error: expected declaration specifiers or '...' before '__va_list'
bionic/libc/include/stdio.h:271: warning: conflicting types for built-in function 'vprintf'
bionic/libc/include/stdio.h:272: error: expected declaration specifiers or '...' before '__va_list'
bionic/libc/include/stdio.h:272: warning: conflicting types for built-in function 'vsprintf'
bionic/libc/include/stdio.h:278: error: expected declaration specifiers or '...' before '__va_list'
bionic/libc/include/stdio.h:278: warning: conflicting types for built-in function 'vfscanf'
bionic/libc/include/stdio.h:281: error: expected declaration specifiers or '...' before '__va_list'
bionic/libc/include/stdio.h:281: warning: conflicting types for built-in function 'vscanf'
bionic/libc/include/stdio.h:284: error: expected declaration specifiers or '...' before '__va_list'
bionic/libc/include/stdio.h:284: warning: conflicting types for built-in function 'vsnprintf'
bionic/libc/include/stdio.h:287: error: expected declaration specifiers or '...' before '__va_list'
bionic/libc/include/stdio.h:287: warning: conflicting types for built-in function 'vsscanf'
bionic/libc/include/stdio.h:349: error: expected declaration specifiers or '...' before '__va_list'
bionic/libc/include/stdio.h:361: error: expected declaration specifiers or '...' before 'fpos_t'
In file included from bionic/libc/include/sys/select.h:32,
from bionic/libc/include/unistd.h:34,
from build/tools/acp/acp.c:14:
bionic/libc/include/sys/time.h:33:24: error: linux/time.h: No such file or directory
In file included from bionic/libc/include/sys/select.h:32,
from bionic/libc/include/unistd.h:34,
from build/tools/acp/acp.c:14:
bionic/libc/include/sys/time.h:37: warning: 'struct timezone' declared inside parameter list
bionic/libc/include/sys/time.h:37: warning: its scope is only this definition or declaration, which is probably not what you want
bionic/libc/include/sys/time.h:37: warning: 'struct timeval' declared inside parameter list
In file included from bionic/libc/include/unistd.h:34,
from build/libs/host/CopyFile.c:16:
bionic/libc/include/sys/select.h:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fd_set'
bionic/libc/include/sys/time.h:38: warning: 'struct timezone' declared inside parameter list
bionic/libc/include/sys/time.h:38: warning: 'struct timeval' declared inside parameter list
bionic/libc/include/sys/select.h:39: error: expected declaration specifiers or '...' before 'fd_set'
bionic/libc/include/sys/select.h:39: error: expected declaration specifiers or '...' before 'fd_set'
bionic/libc/include/sys/time.h:40: warning: 'struct itimerval' declared inside parameter list
bionic/libc/include/sys/select.h:39: error: expected declaration specifiers or '...' before 'fd_set'bionic/libc/include/sys/time.h:41: warning: 'struct itimerval' declared inside parameter list
bionic/libc/include/sys/time.h:43: warning: 'struct timeval' declared inside parameter list

bionic/libc/include/sys/select.h:39: warning: 'struct timeval' declared inside parameter listIn file included from bionic/libc/include/unistd.h:34,
from build/tools/acp/acp.c:14:
bionic/libc/include/sys/select.h:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fd_set'
bionic/libc/include/sys/select.h:39: error: expected declaration specifiers or '...' before 'fd_set'
bionic/libc/include/sys/select.h:39: error: expected declaration specifiers or '...' before 'fd_set'
bionic/libc/include/sys/select.h:39: error: expected declaration specifiers or '...' before 'fd_set'
bionic/libc/include/sys/select.h:39: warning: 'struct timeval' declared inside parameter list

In file included from build/libs/host/CopyFile.c:16In file included from build/tools/acp/acp.c:14:
bionic/libc/include/unistd.h:36:30: error: linux/capability.h: No such file or directory
:
bionic/libc/include/unistd.h:36:30: error: linux/capability.h: No such file or directory
In file included from build/libs/host/CopyFile.c:16:
bionic/libc/include/unistd.h:54: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fork'In file included from build/tools/acp/acp.c:14:
bionic/libc/include/unistd.h:54: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fork'
bionic/libc/include/unistd.h:55: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vfork'
bionic/libc/include/unistd.h:56: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'getpid'
bionic/libc/include/unistd.h:57: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gettid'
bionic/libc/include/unistd.h:58: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'getpgid'
bionic/libc/include/unistd.h:59: warning: parameter names (without types) in function declaration
bionic/libc/include/unistd.h:60: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'getppid'

thanks in advance for help!

regards,
Borys
rescue
Once Poster
Once Poster
 
Posts: 1
Joined: Fri Feb 25, 2011 5:15 pm

Top

Return to SDK/ADT/Emulator Problems

Who is online

Users browsing this forum: newstars and 5 guests