Build of zip with android toolchain

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

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

SLOCLanguage
50,445 ansic
3,903 asm
840 makefile
42 sh
55,230 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: zip 3.0-7 (Tue Apr 4 21:51:34 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# make -f unix/Makefile generic CC=gcc CPP="gcc -E"
# make[1]: Entering directory '/tmp/zip/src/zip30'
# sh unix/configure "gcc" "-I. -DUNIX " ""
# Check C compiler type (optimization options)
# GNU C (-O3)
# Check bzip2 support
# Check for bzip2 in bzip2 directory
# Check if OS already has bzip2 library installed
# -- Either bzlib.h or libbz2.a not found - no bzip2
# Check for the C preprocessor
# Check if we can use asm code
# Check for ANSI options
# Check for prototypes
# Check the handling of const
# Check for time_t
# Check for size_t
# Check for off_t
# Check size of UIDs and GIDs
# (Now zip stores variable size UIDs/GIDs using a new extra field. This
# tests if this OS uses 16-bit UIDs/GIDs and so if the old 16-bit storage
# should also be used for backward compatibility.)
# -- UID/GID test failed on compile - disabling old 16-bit UID/GID support
# Check for Large File Support
# -- no Large File Support
# Check for wide char support
# -- no Unicode support
# Check for gcc no-builtin flag
# Check for rmdir
# Check for strchr
# Check for strrchr
# Check for rename
# Check for mktemp
# Check for mktime
# Check for mkstemp
# Check for memset
# Check for memmove
# Check for strerror
# Check for errno declaration
# Check for directory libraries
# Check for readlink
# Check for directory include file
# Check for nonexistent include files
# Check for term I/O include file
# Check for valloc
# Check for /usr/local/bin and /usr/local/man
# Check for OS-specific flags
# Check for symbolic links
# eval make -f unix/Makefile zips `cat flags`
# make[2]: Entering directory '/tmp/zip/src/zip30'
# gcc -c -I. -DUNIX -O3 -DNO_TIME_T -DNO_SIZE_T -DNO_OFF_T -DUIDGID_NOT_16BIT -DNO_RMDIR -DNO_STRCHR -DNO_STRRCHR -DNO_RENAME -DNO_MKTEMP -DNO_MKTIME -DNO_MKSTEMP -DZMEM -DNEED_MEMMOVE -DNEED_STRERROR -DNO_ERRNO -DNO_DIR -DNO_STDLIB_H -DNO_STDDEF_H -DNO_UNISTD_H -DNO_FCNTL_H -DNO_STRING_H zip.c
# In file included from tailor.h:93:0,
# from zip.h:88,
# from zip.c:16:
# unix/osdep.h:30:23: fatal error: sys/types.h: No such file or directory
# #include
# ^
# compilation terminated.
# make[2]: *** [unix/Makefile:86: zip.o] Error 1
# make[2]: Leaving directory '/tmp/zip/src/zip30'
# make[1]: *** [unix/Makefile:202: generic] Error 2
# make[1]: Leaving directory '/tmp/zip/src/zip30'
# make: *** [unix/Makefile:205: generic_gcc] Error 2
# ==> ERROR: A failure occurred in build().
# Aborting...