Build of ddrescue with musl toolchain

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

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

SLOCLanguage
4,495 cpp
607 sh
139 makefile
5,241 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: ddrescue 1.21-1 (Wed Apr 5 00:55:05 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# configure: WARNING: unrecognized option: '--host=x86_64-unknown-linux'
#
# creating config.status
# creating Makefile
# VPATH = .
# prefix = /usr
# exec_prefix = $(prefix)
# bindir = $(exec_prefix)/bin
# datarootdir = $(prefix)/share
# infodir = $(datarootdir)/info
# mandir = $(datarootdir)/man
# CXX = g++
# CPPFLAGS =
# CXXFLAGS = -Wall -W -O2
# LDFLAGS =
# OK. Now you can run make.
# g++ -Wall -W -O2 -c -o arg_parser.o arg_parser.cc
# g++ -Wall -W -O2 -c -o rational.o rational.cc
# g++ -Wall -W -O2 -c -o non_posix.o non_posix.cc
# g++ -Wall -W -O2 -c -o loggers.o loggers.cc
# g++ -Wall -W -O2 -c -o block.o block.cc
# g++ -Wall -W -O2 -c -o mapfile.o mapfile.cc
# g++ -Wall -W -O2 -c -o mapbook.o mapbook.cc
# g++ -Wall -W -O2 -c -o fillbook.o fillbook.cc
# g++ -Wall -W -O2 -c -o genbook.o genbook.cc
# g++ -Wall -W -O2 -c -o io.o io.cc
# g++ -Wall -W -O2 -c -o rescuebook.o rescuebook.cc
# g++ -Wall -W -O2 -DPROGVERSION=\"1.21\" -c -o main.o main.cc
# g++ -Wall -W -O2 -DPROGVERSION=\"1.21\" -c -o ddrescuelog.o ddrescuelog.cc
# g++ -Wall -W -O2 -o ddrescue arg_parser.o rational.o non_posix.o loggers.o block.o mapfile.o mapbook.o fillbook.o genbook.o io.o rescuebook.o main.o
# mapbook.o:mapbook.cc:function Mapbook::emergency_save(): error: undefined reference to '__dso_handle'
# main.o:main.cc:function write_file_header(_IO_FILE*, char const*): error: undefined reference to '__dso_handle'
# main.o:main.cc:function write_final_timestamp(_IO_FILE*): error: undefined reference to '__dso_handle'
# main.o:main.cc:function _GLOBAL__sub_I_main.cc: error: undefined reference to '__dso_handle'
# clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation)
# make: *** [Makefile:46: ddrescue] Error 1
# make: *** Waiting for unfinished jobs....
# ==> ERROR: A failure occurred in build().
# Aborting...