Build of ivtv-utils with musl toolchain

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

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

SLOCLanguage
13,733 ansic
2,913 cpp
2,593 perl
71 makefile
19,310 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: ivtv-utils 1.4.1-7 (Tue Apr 4 23:29:53 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# make -C utils all
# make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
# make[1]: Entering directory '/tmp/ivtv-utils/src/ivtv-utils-1.4.1/utils'
# clang++ -D_GNU_SOURCE -O2 -Wall -g -I. -c -o v4l2-ctl.o v4l2-ctl.cpp
# In file included from v4l2-ctl.cpp:41:
# ./linux/videodev2.h:60:10: fatal error: 'linux/ioctl.h' file not found
# #include
# ^
# 1 error generated.
# make[1]: *** [: v4l2-ctl.o] Error 1
# make[1]: Leaving directory '/tmp/ivtv-utils/src/ivtv-utils-1.4.1/utils'
# make: *** [Makefile:2: all] Error 2
# ==> ERROR: A failure occurred in build().
# Aborting...