Build of mdk3 with musl toolchain

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

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

SLOCLanguage
9,477 ansic
81 makefile
12 sh
9,570 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: mdk3 v6-6 (Wed Apr 5 00:02:32 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# make: Entering directory '/tmp/mdk3/src/mdk3-v6/osdep'
# Building for Linux
# make[1]: Entering directory '/tmp/mdk3/src/mdk3-v6/osdep'
# gcc -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk3-v6 -fPIC -I.. -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk3-v6 -fPIC -I.. -c -o osdep.o osdep.c
# gcc -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk3-v6 -fPIC -I.. -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk3-v6 -fPIC -I.. -c -o common.o common.c
# gcc -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk3-v6 -fPIC -I.. -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk3-v6 -fPIC -I.. -c -o network.o network.c
# gcc -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk3-v6 -fPIC -I.. -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk3-v6 -fPIC -I.. -c -o linux.o linux.c
# linux.c:29:10: fatal error: 'linux/if_ether.h' file not found
# #include
# ^
# gcc -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk3-v6 -fPIC -I.. -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk3-v6 -fPIC -I.. -c -o linux_tap.o linux_tap.c
# gcc -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk3-v6 -fPIC -I.. -D_FILE_OFFSET_BITS=64 -D_REVISION=mdk3-v6 -fPIC -I.. -c -o radiotap/radiotap-parser.o radiotap/radiotap-parser.c
# linux_tap.c:26:10: fatal error: 'linux/if.h' file not found
# #include
# ^
# 1 error generated.
# make[1]: *** [: linux.o] Error 1
# make[1]: *** Waiting for unfinished jobs....
# 1 error generated.
# make[1]: *** [: linux_tap.o] Error 1
# make[1]: Leaving directory '/tmp/mdk3/src/mdk3-v6/osdep'
# make: *** [Makefile:30: all] Error 2
# make: Leaving directory '/tmp/mdk3/src/mdk3-v6/osdep'
# ==> ERROR: A failure occurred in build().
# Aborting...