Build of uboot-tools with android toolchain

The build took 00h 01m 17s and was NOT successful.

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

SLOCLanguage
1,180,153 ansic
31,648 asm
8,830 python
8,014 perl
6,413 makefile
2,453 sh
1,829 cpp
604 yacc
363 lex
28 tcl
14 sed
6 awk
1,240,355 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: uboot-tools 2016.03-1 (Tue Apr 4 21:01:41 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# 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:130:2: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]
# fprintf(stderr, "Usage: fixdep \n");
# ^
# scripts/basic/fixdep.c:130:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# scripts/basic/fixdep.c:130:10: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr, "Usage: fixdep \n");
# ^
# scripts/basic/fixdep.c:130:10: note: each undeclared identifier is reported only once for each function it appears in
# scripts/basic/fixdep.c:131:2: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
# exit(1);
# ^
# scripts/basic/fixdep.c:131: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:139:2: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
# printf("cmd_%s := %s\n\n", target, cmdline);
# ^
# scripts/basic/fixdep.c:139: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:171: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:182:9: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
# struct item *aux = malloc(sizeof(*aux) + len);
# ^
# scripts/basic/fixdep.c:182:21: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# struct item *aux = malloc(sizeof(*aux) + len);
# ^
# scripts/basic/fixdep.c:185:3: warning: implicit declaration of function 'perror' [-Wimplicit-function-declaration]
# perror("fixdep:malloc");
# ^
# scripts/basic/fixdep.c:186:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(1);
# ^
# scripts/basic/fixdep.c:188:2: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration]
# memcpy(aux->name, name, len);
# ^
# scripts/basic/fixdep.c:188: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:208:2: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(" $(wildcard include/config/");
# ^
# scripts/basic/fixdep.c:214:4: warning: implicit declaration of function 'tolower' [-Wimplicit-function-declaration]
# c = tolower(c);
# ^
# scripts/basic/fixdep.c:215:3: warning: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
# putchar(c);
# ^
# scripts/basic/fixdep.c: At top level:
# scripts/basic/fixdep.c:220: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:278:2: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
# int slen = strlen(s);
# ^
# scripts/basic/fixdep.c:278: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:289:14: error: storage size of 'st' isn't known
# struct stat st;
# ^
# scripts/basic/fixdep.c:293:2: warning: implicit declaration of function 'open' [-Wimplicit-function-declaration]
# fd = open(filename, O_RDONLY);
# ^
# scripts/basic/fixdep.c:293:22: error: 'O_RDONLY' undeclared (first use in this function)
# fd = open(filename, O_RDONLY);
# ^
# scripts/basic/fixdep.c:295:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "fixdep: error opening config file: ");
# ^
# scripts/basic/fixdep.c:295:11: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr, "fixdep: error opening config file: ");
# ^
# scripts/basic/fixdep.c:297:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(2);
# ^
# scripts/basic/fixdep.c:299:2: warning: implicit declaration of function 'fstat' [-Wimplicit-function-declaration]
# fstat(fd, &st);
# ^
# scripts/basic/fixdep.c:301:3: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
# close(fd);
# ^
# scripts/basic/fixdep.c:304: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:304: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:304: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:304: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:311:2: warning: implicit declaration of function 'parse_config_file' [-Wimplicit-function-declaration]
# parse_config_file(map, st.st_size);
# ^
# scripts/basic/fixdep.c:313:2: warning: implicit declaration of function 'munmap' [-Wimplicit-function-declaration]
# munmap(map, st.st_size);
# ^
# scripts/basic/fixdep.c:289:14: warning: unused variable 'st' [-Wunused-variable]
# struct stat st;
# ^
# scripts/basic/fixdep.c: At top level:
# scripts/basic/fixdep.c:323: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:405:14: error: storage size of 'st' isn't known
# struct stat st;
# ^
# scripts/basic/fixdep.c:409:21: error: 'O_RDONLY' undeclared (first use in this function)
# fd = open(depfile, O_RDONLY);
# ^
# scripts/basic/fixdep.c:411:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "fixdep: error opening depfile: ");
# ^
# scripts/basic/fixdep.c:411:11: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr, "fixdep: error opening depfile: ");
# ^
# scripts/basic/fixdep.c:413:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(2);
# ^
# scripts/basic/fixdep.c:416:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "fixdep: error fstat'ing depfile: ");
# ^
# scripts/basic/fixdep.c:418:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(2);
# ^
# scripts/basic/fixdep.c:421: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:425: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:425: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:425: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:432:2: warning: implicit declaration of function 'parse_dep_file' [-Wimplicit-function-declaration]
# parse_dep_file(map, st.st_size);
# ^
# scripts/basic/fixdep.c:405:14: warning: unused variable 'st' [-Wunused-variable]
# struct stat st;
# ^
# scripts/basic/fixdep.c: In function 'traps':
# scripts/basic/fixdep.c:444:2: warning: implicit declaration of function 'ntohl' [-Wimplicit-function-declaration]
# if (*p != INT_CONF) {
# ^
# scripts/basic/fixdep.c:445: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:445:11: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr, "fixdep: sizeof(int) != 4 or wrong endianness? %#x\n",
# ^
# scripts/basic/fixdep.c:447:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(2);
# ^
# scripts/basic/fixdep.c: In function 'main':
# scripts/basic/fixdep.c:463:2: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration]
# if (!strncmp(target, "spl/", 4) || !strncmp(target, "tpl/", 4))
# ^
# scripts/basic/fixdep.c: At top level:
# scripts/basic/fixdep.c:198:13: warning: 'use_config' defined but not used [-Wunused-function]
# static void use_config(const char *m, int slen)
# ^
# scripts/basic/fixdep.c:276:12: warning: 'strrcmp' defined but not used [-Wunused-function]
# static int strrcmp(char *s, char *sub)
# ^
# scripts/basic/fixdep.c:287:13: warning: 'do_config_file' defined but not used [-Wunused-function]
# static void do_config_file(const char *filename)
# ^
# make[1]: *** [scripts/Makefile.host:94: scripts/basic/fixdep] Error 1
# make: *** [Makefile:397: scripts_basic] Error 2
# ==> ERROR: A failure occurred in build().
# Aborting...