Build of tp_smapi 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
1,999 ansic
140 makefile
2,139 total

The process tree of the build process is here.

Several sub-process invocations were improper; see the process tree for details. Summary:

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: tp_smapi 0.42-1 (Tue Apr 4 23:44:30 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# make -C /usr/lib/modules/4.6.3-1-ARCH/build M=/tmp/tp_smapi/src/tp_smapi-tp-smapi-0.42 O=/usr/lib/modules/4.6.3-1-ARCH/build modules
# make[1]: Entering directory '/usr/lib/modules/4.6.3-1-ARCH/build'
# make[2]: Entering directory '/usr/lib/modules/4.6.3-1-ARCH/build'
# CC [M] /tmp/tp_smapi/src/tp_smapi-tp-smapi-0.42/thinkpad_ec.o
# CC [M] /tmp/tp_smapi/src/tp_smapi-tp-smapi-0.42/tp_smapi.o
# CC [M] /tmp/tp_smapi/src/tp_smapi-tp-smapi-0.42/hdaps.o
# clang-3.8: warning: optimization flag '-falign-jumps=1' is not supported
# clang-3.8: warning: optimization flag '-falign-loops=1' is not supported
# clang-3.8: warning: optimization flag '-fno-delete-null-pointer-checks' is not supported
# clang-3.8: warning: optimization flag '-falign-jumps=1' is not supported
# clang-3.8: warning: optimization flag '-falign-loops=1' is not supported
# clang-3.8: warning: optimization flag '-fno-delete-null-pointer-checks' is not supported
# clang-3.8: warning: optimization flag '-falign-jumps=1' is not supported
# clang-3.8: warning: optimization flag '-falign-loops=1' is not supported
# clang-3.8: warning: optimization flag '-fno-delete-null-pointer-checks' is not supported
# /tmp/tp_smapi/src/tp_smapi-tp-smapi-0.42/thinkpad_ec.c:512:1: warning: unused function '__inittest' [-Wunused-function]
# module_init(thinkpad_ec_init);
# ^
# /usr/lib/modules/4.6.3-1-ARCH/build/include/linux/module.h:128:27: note: expanded from macro 'module_init'
# static inline initcall_t __inittest(void) \
# ^
# /tmp/tp_smapi/src/tp_smapi-tp-smapi-0.42/thinkpad_ec.c:513:1: warning: unused function '__exittest' [-Wunused-function]
# module_exit(thinkpad_ec_exit);
# ^
# /usr/lib/modules/4.6.3-1-ARCH/build/include/linux/module.h:134:27: note: expanded from macro 'module_exit'
# static inline exitcall_t __exittest(void) \
# ^
# 2 warnings generated.
# /tmp/tp_smapi/src/tp_smapi-tp-smapi-0.42/hdaps.c:887:1: warning: unused function '__inittest' [-Wunused-function]
# module_init(hdaps_init);
# ^
# /usr/lib/modules/4.6.3-1-ARCH/build/include/linux/module.h:128:27: note: expanded from macro 'module_init'
# static inline initcall_t __inittest(void) \
# ^
# /tmp/tp_smapi/src/tp_smapi-tp-smapi-0.42/hdaps.c:888:1: warning: unused function '__exittest' [-Wunused-function]
# module_exit(hdaps_exit);
# ^
# /usr/lib/modules/4.6.3-1-ARCH/build/include/linux/module.h:134:27: note: expanded from macro 'module_exit'
# static inline exitcall_t __exittest(void) \
# ^
# clang-3.8: warning: optimization flag '-falign-jumps=1' is not supported
# clang-3.8: warning: optimization flag '-falign-loops=1' is not supported
# clang-3.8: warning: optimization flag '-fno-delete-null-pointer-checks' is not supported
# /tmp/tp_smapi/src/tp_smapi-tp-smapi-0.42/tp_smapi.c:202:14: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
# "m"((u16)smapi_port)
# ~~~~~^~~~~~~~~~
# 1 error generated.
# make[3]: *** [/usr/lib/modules/4.6.3-1-ARCH/build/scripts/Makefile.build:298: /tmp/tp_smapi/src/tp_smapi-tp-smapi-0.42/tp_smapi.o] Error 1
# make[3]: *** Waiting for unfinished jobs....
# 2 warnings generated.
# make[2]: *** [/usr/lib/modules/4.6.3-1-ARCH/build/Makefile:1429: _module_/tmp/tp_smapi/src/tp_smapi-tp-smapi-0.42] Error 2
# make[2]: Leaving directory '/usr/lib/modules/4.6.3-1-ARCH/build'
# make[1]: *** [Makefile:146: sub-make] Error 2
# make[1]: Leaving directory '/usr/lib/modules/4.6.3-1-ARCH/build'
# make: *** [Makefile:46: modules] Error 2
# ==> ERROR: A failure occurred in build().
# Aborting...