Build of linux-api-headers with android toolchain

The build took 00h 03m 07s and was NOT successful.

The program in this build is written in the following languages, according to sloccount:

SLOCLanguage
13,731,310 ansic
283,483 asm
33,797 makefile
23,883 perl
10,916 sh
7,572 python
6,569 cpp
4,357 yacc
2,340 lex
1,130 awk
231 pascal
218 lisp
14,105,806 total

The process tree of the build process is here.

Several sub-process invocations were improper; see the process tree for details. Summary:

List of Errors

Log

To avoid scrolling, you may jump to the last line of the invocation of makepkg that was used to build this package.

Removed vanilla repositories from pacman.conf and added:
# [tuscan]
# Server = file:///var/cache/pacman/pkg/

CMD: pacman -Syy --noconfirm
# :: Synchronizing package databases...
# downloading tuscan.db...

Copied permanent toolchain into container-local sysroot
# /toolchain_root/arm-linux-androideabi --> /sysroot/arm-linux-androideabi
# /toolchain_root/COPYING3.LIB --> /sysroot/COPYING3.LIB
# /toolchain_root/sysroot --> /sysroot/sysroot
# /toolchain_root/COPYING.RUNTIME --> /sysroot/COPYING.RUNTIME
# /toolchain_root/lib --> /sysroot/lib
# /toolchain_root/SOURCES --> /sysroot/SOURCES
# /toolchain_root/lib64 --> /sysroot/lib64
# /toolchain_root/share --> /sysroot/share
# /toolchain_root/bin --> /sysroot/bin
# /toolchain_root/COPYING --> /sysroot/COPYING
# /toolchain_root/COPYING3 --> /sysroot/COPYING3
# /toolchain_root/COPYING.LIB --> /sysroot/COPYING.LIB
# /toolchain_root/include --> /sysroot/include
# /toolchain_root/libexec --> /sysroot/libexec

