Build of tinycdb with android toolchain

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

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

SLOCLanguage
1,707 ansic
225 makefile
113 sh
2,045 total

The process tree of the build process is here.

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

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: tinycdb 0.78-2 (Tue Apr 4 21:42:02 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# cc -D_FILE_OFFSET_BITS=64 -c cdb_init.c
# cc -D_FILE_OFFSET_BITS=64 -c cdb_find.c
# cc -D_FILE_OFFSET_BITS=64 -c cdb_findnext.c
# cc -D_FILE_OFFSET_BITS=64 -c cdb_seq.c
# 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
# In file included from cdb_find.c:7:0:
# cdb_int.h:8:19: error: no include path in which to search for errno.h
# #include
# ^
# cdb_int.h:9:20: error: no include path in which to search for string.h
# #include
# ^
# cdb_find.c: In function 'cdb_find':
# cdb_find.c:38:12: error: 'errno' undeclared (first use in this function)
# return errno = EPROTO, -1;
# ^
# cdb_find.c:38:12: note: each undeclared identifier is reported only once for each function it appears in
# In file included from cdb_findnext.c:9:0:
# cdb_int.h:8:19: error: no include path in which to search for errno.h
# #include
# ^
# cdb_int.h:9:20: error: no include path in which to search for string.h
# #include
# ^
# In file included from cdb_find.c:7:0:
# cdb_int.h:12:17: error: 'EINVAL' undeclared (first use in this function)
# # define EPROTO EINVAL
# ^
# cdb_find.c:38:20: note: in expansion of macro 'EPROTO'
# return errno = EPROTO, -1;
# ^
# cdb_findnext.c: In function 'cdb_findinit':
# cdb_findnext.c:32:12: error: 'errno' undeclared (first use in this function)
# return errno = EPROTO, -1;
# ^
# cdb_findnext.c:32:12: note: each undeclared identifier is reported only once for each function it appears in
# In file included from cdb_findnext.c:9:0:
# cdb_int.h:12:17: error: 'EINVAL' undeclared (first use in this function)
# # define EPROTO EINVAL
# ^
# cdb_findnext.c:32:20: note: in expansion of macro 'EPROTO'
# return errno = EPROTO, -1;
# ^
# cc1: error: no include path in which to search for stdc-predef.h
# cdb_findnext.c: In function 'cdb_findnext':
# cdb_findnext.c:57:9: error: 'errno' undeclared (first use in this function)
# return errno = EPROTO, -1;
# ^
# In file included from cdb_findnext.c:9:0:
# cdb_int.h:12:17: error: 'EINVAL' undeclared (first use in this function)
# # define EPROTO EINVAL
# ^
# cdb_findnext.c:57:17: note: in expansion of macro 'EPROTO'
# return errno = EPROTO, -1;
# ^
# cc1: error: no include path in which to search for stdc-predef.h
# In file included from cdb_seq.c:7:0:
# cdb_int.h:8:19: error: no include path in which to search for errno.h
# #include
# ^
# cdb_int.h:9:20: error: no include path in which to search for string.h
# #include
# ^
# cdb_init.c:7:23: error: no include path in which to search for sys/types.h
# #include
# ^
# cdb_init.c:11:23: error: no include path in which to search for sys/mman.h
# # include
# ^
# cdb_init.c:16:22: error: no include path in which to search for sys/stat.h
# #include
# ^
# cdb_seq.c: In function 'cdb_seqnext':
# cdb_seq.c:21:12: error: 'errno' undeclared (first use in this function)
# return errno = EPROTO, -1;
# ^
# cdb_seq.c:21:12: note: each undeclared identifier is reported only once for each function it appears in
# In file included from cdb_seq.c:7:0:
# cdb_int.h:12:17: error: 'EINVAL' undeclared (first use in this function)
# # define EPROTO EINVAL
# ^
# cdb_seq.c:21:20: note: in expansion of macro 'EPROTO'
# return errno = EPROTO, -1;
# ^
# In file included from cdb_init.c:17:0:
# cdb_int.h:8:19: error: no include path in which to search for errno.h
# #include
# ^
# cdb_int.h:9:20: error: no include path in which to search for string.h
# #include
# ^
# cdb_init.c: In function 'cdb_init':
# cdb_init.c:22:15: error: storage size of 'st' isn't known
# struct stat st;
# ^
# cdb_init.c:34:12: error: 'errno' undeclared (first use in this function)
# return errno = EPROTO, -1;
# ^
# cdb_init.c:34:12: note: each undeclared identifier is reported only once for each function it appears in
# In file included from cdb_init.c:17:0:
# cdb_int.h:12:17: error: 'EINVAL' undeclared (first use in this function)
# # define EPROTO EINVAL
# ^
# cdb_init.c:34:20: note: in expansion of macro 'EPROTO'
# return errno = EPROTO, -1;
# ^
# cdb_init.c:49:30: error: 'NULL' undeclared (first use in this function)
# mem = (unsigned char*)mmap(NULL, fsize, PROT_READ, MAP_SHARED, fd, 0);
# ^
# cdb_init.c:49:43: error: 'PROT_READ' undeclared (first use in this function)
# mem = (unsigned char*)mmap(NULL, fsize, PROT_READ, MAP_SHARED, fd, 0);
# ^
# cdb_init.c:49:54: error: 'MAP_SHARED' undeclared (first use in this function)
# mem = (unsigned char*)mmap(NULL, fsize, PROT_READ, MAP_SHARED, fd, 0);
# ^
# cdb_init.c: In function 'cdb_free':
# cdb_init.c:90:21: error: 'NULL' undeclared (first use in this function)
# cdbp->cdb_mem = NULL;
# ^
# cdb_init.c: In function 'cdb_get':
# cdb_init.c:99:5: error: 'errno' undeclared (first use in this function)
# errno = EPROTO;
# ^
# In file included from cdb_init.c:17:0:
# cdb_int.h:12:17: error: 'EINVAL' undeclared (first use in this function)
# # define EPROTO EINVAL
# ^
# cdb_init.c:99:13: note: in expansion of macro 'EPROTO'
# errno = EPROTO;
# ^
# cdb_init.c:100:12: error: 'NULL' undeclared (first use in this function)
# return NULL;
# ^
# cdb_init.c: In function 'cdb_read':
# make: *** [Makefile:107: cdb_find.o] Error 1
# cdb_init.c:110:3: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(buf, data, len);
# ^
# make: *** Waiting for unfinished jobs....
# make: *** [Makefile:107: cdb_findnext.o] Error 1
# make: *** [Makefile:107: cdb_seq.o] Error 1
# make: *** [Makefile:107: cdb_init.o] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...