Build of id3 with musl toolchain

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

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

SLOCLanguage
3,506 cpp
854 ansic
230 makefile
4,590 total

The process tree of the build process is here.

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: id3 0.80-1 (Tue Apr 4 23:07:00 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# clang++ -fno-rtti -Wformat -Wno-parentheses -c main.cpp
# clang++ -fno-rtti -Wformat -Wno-parentheses -c sedit.cpp
# clang++ -fno-rtti -Wformat -Wno-parentheses -c varexp.cpp
# clang++ -fno-rtti -Wformat -Wno-parentheses -c fileexp.cpp
# clang++ -fno-rtti -Wformat -Wno-parentheses -c charconv.cpp
# clang++ -fno-rtti -Wformat -Wno-parentheses -c mass_tag.cpp
# clang++ -fno-rtti -Wformat -Wno-parentheses -c pattern.cpp
# clang++ -fno-rtti -Wformat -Wno-parentheses -c setid3.cpp
# clang++ -fno-rtti -Wformat -Wno-parentheses -c getid3.cpp
# clang -Wformat -Wno-parentheses -c id3v1.c
# clang++ -fno-rtti -Wformat -Wno-parentheses -c setid3v2.cpp
# clang++ -fno-rtti -Wformat -Wno-parentheses -c getid3v2.cpp
# clang -Wformat -Wno-parentheses -c id3v2.c
# clang -Wformat -Wno-parentheses -c fileops.c
# clang++ -fno-rtti -Wformat -Wno-parentheses -c char_ucs.cpp
# clang++ -fno-rtti -Wformat -Wno-parentheses -c char_utf8.cpp
# clang++ -fno-rtti -Wformat -Wno-parentheses -c setlyr3.cpp
# clang++ -fno-rtti -Wformat -Wno-parentheses -c getlyr3.cpp
# clang++ -fno-rtti -Wformat -Wno-parentheses -c lyrics3.cpp
# clang++ -fno-rtti -Wformat -Wno-parentheses -c setfname.cpp
# clang++ -fno-rtti -Wformat -Wno-parentheses -c setquery.cpp
# clang++ -fno-rtti -Wformat -Wno-parentheses -c dumptag.cpp
# clang++ -fno-rtti -Wformat -Wno-parentheses main.o sedit.o varexp.o fileexp.o charconv.o mass_tag.o pattern.o setid3.o getid3.o id3v1.o setid3v2.o getid3v2.o id3v2.o fileops.o char_ucs.o char_utf8.o setlyr3.o getlyr3.o lyrics3.o setfname.o setquery.o dumptag.o -o id3
# main.o:main.cpp:function verbose::file(char const*, fileexp::record const&): error: undefined reference to '__dso_handle'
# mass_tag.o:mass_tag.cpp:function fileexp::(anonymous namespace)::substvars::var(std::__1::__wrap_iter&, std::__1::__wrap_iter) const: error: undefined reference to '__dso_handle'
# setid3.o:setid3.cpp:function __cxx_global_var_init: error: undefined reference to '__dso_handle'
# setid3v2.o:setid3v2.cpp:function __cxx_global_var_init.1: error: undefined reference to '__dso_handle'
# clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation)
# make: *** [makefile:200: id3] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...