Build of linuxtv-dvb-apps with musl toolchain

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

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

SLOCLanguage
48,976 ansic
764 makefile
236 perl
45 sh
50,021 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: linuxtv-dvb-apps 1504-1 (Wed Apr 5 01:08:11 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting pkgver()...
# ==> Starting build()...
# make -C lib all
# make[1]: Entering directory '/tmp/linuxtv-dvb-apps/src/dvb-apps/lib'
# make -C libdvbapi all
# make[2]: Entering directory '/tmp/linuxtv-dvb-apps/src/dvb-apps/lib/libdvbapi'
# CC dvbaudio.o
# CC dvbca.o
# CC dvbdemux.o
# CC dvbfe.o
# dvbaudio.c:28:10: fatal error: 'linux/dvb/audio.h' file not found
# #include
# ^
# dvbdemux.c:30:10: fatal error: 'linux/dvb/dmx.h' file not found
# #include
# ^
# 1 error generated.
# 1 error generated.
# make[2]: *** [../../Make.rules:70: dvbdemux.o] Error 1
# make[2]: *** Waiting for unfinished jobs....
# make[2]: *** [../../Make.rules:70: dvbaudio.o] Error 1
# In file included from dvbfe.c:30:
# /sysroot/include/sys/poll.h:1:2: warning: redirecting incorrect #include to [-W#warnings]
# #warning redirecting incorrect #include to
# ^
# dvbfe.c:35:10: fatal error: 'linux/dvb/frontend.h' file not found
# #include
# ^
# dvbca.c:30:10: fatal error: 'linux/dvb/ca.h' file not found
# #include
# ^
# 1 error generated.
# make[2]: *** [../../Make.rules:70: dvbca.o] Error 1
# 1 warning and 1 error generated.
# make[2]: *** [../../Make.rules:70: dvbfe.o] Error 1
# make[2]: Leaving directory '/tmp/linuxtv-dvb-apps/src/dvb-apps/lib/libdvbapi'
# make[1]: *** [Makefile:6: all] Error 2
# make[1]: Leaving directory '/tmp/linuxtv-dvb-apps/src/dvb-apps/lib'
# make: *** [Makefile:12: all] Error 2
# ==> ERROR: A failure occurred in build().
# Aborting...