Build of unionfs-fuse with musl toolchain

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

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

SLOCLanguage
2,734 ansic
149 sh
133 python
90 makefile
3,106 total

The process tree of the build process is here.

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

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: unionfs-fuse 1.0-1 (Wed Apr 5 00:25:55 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Installing missing dependencies...
# resolving dependencies...
# looking for conflicting packages...
#
# Packages (1) fuse-2.9.7-1
#
# Total Installed Size: 0.48 MiB
#
# :: Proceed with installation? [Y/n]
# checking keyring...
# checking package integrity...
# loading package files...
# checking for file conflicts...
# checking available disk space...
# :: Processing package changes...
# installing fuse...
# :: Running post-transaction hooks...
# (1/1) Updating manpage index...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# make -C src/
# make[1]: Entering directory '/tmp/unionfs-fuse/src/unionfs-fuse-1.0/src'
# clang -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse -DFUSE_USE_VERSION=26 -DLIBC_XATTR -c -o unionfs.o unionfs.c
# clang -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse -DFUSE_USE_VERSION=26 -DLIBC_XATTR -c -o opts.o opts.c
# clang -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse -DFUSE_USE_VERSION=26 -DLIBC_XATTR -c -o debug.o debug.c
# clang -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse -DFUSE_USE_VERSION=26 -DLIBC_XATTR -c -o findbranch.o findbranch.c
# unionfs.c:293:30: warning: implicit declaration of function '_IOC_SIZE' is invalid in C99 [-Wimplicit-function-declaration]
# set_debug_path(debug_path, _IOC_SIZE(cmd));
# ^
# clang -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse -DFUSE_USE_VERSION=26 -DLIBC_XATTR -c -o readdir.o readdir.c
# clang -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse -DFUSE_USE_VERSION=26 -DLIBC_XATTR -c -o general.o general.c
# clang -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse -DFUSE_USE_VERSION=26 -DLIBC_XATTR -c -o unlink.o unlink.c
# clang -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse -DFUSE_USE_VERSION=26 -DLIBC_XATTR -c -o rmdir.o rmdir.c
# clang -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse -DFUSE_USE_VERSION=26 -DLIBC_XATTR -c -o cow.o cow.c
# clang -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse -DFUSE_USE_VERSION=26 -DLIBC_XATTR -c -o cow_utils.o cow_utils.c
# 1 warning generated.
# clang -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse -DFUSE_USE_VERSION=26 -DLIBC_XATTR -c -o string.o string.c
# clang -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse -DFUSE_USE_VERSION=26 -DLIBC_XATTR -c -o usyslog.o usyslog.c
# clang -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse -DFUSE_USE_VERSION=26 -DLIBC_XATTR -c -o hashtable.o hashtable.c
# clang -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse -DFUSE_USE_VERSION=26 -DLIBC_XATTR -c -o hashtable_itr.o hashtable_itr.c
# clang -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse -DFUSE_USE_VERSION=26 -DLIBC_XATTR -c -o unionfsctl.o unionfsctl.c
# clang -o unionfs unionfs.o opts.o debug.o findbranch.o readdir.o general.o unlink.o rmdir.o cow.o cow_utils.o string.o usyslog.o hashtable.o hashtable_itr.o -lfuse -pthread -lpthread
# clang -o unionfsctl unionfsctl.o
# unionfs.o:unionfs.c:function unionfs_ioctl: error: undefined reference to '_IOC_SIZE'
# clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation)
# make[1]: *** [Makefile:25: unionfs] Error 1
# make[1]: *** Waiting for unfinished jobs....
# make[1]: Leaving directory '/tmp/unionfs-fuse/src/unionfs-fuse-1.0/src'
# make: *** [Makefile:6: build] Error 2
# ==> ERROR: A failure occurred in build().
# Aborting...