Build of cdbxx with musl toolchain

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

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

SLOCLanguage
702 cpp
80 makefile
782 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: cdbxx 0.0.1rc2-5 (Wed Apr 5 01:27:48 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> Installing missing dependencies...
# resolving dependencies...
# looking for conflicting packages...
#
# Packages (1) tinycdb-0.78-2
#
# Total Installed Size: 0.05 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 tinycdb...
# :: Running post-transaction hooks...
# (1/1) Updating manpage index...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# make[1]: Entering directory '/tmp/cdbxx/src/cdbxx-0.0.1rc2/src'
# Making dependences for iterator.cc
# Making dependences for db.cc
# g++ -g -O2 -Wall -W -Wold-style-cast -fno-common -pedantic -DNDEBUG -I../include -c -fpic db.cc -o db.so
# g++ -g -O2 -Wall -W -Wold-style-cast -fno-common -pedantic -DNDEBUG -I../include -c -fpic iterator.cc -o iterator.so
# g++ -g -O2 -Wall -W -Wold-style-cast -fno-common -pedantic -DNDEBUG -I../include -c -o db.o db.cc
# g++ -g -O2 -Wall -W -Wold-style-cast -fno-common -pedantic -DNDEBUG -I../include -c -o iterator.o iterator.cc
# ar rv libcdbxx.a db.o iterator.o
# g++ -lcdb -g -O2 -Wall -W -Wold-style-cast -fno-common -pedantic -DNDEBUG -shared -Wl,-soname,libcdbxx.so.0 -lc db.so iterator.so -o libcdbxx.so
# /r: creating libcdbxx.a
# ln -sf libcdbxx.so libcdbxx.so.0
# a - db.o
# a - iterator.o
# ranlib libcdbxx.a
# make[1]: Leaving directory '/tmp/cdbxx/src/cdbxx-0.0.1rc2/src'
# make[1]: Entering directory '/tmp/cdbxx/src/cdbxx-0.0.1rc2/testsuite'
# g++ -g -O2 -Wall -W -Wold-style-cast -fno-common -pedantic -DNDEBUG -I../include -Wl,-rpath,/tmp/cdbxx/src/cdbxx-0.0.1rc2/testsuite/../src/ -L../src/ -lcdbxx -lcdb test.cc -o test
# test.cc:28: error: undefined reference to '__dso_handle'
# clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation)
# make[1]: *** [: test] Error 1
# make[1]: Leaving directory '/tmp/cdbxx/src/cdbxx-0.0.1rc2/testsuite'
# make: *** [Makefile:12: all] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...