Build of qpress 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
1,565 cpp
1,176 ansic
2 makefile
2,743 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: qpress 1.1-2 (Wed Apr 5 00:23:45 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# g++ -O3 -o qpress qpress.cpp aio.cpp quicklz.c utilities.cpp -lpthread
# clang-3.8: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
# /tmp/qpress-51a1f6.o:qpress.cpp:function _GLOBAL__sub_I_qpress.cpp: error: undefined reference to '__dso_handle'
# clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation)
# make: *** [makefile:2: g++] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...