Build of arptables with musl toolchain

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

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

SLOCLanguage
4,311 ansic
90 sh
81 perl
60 makefile
4,542 total

The process tree of the build process is here.

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: arptables 0.0.4-3 (Wed Apr 5 00:33:01 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# clang -O2 -Wall -Wunused -I.//include/ -Iinclude/ -DARPTABLES_VERSION=\"0.0.4\" -c -o arptables-standalone.o arptables-standalone.c
# clang -O2 -Wall -Wunused -I.//include/ -Iinclude/ -DARPTABLES_VERSION=\"0.0.4\" -c -o arptables.o arptables.c
# clang -O2 -Wall -Wunused -I.//include/ -Iinclude/ -DARPTABLES_VERSION=\"0.0.4\" -c -o libarptc/libarptc.o libarptc/libarptc.c
# clang -O2 -Wall -Wunused -I.//include/ -Iinclude/ -DARPTABLES_VERSION=\"0.0.4\" -c -o extensions/arpt_standard.o extensions/arpt_standard.c
# In file included from libarptc/libarptc.c:30:
# In file included from .//include/libarptc/libarptc.h:5:
# .//include/libarptc/arpt_kernel_headers.h:19:10: fatal error: 'linux/ip.h' file not found
# #include
# ^
# In file included from arptables-standalone.c:38:
# In file included from .//include/arptables.h:5:
# In file included from .//include/libarptc/libarptc.h:5:
# .//include/libarptc/arpt_kernel_headers.h:19:10: fatal error: 'linux/ip.h' file not found
# #include
# ^
# In file included from extensions/arpt_standard.c:8:
# In file included from .//include/arptables.h:5:
# In file included from .//include/libarptc/libarptc.h:5:
# .//include/libarptc/arpt_kernel_headers.h:19:10: fatal error: 'linux/ip.h' file not found
# #include
# ^
# 1 error generated.
# In file included from arptables.c:43:
# In file included from .//include/arptables.h:5:
# In file included from .//include/libarptc/libarptc.h:5:
# .//include/libarptc/arpt_kernel_headers.h:19:10:1 errorfatal error generated.
# : 'linux/ip.h' file not found
# #include
# ^
# make: *** [Makefile:28: arptables-standalone.o] Error 1
# make: *** Waiting for unfinished jobs....
# make: *** [: extensions/arpt_standard.o] Error 1
# 1 error generated.
# make: *** [Makefile:31: libarptc/libarptc.o] Error 1
# 1 error generated.
# make: *** [Makefile:25: arptables.o] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...