makefile - Android build error -
i try build android: $ source build/envsetup.sh $ lunch $ make
after make, got many errors files cannot find stdlib.h string.h unistd.h , other .h files.
am right need add in build/core/config.mk in src_headers path bionic/libc/include. have tried got many mistakes in .h files within bionic/libc/include directory.
here logs after make
bionic/libc/include/stdio.h:240: error: expected declaration specifiers or '...' before 'off_t'
bionic/libc/include/stdio.h:241: warning: type defaults '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 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 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 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 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 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 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 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 bionic/libc/include/sys/select.h:32, bionic/libc/include/unistd.h:34, 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 bionic/libc/include/sys/select.h:32, bionic/libc/include/unistd.h:34, 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: scope definition or declaration, not want
bionic/libc/include/sys/time.h:37: warning: 'struct timeval' declared inside parameter list
in file included bionic/libc/include/unistd.h:34, 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 bionic/libc/include/unistd.h:34, 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 build/libs/host/copyfile.c:16in file included 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 build/libs/host/copyfile.c:16: bionic/libc/include/unistd.h:54: error: expected '=', ',', ';', 'asm' or 'attribute'
before 'fork'in file included 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'
Comments
Post a Comment