Build of shuffle with android toolchain

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

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

SLOCLanguage
81 ansic
81 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: shuffle 1.5-5 (Tue Apr 4 20:52:20 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
# shuffle.c:19:22: error: no include path in which to search for sys/mman.h
# #include
# ^
# shuffle.c:20:23: error: no include path in which to search for sys/types.h
# #include
# ^
# shuffle.c:21:20: error: no include path in which to search for unistd.h
# #include
# ^
# shuffle.c:22:20: error: no include path in which to search for string.h
# #include
# ^
# shuffle.c:23:20: error: no include path in which to search for stdlib.h
# #include
# ^
# shuffle.c:24:22: error: no include path in which to search for sys/stat.h
# #include
# ^
# shuffle.c:25:19: error: no include path in which to search for fcntl.h
# #include
# ^
# shuffle.c:26:19: error: no include path in which to search for errno.h
# #include
# ^
# shuffle.c:27:18: error: no include path in which to search for time.h
# #include
# ^
# shuffle.c: In function 'fatal':
# shuffle.c:39:25: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# (void) write(2, msg1, strlen(msg1));
# ^
# shuffle.c:42:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(1);
# ^
# shuffle.c: In function 'syserr':
# shuffle.c:48:23: error: 'errno' undeclared (first use in this function)
# fatal(msg, strerror(errno));
# ^
# shuffle.c:48:23: note: each undeclared identifier is reported only once for each function it appears in
# shuffle.c: In function 'random_uniform':
# shuffle.c:54:14: error: 'RAND_MAX' undeclared (first use in this function)
# int r, m = RAND_MAX - (RAND_MAX % n);
# ^
# shuffle.c: In function 'main':
# shuffle.c:74:3: error: unknown type name 'off_t'
# off_t len;
# ^
# shuffle.c:81:31: error: 'O_WRONLY' undeclared (first use in this function)
# && (out = open(argv[2], O_WRONLY|O_CREAT)) < 0) syserr(argv[2]);
# ^
# shuffle.c:81:40: error: 'O_CREAT' undeclared (first use in this function)
# && (out = open(argv[2], O_WRONLY|O_CREAT)) < 0) syserr(argv[2]);
# ^
# shuffle.c:83:30: error: 'O_RDONLY' undeclared (first use in this function)
# && (in = open(argv[1], O_RDONLY)) < 0) syserr(argv[1]);
# ^
# shuffle.c:86:32: error: 'SEEK_END' undeclared (first use in this function)
# ismmap = (len = lseek(in, 0, SEEK_END)) >= 0;
# ^
# shuffle.c:88:16: error: 'NULL' undeclared (first use in this function)
# buf = mmap(NULL, len, PROT_READ, MAP_PRIVATE, in, 0);
# ^
# shuffle.c:88:27: error: 'PROT_READ' undeclared (first use in this function)
# buf = mmap(NULL, len, PROT_READ, MAP_PRIVATE, in, 0);
# ^
# shuffle.c:88:38: error: 'MAP_PRIVATE' undeclared (first use in this function)
# buf = mmap(NULL, len, PROT_READ, MAP_PRIVATE, in, 0);
# ^
# shuffle.c:91:18: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# if (! (buf = malloc(BUFINC))) syserr(argv[0]);
# ^
# shuffle.c:93:20: warning: incompatible implicit declaration of built-in function 'realloc' [enabled by default]
# if (! (buf = realloc(buf, len + i + BUFINC))) syserr(argv[0]);
# ^
# shuffle.c:102:18: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# if (! (lines = malloc((nlines + 1) * sizeof(lines[0])))) syserr(argv[0]);
# ^
# shuffle.c:123:16: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# if (!ismmap) free(buf);
# ^
# ==> ERROR: A failure occurred in build().
# Aborting...