Build of intel-ucode with android toolchain

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

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

SLOCLanguage
119 ansic
119 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: intel-ucode 20151106-1 (Tue Apr 4 21:11:58 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
# intel-microcode2ucode.c:13:19: error: no include path in which to search for stdio.h
# #include
# ^
# intel-microcode2ucode.c:14:20: error: no include path in which to search for unistd.h
# #include
# ^
# intel-microcode2ucode.c:15:20: error: no include path in which to search for stdlib.h
# #include
# ^
# intel-microcode2ucode.c:16:20: error: no include path in which to search for string.h
# #include
# ^
# intel-microcode2ucode.c:17:18: error: no include path in which to search for time.h
# #include
# ^
# intel-microcode2ucode.c:18:20: error: no include path in which to search for limits.h
# #include
# ^
# intel-microcode2ucode.c:19:21: error: no include path in which to search for stdbool.h
# #include
# ^
# intel-microcode2ucode.c:20:22: error: no include path in which to search for inttypes.h
# #include
# ^
# intel-microcode2ucode.c:21:19: error: no include path in which to search for fcntl.h
# #include
# ^
# intel-microcode2ucode.c:22:19: error: no include path in which to search for errno.h
# #include
# ^
# intel-microcode2ucode.c:23:22: error: no include path in which to search for sys/stat.h
# #include
# ^
# intel-microcode2ucode.c: In function 'main':
# intel-microcode2ucode.c:47:2: error: unknown type name 'FILE'
# FILE *f;
# ^
# intel-microcode2ucode.c:48:12: error: 'LINE_MAX' undeclared (first use in this function)
# char line[LINE_MAX];
# ^
# intel-microcode2ucode.c:48:12: note: each undeclared identifier is reported only once for each function it appears in
# intel-microcode2ucode.c:51:2: error: unknown type name 'size_t'
# size_t bufsize, count, start;
# ^
# intel-microcode2ucode.c:52:11: error: 'EXIT_SUCCESS' undeclared (first use in this function)
# int rc = EXIT_SUCCESS;
# ^
# intel-microcode2ucode.c:54:17: error: 'NULL' undeclared (first use in this function)
# if (argv[1] != NULL)
# ^
# intel-microcode2ucode.c:59:2: warning: implicit declaration of function 'fopen' [-Wimplicit-function-declaration]
# f = fopen(filename, "re");
# ^
# intel-microcode2ucode.c:59:4: warning: assignment makes pointer from integer without a cast [enabled by default]
# f = fopen(filename, "re");
# ^
# intel-microcode2ucode.c:61:3: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
# printf("open %s: %m\n", filename);
# ^
# intel-microcode2ucode.c:61:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# intel-microcode2ucode.c:62:8: error: 'EXIT_FAILURE' undeclared (first use in this function)
# rc = EXIT_FAILURE;
# ^
# intel-microcode2ucode.c:66:2: warning: implicit declaration of function 'fgets' [-Wimplicit-function-declaration]
# while (fgets(line, sizeof(line), f) != NULL) {
# ^
# intel-microcode2ucode.c:67:3: warning: implicit declaration of function 'sscanf' [-Wimplicit-function-declaration]
# if (sscanf(line, "%x, %x, %x, %x",
# ^
# intel-microcode2ucode.c:67:7: warning: incompatible implicit declaration of built-in function 'sscanf' [enabled by default]
# if (sscanf(line, "%x, %x, %x, %x",
# ^
# intel-microcode2ucode.c:75:2: warning: implicit declaration of function 'fclose' [-Wimplicit-function-declaration]
# fclose(f);
# ^
# intel-microcode2ucode.c:78:2: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("%s: %lu(%luk) bytes, %zu integers\n",
# ^
# intel-microcode2ucode.c:82:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'int' [-Wformat=]
# count);
# ^
# intel-microcode2ucode.c:82:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat=]
# intel-microcode2ucode.c:87:4: warning: assignment makes pointer from integer without a cast [enabled by default]
# f = fopen("microcode.bin", "we");
# ^
# intel-microcode2ucode.c:96:3: error: unknown type name 'size_t'
# size_t size;
# ^
# intel-microcode2ucode.c:140:3: warning: implicit declaration of function 'fwrite' [-Wimplicit-function-declaration]
# if (fwrite(mc, size, 1, f) != 1) {
# ^
# intel-microcode2ucode.c:140:7: warning: incompatible implicit declaration of built-in function 'fwrite' [enabled by default]
# if (fwrite(mc, size, 1, f) != 1) {
# ^
# intel-microcode2ucode.c:97:31: warning: variable 'stepping' set but not used [-Wunused-but-set-variable]
# unsigned int family, model, stepping;
# ^
# intel-microcode2ucode.c:48:7: warning: unused variable 'line' [-Wunused-variable]
# char line[LINE_MAX];
# ^
# ==> ERROR: A failure occurred in build().
# Aborting...