Build of i2c-tools with musl toolchain

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

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

SLOCLanguage
3,417 ansic
2,489 perl
28 makefile
11 python
5,945 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: i2c-tools 3.1.1-2 (Tue Apr 4 22:55:40 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# clang -Wall -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wundef -Wmissing-prototypes -Iinclude -c tools/i2cdetect.c -o tools/i2cdetect.o
# clang -Wall -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wundef -Wmissing-prototypes -Iinclude -c tools/i2cbusses.c -o tools/i2cbusses.o
# clang -Wall -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wundef -Wmissing-prototypes -Iinclude -c tools/i2cdump.c -o tools/i2cdump.o
# clang -Wall -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wundef -Wmissing-prototypes -Iinclude -c tools/util.c -o tools/util.o
# In file included from tools/i2cbusses.c:42:
# include/linux/i2c-dev.h:26:10: fatal error: 'linux/types.h' file not found
# #include
# ^
# In file included from tools/i2cdetect.c:29:
# include/linux/i2c-dev.h:26:10: fatal error: 'linux/types.h' file not found
# #include
# ^
# In file included from tools/i2cdump.c:29:
# include/linux/i2c-dev.h:26:10: fatal error: 'linux/types.h' file not found
# #include
# ^
# clang -Wall -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wundef -Wmissing-prototypes -Iinclude -c tools/i2cset.c -o tools/i2cset.o
# 1 error generated.
# make: *** [tools/Module.mk:51: tools/i2cbusses.o] Error 1
# make: *** Waiting for unfinished jobs....
# 1 error generated.
# 1 error generated.
# make: *** [tools/Module.mk:39: tools/i2cdetect.o] Error 1
# make: *** [tools/Module.mk:42: tools/i2cdump.o] Error 1
# In file included from tools/i2cset.c:29:
# include/linux/i2c-dev.h:26:10: fatal error: 'linux/types.h' file not found
# #include
# ^
# 1 error generated.
# make: *** [tools/Module.mk:45: tools/i2cset.o] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...