Build of imap with musl toolchain

The build took 00h 01m 15s 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...

There were existing files in /sysroot, using those
# /sysroot/lib
# /sysroot/share
# /sysroot/bin
# /sysroot/include
# /sysroot/libexec

CMD: sudo -u tuscan PATH=/sysroot/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin CC=clang CXX=clang++ red makepkg --noextract --syncdeps --skipinteg --skippgpcheck --skipchecksums --noconfirm --nocolor --log --noprogressbar --nocheck
# ==> Making package: imap 2007f-6 (Wed Apr 5 02:14:55 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
# clang-3.8: warning: -lgssapi_krb5: 'linker' input unused
# clang-3.8: warning: -lkrb5: 'linker' input unused
# clang-3.8: warning: -lk5crypto: 'linker' input unused
# clang-3.8: warning: -lcom_err: 'linker' input unused
# clang-3.8: warning: -lpam: 'linker' input unused
# In file included from osdep.c:49:
# ./nl_unix.c:49:19: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# if (!*dst) *dst = (char *) fs_get ((*dstl = i) + 1);
# ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# In file included from osdep.c:50:
# In file included from ./env_unix.c:256:
# ./pmatch.c:41:43: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# if (!pat[1]) return (delim && strchr (s,delim)) ? NIL : T;
# ^
# /sysroot/include/string.h:43:27: note: passing argument to parameter here
# char *strchr (const char *, int);
# ^
# In file included from osdep.c:50:
# In file included from ./env_unix.c:260:
# In file included from ./auths.c:1:
# ./kerb_mit.c:30:10: fatal error: 'gssapi/gssapi_generic.h' file not found
# #include
# ^
# 2 warnings and 1 error generated.
# 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
# ==> ERROR: A failure occurred in build().
# Aborting...