Build of floyd with musl toolchain

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

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

SLOCLanguage
1,789 ansic
129 makefile
51 sh
1,969 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: floyd 2.0.1-5 (Tue Apr 4 23:10:31 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# patching file floyd.c
# patching file voodoo.c
# make PDEFS="-DPTHREAD -DPROCTHREAD -D_REENTRANT" pfloyd -kj6
# make[1]: warning: -jN forced in submake: disabling jobserver mode.
# make[1]: Entering directory '/tmp/floyd/src/floyd-2.0.1'
# clang -Wall -O2 -DFLOYD -DBLINKLED=LED_CAP -DPACKETLOAD -DMORSE -DPTHREAD -DPROCTHREAD -D_REENTRANT -c -o floyd.o floyd.c
# clang -Wall -O2 -DFLOYD -DBLINKLED=LED_CAP -DPACKETLOAD -DMORSE -DPTHREAD -DPROCTHREAD -D_REENTRANT -c -o packetload.o packetload.c
# clang -Wall -O2 -DFLOYD -DBLINKLED=LED_CAP -DPACKETLOAD -DMORSE -DPTHREAD -DPROCTHREAD -D_REENTRANT -c -o led.o led.c
# clang -Wall -O2 -DFLOYD -DBLINKLED=LED_CAP -DPACKETLOAD -DMORSE -DPTHREAD -DPROCTHREAD -D_REENTRANT -c -o jobmgr.o jobmgr.c
# clang -Wall -O2 -DFLOYD -DBLINKLED=LED_CAP -DPACKETLOAD -DMORSE -DPTHREAD -DPROCTHREAD -D_REENTRANT -c -o voodoo.o voodoo.c
# In file included from led.c:8:
# ./floyd.h:19:10: fatal error: 'linux/kd.h' file not found
# #include
# ^
# In file included from floyd.c:21:
# ./floyd.h:19:10: fatal error: 'linux/kd.h' file not found
# #include
# ^
# In file included from packetload.c:40:
# ./floyd.h:19:10: fatal error: 'linux/kd.h' file not found
# #include
# ^
# 1 error generated.
# make[1]: *** [: led.o] Error 1
# 1 error generated.
# In file included from jobmgr.c:20:
# ./floyd.h:19:10: fatal error: 'linux/kd.h' file not found
# #include
# ^
# make[1]: *** [: packetload.o] Error 1
# 1 error generated.
# make[1]: *** [: floyd.o] Error 1
# 1 error generated.
# make[1]: *** [: jobmgr.o] Error 1
# make[1]: Target 'pfloyd' not remade because of errors.
# make[1]: Leaving directory '/tmp/floyd/src/floyd-2.0.1'
# make: *** [Makefile:75: pthread] Error 2
# ==> ERROR: A failure occurred in build().
# Aborting...