Android froyo 2.2.1 build error

  • Replies:0
  • OpenNot stickiedUnanswered

Mar 1, 2011 1:46:58 PM

Hello! please, help me!

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

Version - android 2.2.1 froyo for ARM, host PC 64-bit, Linux OpenSuse.

The toolchain i am using from android/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/

There are such errors in logs:
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'