Build of imap with android toolchain

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

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

SLOCLanguage
92,518 ansic
1,427 makefile
60 sh
94,005 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: imap 2007f-6 (Tue Apr 4 22:20:36 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# make[1]: Entering directory '/tmp/imap/src/imap-2007f'
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# + Building in PARTIAL compliance with RFC 3501 security
# + requirements:
# + Compliant:
# ++ TLS/SSL encryption is supported
# + Non-compliant:
# ++ Unencrypted plaintext passwords are permitted
# +
# + In order to rectify this problem, you MUST build with:
# ++ SSLTYPE=unix.nopwd
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#
# Do you want to continue this build anyway? Type y or n please:
# make[1]: Leaving directory '/tmp/imap/src/imap-2007f'
# Applying an process to sources...
# tools/an "ln -s" src/c-client c-client
# tools/an "ln -s" src/ansilib c-client
# tools/an "ln -s" src/charset c-client
# tools/an "ln -s" src/osdep/unix c-client
# tools/an "ln -s" src/mtest mtest
# tools/an "ln -s" src/ipopd ipopd
# tools/an "ln -s" src/imapd imapd
# tools/an "ln -s" src/mailutil mailutil
# tools/an "ln -s" src/mlock mlock
# tools/an "ln -s" src/dmail dmail
# tools/an "ln -s" src/tmail tmail
# ln -s tools/an .
# make build EXTRACFLAGS='-fPIC -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lpam' EXTRALDFLAGS='' EXTRADRIVERS='mbox' EXTRAAUTHENTICATORS='gss' PASSWDTYPE=pam SSLTYPE=unix IP=4 EXTRASPECIALS='' BUILDTYPE=lnp
# make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
# make[1]: Entering directory '/tmp/imap/src/imap-2007f'
# make[2]: Entering directory '/tmp/imap/src/imap-2007f'
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# + Building with IPv4 support
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# make[2]: Leaving directory '/tmp/imap/src/imap-2007f'
# Building c-client for lnp...
# echo `cat SPECIALS` > c-client/SPECIALS
# cd c-client;make lnp EXTRACFLAGS='-fPIC -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lpam'\
# EXTRALDFLAGS=''\
# EXTRADRIVERS='mbox'\
# EXTRAAUTHENTICATORS='gss'\
# PASSWDTYPE=pam SSLTYPE=unix IP=4\
#
# make[2]: Entering directory '/tmp/imap/src/imap-2007f/c-client'
# make build EXTRACFLAGS='-fPIC -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lpam' EXTRALDFLAGS='' EXTRADRIVERS='mbox' EXTRAAUTHENTICATORS='gss' PASSWDTYPE=pam SSLTYPE=unix IP=4 `cat SPECIALS` OS=slx \
# SIGTYPE=psx CHECKPW=pam CRXTYPE=nfs \
# SPOOLDIR=/var/spool \
# ACTIVEFILE=/var/lib/news/active \
# RSHPATH=/usr/bin/rsh \
# BASECFLAGS="-g -O2 -pipe -fno-omit-frame-pointer" \
# BASELDFLAGS="-lpam -ldl"
# make[3]: Entering directory '/tmp/imap/src/imap-2007f/c-client'
# sh -c 'rm -rf auths.c crexcl.c ip_unix.c linkage.[ch] siglocal.c osdep*.[ch] *.o ARCHIVE *FLAGS *TYPE c-client.a || true'
# Once-only environment setup...
# echo cc > CCTYPE
# echo -g -O2 -pipe -fno-omit-frame-pointer '-fPIC -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lpam' -DCHUNKSIZE=65536 > CFLAGS
# echo -DCREATEPROTO=unixproto -DEMPTYPROTO=unixproto \
# -DMD5ENABLE=\"/etc/cram-md5.pwd\" -DMAILSPOOL=\"/var/spool/mail\" \
# -DANONYMOUSHOME=\"/var/spool/mail/anonymous\" \
# -DACTIVEFILE=\"/var/lib/news/active\" -DNEWSSPOOL=\"/var/spool/news\" \
# -DRSHPATH=\"/usr/bin/rsh\" -DLOCKPGM=\"\" \
# -DLOCKPGM1=\"/usr/libexec/mlock\" -DLOCKPGM2=\"/usr/sbin/mlock\" \
# -DLOCKPGM3=\"/etc/mlock\" > OSCFLAGS
# echo -lpam -ldl > LDFLAGS
# echo "ar rc c-client.a osdep.o mail.o misc.o newsrc.o smanager.o utf8.o utf8aux.o siglocal.o dummy.o pseudo.o netmsg.o flstring.o fdstring.o rfc822.o nntp.o smtp.o imap4r1.o pop3.o unix.o mbx.o mmdf.o tenex.o mtx.o news.o phile.o mh.o mx.o mix.o;ranlib c-client.a" > ARCHIVE
# echo slx > OSTYPE
# ./drivers mbox imap nntp pop3 mix mx mbx tenex mtx mh mmdf unix news phile dummy
# ./mkauths gss ext md5 pla log
# make[4]: Entering directory '/tmp/imap/src/imap-2007f/c-client'
# echo -I/usr/local/include -DGSS_C_NT_HOSTBASED_SERVICE=gss_nt_service_name -DKRB5_DEPRECATED=1 >> OSCFLAGS
# sh -c '(test -f /usr/local/lib/libk5crypto.a) && echo -L/usr/local/lib -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err || echo -L/usr/local/lib -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err' >> LDFLAGS
# echo "#include \"kerb_mit.c\"" >> auths.c
# make[4]: Leaving directory '/tmp/imap/src/imap-2007f/c-client'
# echo " mail_versioncheck (CCLIENTVERSION);" >> linkage.c
# ln -s os_slx.h osdep.h
# ln -s os_slx.c osdepbas.c
# ln -s log_std.c osdeplog.c
# ln -s sig_psx.c siglocal.c
# ln -s crx_nfs.c crexcl.c
# ln -s ip4_unix.c ip_unix.c
# sh -c '(test slx = sc5 -o slx = sco -o ! -f /usr/include/sys/statvfs.h) && echo -DNOFSTATVFS >> OSCFLAGS || fgrep statvfs64 /usr/include/sys/statvfs.h > /dev/null || echo -DNOFSTATVFS64 >> OSCFLAGS'
# PAM password authentication
# echo -lpam -ldl >> LDFLAGS
# ln -s ckp_pam.c osdepckp.c
# Building with SSL
# ln -s ssl_unix.c osdepssl.c
# echo -I/usr/local/ssl/include -I/usr/local/ssl/include/openssl -DSSL_CERT_DIRECTORY=\"/usr/local/ssl/certs\" -DSSL_KEY_DIRECTORY=\"/usr/local/ssl/certs\" >> OSCFLAGS
# echo " ssl_onceonlyinit ();" >> linkage.c
# echo -L/usr/local/ssl/lib -lssl -lcrypto >> LDFLAGS
# cat osdepbas.c osdepckp.c osdeplog.c osdepssl.c > osdep.c
# Building OS-dependent module
# If you get No such file error messages for files x509.h, ssl.h,
# pem.h, buffer.h, bio.h, and crypto.h, that means that OpenSSL
# is not installed on your system. Either install OpenSSL first
# or build with command: make slx SSLTYPE=none
# `cat CCTYPE` -c `cat CFLAGS` `cat OSCFLAGS` -c osdep.c
# In file included from osdep.c:31:0:
# osdep.h:43:20: fatal error: stdlib.h: No such file or directory
# #include
# ^
# compilation terminated.
# make[3]: *** [Makefile:926: osdep.o] Error 1
# make[3]: Leaving directory '/tmp/imap/src/imap-2007f/c-client'
# make[2]: *** [Makefile:495: lnp] Error 2
# make[2]: Leaving directory '/tmp/imap/src/imap-2007f/c-client'
# make[1]: *** [Makefile:688: OSTYPE] Error 2
# make[1]: Leaving directory '/tmp/imap/src/imap-2007f'
# make: *** [Makefile:311: lnp] Error 2
# yes: standard output: Broken pipe
# ==> ERROR: A failure occurred in build().
# Aborting...