Build of perl-xml-parser with musl toolchain

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

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

SLOCLanguage
2,469 ansic
1,941 perl
1,291 makefile
5,701 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: perl-xml-parser 2.44-3 (Wed Apr 5 01:33:50 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
#
# Expat must be installed prior to building XML::Parser and I can't find
# it in the standard library directories. Install 'expat-devel' (or
# 'libexpat1-dev') package with your OS package manager. See 'README'.
#
# Or you can download expat from:
#
# http://sourceforge.net/projects/expat/
#
# If expat is installed, but in a non-standard directory, then use the
# following options to Makefile.PL:
#
# EXPATLIBPATH=... To set the directory in which to find libexpat
#
# EXPATINCPATH=... To set the directory in which to find expat.h
#
# For example:
#
# perl Makefile.PL EXPATLIBPATH=/home/me/lib EXPATINCPATH=/home/me/include
#
# Note that if you build against a shareable library in a non-standard location
# you may (on some platforms) also have to set your LD_LIBRARY_PATH environment
# variable at run time for perl to find the library.
#
# Warning: prerequisite LWP::UserAgent 0 not found.
# Checking if your kit is complete...
# Looks good
# Generating a Unix-style Makefile
# Writing Makefile for XML::Parser::Expat
# Writing MYMETA.yml and MYMETA.json
# Generating a Unix-style Makefile
# Writing Makefile for XML::Parser
# Writing MYMETA.yml and MYMETA.json
# make[1]: Entering directory '/tmp/perl-xml-parser/src/XML-Parser-2.44/Expat'
# Running Mkbootstrap for XML::Parser::Expat ()
# "/usr/bin/perl" "/usr/share/perl5/core_perl/ExtUtils/xsubpp" -noprototypes -typemap "/usr/share/perl5/core_perl/ExtUtils/typemap" -typemap "typemap" Expat.xs > Expat.xsc && mv Expat.xsc Expat.c
# chmod 644 "Expat.bs"
# cp Expat.pm ../blib/lib/XML/Parser/Expat.pm
# cp Parser/Encodings/README blib/lib/XML/Parser/Encodings/README
# cp Parser/Encodings/ibm866.enc blib/lib/XML/Parser/Encodings/ibm866.enc
# cp Parser/Encodings/windows-1255.enc blib/lib/XML/Parser/Encodings/windows-1255.enc
# cp Parser/Encodings/iso-8859-3.enc blib/lib/XML/Parser/Encodings/iso-8859-3.enc
# cp Parser/Encodings/koi8-r.enc blib/lib/XML/Parser/Encodings/koi8-r.enc
# cp Parser/Style/Subs.pm blib/lib/XML/Parser/Style/Subs.pm
# cp Parser/Encodings/x-sjis-unicode.enc blib/lib/XML/Parser/Encodings/x-sjis-unicode.enc
# cp Parser/Encodings/iso-8859-9.enc blib/lib/XML/Parser/Encodings/iso-8859-9.enc
# cp Parser/Style/Stream.pm blib/lib/XML/Parser/Style/Stream.pm
# cp Parser/Encodings/x-sjis-cp932.enc blib/lib/XML/Parser/Encodings/x-sjis-cp932.enc
# cp Parser.pm blib/lib/XML/Parser.pm
# cp Parser/Encodings/windows-1250.enc blib/lib/XML/Parser/Encodings/windows-1250.enc
# cp Parser/Style/Objects.pm blib/lib/XML/Parser/Style/Objects.pm
# cp Parser/LWPExternEnt.pl blib/lib/XML/Parser/LWPExternEnt.pl
# cp Parser/Encodings/iso-8859-2.enc blib/lib/XML/Parser/Encodings/iso-8859-2.enc
# cp Parser/Encodings/windows-1252.enc blib/lib/XML/Parser/Encodings/windows-1252.enc
# cp Parser/Encodings/iso-8859-8.enc blib/lib/XML/Parser/Encodings/iso-8859-8.enc
# cp Parser/Encodings/x-euc-jp-jisx0221.enc blib/lib/XML/Parser/Encodings/x-euc-jp-jisx0221.enc
# cp Parser/Style/Debug.pm blib/lib/XML/Parser/Style/Debug.pm
# cp Parser/Encodings/euc-kr.enc blib/lib/XML/Parser/Encodings/euc-kr.enc
# cp Parser/Encodings/Japanese_Encodings.msg blib/lib/XML/Parser/Encodings/Japanese_Encodings.msg
# cp Parser/Style/Tree.pm blib/lib/XML/Parser/Style/Tree.pm
# cp Parser/Encodings/iso-8859-7.enc blib/lib/XML/Parser/Encodings/iso-8859-7.enc
# cp Parser/Encodings/iso-8859-5.enc blib/lib/XML/Parser/Encodings/iso-8859-5.enc
# cp Parser/Encodings/big5.enc blib/lib/XML/Parser/Encodings/big5.enc
# cp Parser/Encodings/x-sjis-jisx0221.enc blib/lib/XML/Parser/Encodings/x-sjis-jisx0221.enc
# cp Parser/Encodings/windows-1251.enc blib/lib/XML/Parser/Encodings/windows-1251.enc
# cp Parser/Encodings/x-sjis-jdk117.enc blib/lib/XML/Parser/Encodings/x-sjis-jdk117.enc
# cp Parser/Encodings/iso-8859-4.enc blib/lib/XML/Parser/Encodings/iso-8859-4.enc
# cp Parser/Encodings/x-euc-jp-unicode.enc blib/lib/XML/Parser/Encodings/x-euc-jp-unicode.enc
# cc -c -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 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -DVERSION=\"2.44\" -DXS_VERSION=\"2.44\" -fPIC "-I/usr/lib/perl5/core_perl/CORE" Expat.c
# Expat.xs:12:10: fatal error: 'expat.h' file not found
# #include
# ^
# 1 error generated.
# make[1]: *** [Makefile:320: Expat.o] Error 1
# make[1]: Leaving directory '/tmp/perl-xml-parser/src/XML-Parser-2.44/Expat'
# make: *** [Makefile:594: subdirs] Error 2
# ==> ERROR: A failure occurred in build().
# Aborting...