Build of perl-fuse with musl toolchain

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

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

SLOCLanguage
2,436 ansic
1,608 perl
749 makefile
4,793 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: perl-fuse 0.16.1-4 (Wed Apr 5 00:21:13 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()...
# fuse version found: 2.9.7
# Warning: prerequisite Filesys::Statvfs 0 not found.
# Warning: prerequisite Lchown 0 not found.
# Warning: prerequisite Unix::Mknod 0 not found.
# Checking if your kit is complete...
# Looks good
# Generating a Unix-style Makefile
# Writing Makefile for Fuse
# Writing MYMETA.yml and MYMETA.json
# Running Mkbootstrap for Fuse ()
# "/usr/bin/perl" "/usr/share/perl5/core_perl/ExtUtils/xsubpp" -typemap "/usr/share/perl5/core_perl/ExtUtils/typemap" Fuse.xs > Fuse.xsc && mv Fuse.xsc Fuse.c
# chmod 644 "Fuse.bs"
# cp Fuse.pm blib/lib/Fuse.pm
# AutoSplitting blib/lib/Fuse.pm (blib/lib/auto/Fuse)
# cc -c -I/usr/include/fuse -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -ggdb -DVERSION=\"0.16.1\" -DXS_VERSION=\"0.16.1\" -fPIC "-I/usr/lib/perl5/core_perl/CORE" -Wall -DFUSE_USE_VERSION=26 -D_FILE_OFFSET_BITS=64-pthread -DPERL_HAS_64BITINT -DFUSE_FOUND_MAJOR_VER=2 -DFUSE_FOUND_MINOR_VER=9 -DFUSE_FOUND_MICRO_VER=7 Fuse.c
# In file included from :320:
# :8:9: warning: '_FILE_OFFSET_BITS' macro redefined [-Wmacro-redefined]
# #define _FILE_OFFSET_BITS 64-pthread
# ^
# :4:9: note: previous definition is here
# #define _FILE_OFFSET_BITS 64
# ^
# Fuse.xs:1518:12: error: use of undeclared identifier 'IOC_IN'
# if (cmd & IOC_IN)
# ^
# Fuse.xs:1519:36: warning: implicit declaration of function '_IOC_SIZE' is invalid in C99 [-Wimplicit-function-declaration]
# XPUSHs(sv_2mortal(newSVpvn(data, _IOC_SIZE(cmd))));
# ^
# Fuse.xs:1526:13: error: use of undeclared identifier 'IOC_OUT'; did you mean 'OP_OCT'?
# if ((cmd & IOC_OUT) && (rv == 2)) {
# ^~~~~~~
# OP_OCT
# /usr/lib/perl5/core_perl/CORE/opnames.h:135:2: note: 'OP_OCT' declared here
# OP_OCT = 118,
# ^
# Fuse.xs:1534:13: error: use of undeclared identifier 'IOC_OUT'; did you mean 'OP_OCT'?
# if ((cmd & IOC_OUT) && !rv) {
# ^~~~~~~
# OP_OCT
# /usr/lib/perl5/core_perl/CORE/opnames.h:135:2: note: 'OP_OCT' declared here
# OP_OCT = 118,
# ^
# Fuse.c:2057:11: warning: unused variable 'items' [-Wunused-variable]
# dVAR; dXSARGS;
# ^
# /usr/lib/perl5/core_perl/CORE/XSUB.h:173:16: note: expanded from macro 'dXSARGS'
# dSP; dAXMARK; dITEMS
# ^
# /usr/lib/perl5/core_perl/CORE/XSUB.h:165:20: note: expanded from macro 'dITEMS'
# #define dITEMS I32 items = (I32)(SP - MARK)
# ^
# 3 warnings and 3 errors generated.
# make: *** [Makefile:345: Fuse.o] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...