Build of idle3-tools with musl toolchain

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

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

SLOCLanguage
925 ansic
34 makefile
959 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: idle3-tools 0.9.1-5 (Tue Apr 4 23:07:17 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# clang -g -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -c -o idle3ctl.o idle3ctl.c
# clang -g -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -c -o sgio.o sgio.c
# clang-3.8: warning: optimization flag '-fkeep-inline-functions' is not supported
# clang-3.8: warning: optimization flag '-fkeep-inline-functions' is not supported
# In file included from sgio.c:15:
# ./sgio.h:3:10: fatal error: 'linux/types.h' file not found
# #include
# ^
# idle3ctl.c:28:10: fatal error: 'linux/types.h' file not found
# #include
# ^
# 1 error generated.
# 1 error generated.
# make: *** [: idle3ctl.o] Error 1
# make: *** Waiting for unfinished jobs....
# make: *** [: sgio.o] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...