Build of hdparm with musl toolchain

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

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

SLOCLanguage
6,158 ansic
1,465 sh
49 makefile
7,672 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: hdparm 9.48-1 (Wed Apr 5 01:00:10 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# clang -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 hdparm.o hdparm.c
# clang -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 identify.o identify.c
# clang -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 -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 sysfs.o sysfs.c
# clang-3.8: clang-3.8: warningwarning: : optimization flag '-fkeep-inline-functions' is not supportedoptimization flag '-fkeep-inline-functions' is not supported
#
# clang-3.8clang-3.8: : warningwarning: : optimization flag '-fkeep-inline-functions' is not supportedoptimization flag '-fkeep-inline-functions' is not supported
#
# identify.c:7:10: fatal error: 'linux/types.h' file not found
# #include
# ^
# sysfs.c:18:10: fatal error: 'linux/types.h' file not found
# #include
# ^
# In file included from sgio.c:15:
# ./sgio.h:3:10: fatal error: 'linux/types.h' file not found
# #include
# ^
# 1 error generated.
# 1 error generated.
# 1hdparm.c error: generated.
# 27:10: fatal error: 'linux/types.h' file not found
# #include
# ^
# make: *** [: identify.o] Error 1
# make: *** Waiting for unfinished jobs....
# make: *** [: sysfs.o] Error 1
# make: *** [: sgio.o] Error 1
# 1 error generated.
# make: *** [: hdparm.o] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...