Build of perl-xml-libxml with musl toolchain

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

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

SLOCLanguage
6,163 perl
3,752 ansic
57 makefile
17 sh
9,989 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-xml-libxml 2.0126-1 (Wed Apr 5 01:37:43 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Installing missing dependencies...
# resolving dependencies...
# looking for conflicting packages...
#
# Packages (3) perl-xml-sax-base-1.08-3 perl-xml-namespacesupport-1.11-3 perl-xml-sax-0.99-4
#
# Total Installed Size: 0.33 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 perl-xml-sax-base...
# installing perl-xml-namespacesupport...
# installing perl-xml-sax...
# :: Running post-transaction hooks...
# (1/1) Updating manpage index...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# enable native perl UTF8
# running xml2-config...The installed version of libxml2 VERSION 2.9.4
# is not compatible with XML::LibXML (and probably buggy)!
#
# You may continue at your own risk using 'perl Makefile.PL FORCE=1', but:
#
# - don't expect XML::LibXML to build or work correctly!
# - don't report errors!
# - don't send patches!
#
# Check the README file for more information on versions
# that are tested with XML::LibXML
#
# failed
# Checking for ability to link against xml2...no
# Checking for ability to link against libxml2...libxml2, zlib, and/or the Math library (-lm) have not been found.
# Try setting LIBS and INC values on the command line
# Or get libxml2 from
# http://xmlsoft.org/
# If you install via RPMs, make sure you also install the -devel
# RPMs, as this is where the headers (.h files) are.
#
# Also, you may try to run perl Makefile.PL with the DEBUG=1 parameter
# to see the exact reason why the detection of libxml2 installation
# failed or why Makefile.PL was not able to compile a test program.
# make: *** No targets specified and no makefile found. Stop.
# ==> ERROR: A failure occurred in build().
# Aborting...