CMD: sudo -u tuscan PATH=/sysroot/bin:/sysroot/libexec/gcc/arm-linux-androideabi/4.8:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin CC=arm-linux-androideabi-gcc CXX=arm-linux-androideabi-g++ red makepkg --noextract --syncdeps --skipinteg --skippgpcheck --skipchecksums --noconfirm --nocolor --log --noprogressbar --nocheck
# ==> Making package: linux-api-headers 4.5.5-1 (Tue Apr 4 20:46:04 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# cc1: error: no include path in which to search for stdc-predef.h
# cc1: error: no include path in which to search for stdc-predef.h
# cc1: error: no include path in which to search for stdc-predef.h
# cc1: error: no include path in which to search for stdc-predef.h
# CHK include/generated/uapi/linux/version.h
# UPD include/generated/uapi/linux/version.h
# HOSTCC scripts/basic/fixdep
# cc1: error: no include path in which to search for stdc-predef.h
# scripts/basic/fixdep.c:106:23: error: no include path in which to search for sys/types.h
# #include
# ^
# scripts/basic/fixdep.c:107:22: error: no include path in which to search for sys/stat.h
# #include
# ^
# scripts/basic/fixdep.c:108:22: error: no include path in which to search for sys/mman.h
# #include
# ^
# scripts/basic/fixdep.c:109:20: error: no include path in which to search for unistd.h
# #include
# ^
# scripts/basic/fixdep.c:110:19: error: no include path in which to search for fcntl.h
# #include
# ^
# scripts/basic/fixdep.c:111:20: error: no include path in which to search for string.h
# #include
# ^
# scripts/basic/fixdep.c:112:20: error: no include path in which to search for stdlib.h
# #include
# ^
# scripts/basic/fixdep.c:113:19: error: no include path in which to search for stdio.h
# #include
# ^
# scripts/basic/fixdep.c:114:20: error: no include path in which to search for limits.h
# #include
# ^
# scripts/basic/fixdep.c:115:19: error: no include path in which to search for ctype.h
# #include
# ^
# scripts/basic/fixdep.c:116:23: error: no include path in which to search for arpa/inet.h
# #include
# ^
# scripts/basic/fixdep.c: In function 'usage':
# scripts/basic/fixdep.c:129:2: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]
# fprintf(stderr, "Usage: fixdep \n");
# ^
# scripts/basic/fixdep.c:129:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# scripts/basic/fixdep.c:129:10: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr, "Usage: fixdep \n");
# ^
# scripts/basic/fixdep.c:129:10: note: each undeclared identifier is reported only once for each function it appears in
# scripts/basic/fixdep.c:130:2: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
# exit(1);
# ^
# scripts/basic/fixdep.c:130:2: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# scripts/basic/fixdep.c: In function 'print_cmdline':
# scripts/basic/fixdep.c:138:2: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
# printf("cmd_%s := %s\n\n", target, cmdline);
# ^
# scripts/basic/fixdep.c:138:2: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# scripts/basic/fixdep.c: In function 'is_defined_config':
# scripts/basic/fixdep.c:170:7: warning: implicit declaration of function 'memcmp' [-Wimplicit-function-declaration]
# memcmp(aux->name, name, len) == 0)
# ^
# scripts/basic/fixdep.c: In function 'define_config':
# scripts/basic/fixdep.c:181:9: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
# struct item *aux = malloc(sizeof(*aux) + len);
# ^
# scripts/basic/fixdep.c:181:21: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# struct item *aux = malloc(sizeof(*aux) + len);
# ^
# scripts/basic/fixdep.c:184:3: warning: implicit declaration of function 'perror' [-Wimplicit-function-declaration]
# perror("fixdep:malloc");
# ^
# scripts/basic/fixdep.c:185:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(1);
# ^
# scripts/basic/fixdep.c:187:2: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration]
# memcpy(aux->name, name, len);
# ^
# scripts/basic/fixdep.c:187:2: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# scripts/basic/fixdep.c: In function 'use_config':
# scripts/basic/fixdep.c:207:2: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" $(wildcard include/config/");
# ^
# scripts/basic/fixdep.c:213:4: warning: implicit declaration of function 'tolower' [-Wimplicit-function-declaration]
# c = tolower(c);
# ^
# scripts/basic/fixdep.c:214:3: warning: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
# putchar(c);
# ^
# scripts/basic/fixdep.c: At top level:
# scripts/basic/fixdep.c:219:48: error: unknown type name 'size_t'
# static void parse_config_file(const char *map, size_t len)
# ^
# scripts/basic/fixdep.c: In function 'strrcmp':
# scripts/basic/fixdep.c:256:2: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
# int slen = strlen(s);
# ^
# scripts/basic/fixdep.c:256:13: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# int slen = strlen(s);
# ^
# scripts/basic/fixdep.c: In function 'do_config_file':
# scripts/basic/fixdep.c:267:14: error: storage size of 'st' isn't known
# struct stat st;
# ^
# scripts/basic/fixdep.c:271:2: warning: implicit declaration of function 'open' [-Wimplicit-function-declaration]
# fd = open(filename, O_RDONLY);
# ^
# scripts/basic/fixdep.c:271:22: error: 'O_RDONLY' undeclared (first use in this function)
# fd = open(filename, O_RDONLY);
# ^
# scripts/basic/fixdep.c:273:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "fixdep: error opening config file: ");
# ^
# scripts/basic/fixdep.c:273:11: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr, "fixdep: error opening config file: ");
# ^
# scripts/basic/fixdep.c:275:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(2);
# ^
# scripts/basic/fixdep.c:277:2: warning: implicit declaration of function 'fstat' [-Wimplicit-function-declaration]
# fstat(fd, &st);
# ^
# scripts/basic/fixdep.c:279:3: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
# close(fd);
# ^
# scripts/basic/fixdep.c:282:2: warning: implicit declaration of function 'mmap' [-Wimplicit-function-declaration]
# map = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
# ^
# scripts/basic/fixdep.c:282:13: error: 'NULL' undeclared (first use in this function)
# map = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
# ^
# scripts/basic/fixdep.c:282:31: error: 'PROT_READ' undeclared (first use in this function)
# map = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
# ^
# scripts/basic/fixdep.c:282:42: error: 'MAP_PRIVATE' undeclared (first use in this function)
# map = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
# ^
# scripts/basic/fixdep.c:289:2: warning: implicit declaration of function 'parse_config_file' [-Wimplicit-function-declaration]
# parse_config_file(map, st.st_size);
# ^
# scripts/basic/fixdep.c:291:2: warning: implicit declaration of function 'munmap' [-Wimplicit-function-declaration]
# munmap(map, st.st_size);
# ^
# scripts/basic/fixdep.c:267:14: warning: unused variable 'st' [-Wunused-variable]
# struct stat st;
# ^
# scripts/basic/fixdep.c: At top level:
# scripts/basic/fixdep.c:301:39: error: unknown type name 'size_t'
# static void parse_dep_file(void *map, size_t len)
# ^
# scripts/basic/fixdep.c: In function 'print_deps':
# scripts/basic/fixdep.c:383:14: error: storage size of 'st' isn't known
# struct stat st;
# ^
# scripts/basic/fixdep.c:387:21: error: 'O_RDONLY' undeclared (first use in this function)
# fd = open(depfile, O_RDONLY);
# ^
# scripts/basic/fixdep.c:389:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "fixdep: error opening depfile: ");
# ^
# scripts/basic/fixdep.c:389:11: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr, "fixdep: error opening depfile: ");
# ^
# scripts/basic/fixdep.c:391:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(2);
# ^
# scripts/basic/fixdep.c:394:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "fixdep: error fstat'ing depfile: ");
# ^
# scripts/basic/fixdep.c:396:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(2);
# ^
# scripts/basic/fixdep.c:399:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"fixdep: %s is empty\n",depfile);
# ^
# scripts/basic/fixdep.c:403:13: error: 'NULL' undeclared (first use in this function)
# map = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
# ^
# scripts/basic/fixdep.c:403:31: error: 'PROT_READ' undeclared (first use in this function)
# map = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
# ^
# scripts/basic/fixdep.c:403:42: error: 'MAP_PRIVATE' undeclared (first use in this function)
# map = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
# ^
# scripts/basic/fixdep.c:410:2: warning: implicit declaration of function 'parse_dep_file' [-Wimplicit-function-declaration]
# parse_dep_file(map, st.st_size);
# ^
# scripts/basic/fixdep.c:383:14: warning: unused variable 'st' [-Wunused-variable]
# struct stat st;
# ^
# scripts/basic/fixdep.c: In function 'traps':
# scripts/basic/fixdep.c:422:2: warning: implicit declaration of function 'ntohl' [-Wimplicit-function-declaration]
# if (*p != INT_CONF) {
# ^
# scripts/basic/fixdep.c:423:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "fixdep: sizeof(int) != 4 or wrong endianness? %#x\n",
# ^
# scripts/basic/fixdep.c:423:11: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr, "fixdep: sizeof(int) != 4 or wrong endianness? %#x\n",
# ^
# scripts/basic/fixdep.c:425:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(2);
# ^
# scripts/basic/fixdep.c: At top level:
# scripts/basic/fixdep.c:197:13: warning: 'use_config' defined but not used [-Wunused-function]
# static void use_config(const char *m, int slen)
# ^
# scripts/basic/fixdep.c:254:12: warning: 'strrcmp' defined but not used [-Wunused-function]
# static int strrcmp(const char *s, const char *sub)
# ^
# scripts/basic/fixdep.c:265:13: warning: 'do_config_file' defined but not used [-Wunused-function]
# static void do_config_file(const char *filename)
# ^
# make[1]: *** [scripts/Makefile.host:91: scripts/basic/fixdep] Error 1
# make: *** [Makefile:439: scripts_basic] Error 2
# ==> ERROR: A failure occurred in build().
# Aborting...