Build of libmilter with musl toolchain

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

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

SLOCLanguage
94,648 ansic
3,296 perl
1,128 sh
586 makefile
99,658 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: libmilter 8.15.1-2 (Wed Apr 5 01:05:20 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# Configuration: pfx=, os=Linux, rel=4.10.6-1-ARCH, rbase=4, rroot=4.10, arch=x86_64, sfx=, variant=optimized
# Using M4=/usr/sbin/m4
# Creating /tmp/libmilter/src/sendmail-8.15.1/obj.Linux.4.10.6-1-ARCH.x86_64/libmilter using /tmp/libmilter/src/sendmail-8.15.1/devtools/OS/Linux
# Making dependencies in /tmp/libmilter/src/sendmail-8.15.1/obj.Linux.4.10.6-1-ARCH.x86_64/libmilter
# ln -f -s ../../libsm/errstring.c .
# ln -f -s ../../libsm/strl.c .
# rm -f sm_os.h
# ln -f -s ../../include/sm/os/sm_os_linux.h sm_os.h
# cc -M -I. -I../../sendmail -I../../include -DNOT_SENDMAIL -Dsm_snprintf=snprintf -D_REENTRANT main.c engine.c listener.c worker.c handler.c comm.c smfi.c signal.c sm_gethost.c monitor.c errstring.c strl.c >> Makefile
# In file included from main.c:11:
# In file included from ../../include/sm/gen.h:20:
# In file included from ../../include/sm/config.h:23:
# ./sm_os.h:19:10: fatal error: 'linux/version.h' file not found
# #include
# ^
# 1 error generated.
# In file included from engine.c:11:
# In file included from ../../include/sm/gen.h:20:
# In file included from ../../include/sm/config.h:23:
# ./sm_os.h:19:10: fatal error: 'linux/version.h' file not found
# #include
# ^
# 1 error generated.
# In file included from listener.c:11:
# In file included from ../../include/sm/gen.h:20:
# In file included from ../../include/sm/config.h:23:
# ./sm_os.h:19:10: fatal error: 'linux/version.h' file not found
# #include
# ^
# 1 error generated.
# In file included from worker.c:13:
# In file included from ../../include/sm/gen.h:20:
# In file included from ../../include/sm/config.h:23:
# ./sm_os.h:19:10: fatal error: 'linux/version.h' file not found
# #include
# ^
# 1 error generated.
# In file included from handler.c:11:
# In file included from ../../include/sm/gen.h:20:
# In file included from ../../include/sm/config.h:23:
# ./sm_os.h:19:10: fatal error: 'linux/version.h' file not found
# #include
# ^
# 1 error generated.
# In file included from comm.c:11:
# In file included from ../../include/sm/gen.h:20:
# In file included from ../../include/sm/config.h:23:
# ./sm_os.h:19:10: fatal error: 'linux/version.h' file not found
# #include
# ^
# 1 error generated.
# In file included from smfi.c:11:
# In file included from ../../include/sm/gen.h:20:
# In file included from ../../include/sm/config.h:23:
# ./sm_os.h:19:10: fatal error: 'linux/version.h' file not found
# #include
# ^
# 1 error generated.
# In file included from signal.c:11:
# In file included from ../../include/sm/gen.h:20:
# In file included from ../../include/sm/config.h:23:
# ./sm_os.h:19:10: fatal error: 'linux/version.h' file not found
# #include
# ^
# 1 error generated.
# In file included from sm_gethost.c:11:
# In file included from ../../include/sm/gen.h:20:
# In file included from ../../include/sm/config.h:23:
# ./sm_os.h:19:10: fatal error: 'linux/version.h' file not found
# #include
# ^
# 1 error generated.
# In file included from monitor.c:11:
# In file included from ../../include/sm/gen.h:20:
# In file included from ../../include/sm/config.h:23:
# ./sm_os.h:19:10: fatal error: 'linux/version.h' file not found
# #include
# ^
# 1 error generated.
# In file included from errstring.c:13:
# In file included from ../../include/sm/gen.h:20:
# In file included from ../../include/sm/config.h:23:
# ./sm_os.h:19:10: fatal error: 'linux/version.h' file not found
# #include
# ^
# 1 error generated.
# In file included from strl.c:11:
# In file included from ../../include/sm/gen.h:20:
# In file included from ../../include/sm/config.h:23:
# ./sm_os.h:19:10: fatal error: 'linux/version.h' file not found
# #include
# ^
# 1 error generated.
# make: *** [Makefile:312: depend] Error 1
# Making in /tmp/libmilter/src/sendmail-8.15.1/obj.Linux.4.10.6-1-ARCH.x86_64/libmilter
# cc -O2 -I. -I../../sendmail -I../../include -DNOT_SENDMAIL -Dsm_snprintf=snprintf -D_REENTRANT -DXP_MT -c -o main.o main.c
# cc -O2 -I. -I../../sendmail -I../../include -DNOT_SENDMAIL -Dsm_snprintf=snprintf -D_REENTRANT -DXP_MT -c -o engine.o engine.c
# cc -O2 -I. -I../../sendmail -I../../include -DNOT_SENDMAIL -Dsm_snprintf=snprintf -D_REENTRANT -DXP_MT -c -o listener.o listener.c
# cc -O2 -I. -I../../sendmail -I../../include -DNOT_SENDMAIL -Dsm_snprintf=snprintf -D_REENTRANT -DXP_MT -c -o worker.o worker.c
# In file included from worker.c:13:
# In file included from ../../include/sm/gen.h:20:
# In file included from ../../include/sm/config.h:23:
# ./sm_os.h:19:10: fatal error: 'linux/version.h' file not found
# #include
# ^
# In file included from main.c:11:
# In file included from ../../include/sm/gen.h:20:
# In file included from ../../include/sm/config.h:23:
# ./sm_os.h:19:10: fatal error: 'linux/version.h' file not found
# #include
# ^
# In file included from engine.c:11:
# In file included from ../../include/sm/gen.h:20:
# In file included from ../../include/sm/config.h:23:
# ./sm_os.h:19:10: fatal error: 'linux/version.h' file not found
# #include
# ^
# In file included from listener.c:11:
# In file included from ../../include/sm/gen.h:20:
# In file included from ../../include/sm/config.h:23:
# ./sm_os.h:19:10: fatal error: 'linux/version.h' file not found
# #include
# ^
# 1 error generated.
# make: *** [: worker.o] Error 1
# make: *** Waiting for unfinished jobs....
# 1 error generated.
# make: *** [: main.o] Error 1
# 1 error generated.
# make: *** [: listener.o] Error 1
# 1 error generated.
# make: *** [: engine.o] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...