Build of tinyxml with musl toolchain

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

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

SLOCLanguage
4,748 cpp
57 makefile
9 ansic
4,814 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: tinyxml 2.6.2-5 (Wed Apr 5 00:35:46 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> Installing missing dependencies...
# resolving dependencies...
# looking for conflicting packages...
#
# Packages (1) setconf-0.7.2-1
#
# Total Installed Size: 0.02 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 setconf...
# :: Running post-transaction hooks...
# (1/1) Updating manpage index...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# g++ -c -Wall -Wno-unknown-pragmas -Wno-format -O3 tinyxml.cpp -o tinyxml.o
# g++ -c -Wall -Wno-unknown-pragmas -Wno-format -O3 tinyxmlparser.cpp -o tinyxmlparser.o
# g++ -c -Wall -Wno-unknown-pragmas -Wno-format -O3 xmltest.cpp -o xmltest.o
# g++ -c -Wall -Wno-unknown-pragmas -Wno-format -O3 tinyxmlerror.cpp -o tinyxmlerror.o
# xmltest.cpp:1141:27: warning: illegal character encoding in string literal [-Winvalid-source-encoding]
# "<>"
# ^~~~
# xmltest.cpp:1142:27: warning: illegal character encoding in string literal [-Winvalid-source-encoding]
# "Cntnt"
# ^~~~ ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# xmltest.cpp:1143:28: warning: illegal character encoding in string literal [-Winvalid-source-encoding]
# ">";
# ^~~~
# xmltest.cpp:1149:65: warning: illegal character encoding in string literal [-Winvalid-source-encoding]
# TiXmlHandle aHandle = docHandle.FirstChildElement( "" );
# ^~~~
# xmltest.cpp:1153:47: warning: illegal character encoding in string literal [-Winvalid-source-encoding]
# XmlTest( "ISO-8859-1 Parsing.", "Cntnt", tHandle.Text()->Value() );
# ^~~~ ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# g++ -c -Wall -Wno-unknown-pragmas -Wno-format -O3 tinystr.cpp -o tinystr.o
# 5 warnings generated.
# g++ -o xmltest tinyxml.o tinyxmlparser.o xmltest.o tinyxmlerror.o tinystr.o
# /sysroot/bin/ld: error: tinystr.o: requires dynamic R_X86_64_32 reloc against '_ZN11TiXmlString8nullrep_E' which may overflow at runtime; recompile with -fPIC
# /sysroot/bin/ld: error: tinystr.o: requires dynamic R_X86_64_32 reloc against '__gxx_personality_v0' which may overflow at runtime; recompile with -fPIC
# /sysroot/bin/ld: error: tinyxml.o: requires dynamic R_X86_64_PC32 reloc against 'fopen' which may overflow at runtime; recompile with -fPIC
# /sysroot/bin/ld: error: tinyxml.o: requires dynamic R_X86_64_PC32 reloc against '__cxa_begin_catch' which may overflow at runtime; recompile with -fPIC
# /sysroot/bin/ld: error: tinyxml.o: requires unsupported dynamic reloc 11; recompile with -fPIC
# /sysroot/bin/ld: error: tinyxml.o: requires unsupported dynamic reloc 11; recompile with -fPIC
# /sysroot/bin/ld: error: tinyxml.o: requires unsupported dynamic reloc 11; recompile with -fPIC
# /sysroot/bin/ld: error: tinyxml.o: requires unsupported dynamic reloc 11; recompile with -fPIC
# /sysroot/bin/ld: error: tinyxml.o: requires dynamic R_X86_64_PC32 reloc against '_ZN16TiXmlDeclarationD2Ev' which may overflow at runtime; recompile with -fPIC
# /sysroot/bin/ld: error: tinyxml.o: requires unsupported dynamic reloc 11; recompile with -fPIC
# /sysroot/bin/ld: error: tinyxml.o: requires unsupported dynamic reloc 11; recompile with -fPIC
# /sysroot/bin/ld: error: tinyxml.o: requires unsupported dynamic reloc 11; recompile with -fPIC
# /sysroot/bin/ld: error: tinyxml.o: requires dynamic R_X86_64_32 reloc which may overflow at runtime; recompile with -fPIC
# /sysroot/bin/ld: error: tinyxmlparser.o: requires unsupported dynamic reloc 11; recompile with -fPIC
# /sysroot/bin/ld: error: tinyxmlparser.o: requires unsupported dynamic reloc 11; recompile with -fPIC
# /sysroot/bin/ld: error: tinyxmlparser.o: requires unsupported dynamic reloc 11; recompile with -fPIC
# /sysroot/bin/ld: error: tinyxmlparser.o: requires dynamic R_X86_64_PC32 reloc against '_ZNK14TiXmlAttribute5PrintEP8_IO_FILEiP11TiXmlString' which may overflow at runtime; recompile with -fPIC
# /sysroot/bin/ld: error: tinyxmlparser.o: requires unsupported dynamic reloc 11; recompile with -fPIC
# /sysroot/bin/ld: error: tinyxmlparser.o: requires unsupported dynamic reloc 11; recompile with -fPIC
# /sysroot/bin/ld: error: tinyxmlparser.o: requires dynamic R_X86_64_32 reloc which may overflow at runtime; recompile with -fPIC
# clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation)
# ==> ERROR: A failure occurred in build().
# Aborting...