Build of upx with musl toolchain

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

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

SLOCLanguage
78,240 ansic
69,145 cpp
22,239 asm
3,843 cs
3,077 java
1,718 makefile
1,119 python
179,381 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: upx 3.91-3 (Wed Apr 5 00:34:39 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Installing missing dependencies...
# resolving dependencies...
# looking for conflicting packages...
#
# Packages (1) ucl-1.03-7
#
# Total Installed Size: 0.10 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 ucl...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# make -C src all
# make[1]: Entering directory '/tmp/upx/src/upx-3.91-src/src'
# touch .depend
# clang++ -DWITH_LZMA=0x465 -I/tmp/upx/src -o c_file.o -c c_file.cpp
# clang++ -DWITH_LZMA=0x465 -I/tmp/upx/src -o c_init.o -c c_init.cpp
# clang++ -DWITH_LZMA=0x465 -I/tmp/upx/src -o c_none.o -c c_none.cpp
# clang++ -DWITH_LZMA=0x465 -I/tmp/upx/src -o c_screen.o -c c_screen.cpp
# clang++ -DWITH_LZMA=0x465 -I/tmp/upx/src -o compress.o -c compress.cpp
# clang++ -DWITH_LZMA=0x465 -I/tmp/upx/src -o compress_lzma.o -c compress_lzma.cpp
# clang++ -DWITH_LZMA=0x465 -I/tmp/upx/src -o compress_ucl.o -c compress_ucl.cpp
# clang++ -DWITH_LZMA=0x465 -I/tmp/upx/src -o compress_zlib.o -c compress_zlib.cpp
# clang++ -DWITH_LZMA=0x465 -I/tmp/upx/src -o except.o -c except.cpp
# compress.cpp:32:10: fatal error: 'zlib.h' file not found
# #include
# ^
# 1 error generated.
# make[1]: *** [Makefile:78: compress.o] Error 1
# make[1]: *** Waiting for unfinished jobs....
# make[1]: Leaving directory '/tmp/upx/src/upx-3.91-src/src'
# make: *** [Makefile:37: all] Error 2
# ==> ERROR: A failure occurred in build().
# Aborting...