Build of mcelog with musl toolchain

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

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

SLOCLanguage
8,282 ansic
554 sh
105 makefile
60 python
9,001 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: mcelog 1:136-1 (Wed Apr 5 00:00:56 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# clang -MM -I. p4.c k8.c mcelog.c dmi.c tsc.c core2.c bitfield.c intel.c nehalem.c dunnington.c tulsa.c config.c memutil.c msg.c eventloop.c leaky-bucket.c memdb.c server.c trigger.c client.c cache.c sysfs.c yellow.c page.c rbtree.c xeon75xx.c sandy-bridge.c ivy-bridge.c haswell.c broadwell_de.c broadwell_epex.c skylake_xeon.c msr.c bus.c unknown.c > .depend.X && mv .depend.X .depend
# In file included from mcelog.c:21:
# /sysroot/include/sys/fcntl.h:1:2: warning: redirecting incorrect #include to [-W#warnings]
# #warning redirecting incorrect #include to
# ^
# mcelog.c:23:10: fatal error: 'asm/types.h' file not found
# #include
# ^
# 1 warning and 1 error generated.
# In file included from dmi.c:28:
# /sysroot/include/sys/fcntl.h:1:2: warning: redirecting incorrect #include to [-W#warnings]
# #warning redirecting incorrect #include to
# ^
# 1 warning generated.
# In file included from eventloop.c:23:
# /sysroot/include/sys/fcntl.h:1:2: warning: redirecting incorrect #include to [-W#warnings]
# #warning redirecting incorrect #include to
# ^
# 1 warning generated.
# In file included from sysfs.c:22:
# /sysroot/include/sys/fcntl.h:1:2: warning: redirecting incorrect #include to [-W#warnings]
# #warning redirecting incorrect #include to
# ^
# 1 warning generated.
# make: *** [Makefile:111: .depend] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...