Build of pigz with musl toolchain

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

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

SLOCLanguage
5,704 ansic
58 makefile
5,762 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: pigz 2.3.3-1 (Wed Apr 5 00:14:46 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# cc -O3 -Wall -Wextra -c -o pigz.o pigz.c
# cc -O3 -Wall -Wextra -c -o yarn.o yarn.c
# cc -O3 -Wall -Wextra -c -o try.o try.c
# cc -O3 -Wall -Wextra -c -o zopfli/src/zopfli/deflate.o zopfli/src/zopfli/deflate.c
# pigz.c:365:10: fatal error: 'zlib.h' file not found
# #include "zlib.h" /* deflateInit2(), deflateReset(), deflate(), */
# ^
# cc -O3 -Wall -Wextra -c -o zopfli/src/zopfli/blocksplitter.o zopfli/src/zopfli/blocksplitter.c
# 1 error generated.
# make: *** [: pigz.o] Error 1
# make: *** Waiting for unfinished jobs....
# ==> ERROR: A failure occurred in build().
# Aborting...