Build of calc with musl toolchain

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

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

SLOCLanguage
53,854 ansic
11,199 makefile
96 awk
33 sed
65,182 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: calc 2.12.5.3-1 (Wed Apr 5 00:30:15 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> Installing missing dependencies...
# resolving dependencies...
# looking for conflicting packages...
#
# Packages (1) chrpath-0.16-1
#
# Total Installed Size: 0.09 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 chrpath...
# :: Running post-transaction hooks...
# (1/1) Updating manpage index...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# forming have_unistd.h
# have_unistd.h formed
# forming have_stdlib.h
# have_stdlib.h formed
# gcc -DCALC_SRC -DCUSTOM -Wall -fPIC longbits.c -c
# rm -f longbits
# gcc -DCALC_SRC -DCUSTOM -Wall -fPIC longbits.o -o longbits
# forming longbits.h
# longbits.h formed
# forming align32.h
# align32.h formed
# forming have_string.h
# have_string.h formed
# forming args.h
# args.h formed
# forming calcerr.h
# calcerr.h formed
# forming conf.h
# conf.h formed
# gcc -DCALC_SRC -DCUSTOM -Wall -fPIC endian.c -c
# rm -f endian
# gcc -DCALC_SRC -DCUSTOM -Wall -fPIC endian.o -o endian
# forming endian_calc.h
# endian_calc.h formed
# forming have_fpos.h
# have_fpos.h formed
# forming have_posscl.h
# have_posscl.h formed
# forming have_fpos_pos.h
# have_fpos_pos.h formed
# forming have_offscl.h
# have_offscl.h formed
# forming fposval.h
# fposval.h formed
# forming have_const.h
# have_const.h formed
# forming have_memmv.h
# have_memmv.h formed
# forming have_newstr.h
# have_newstr.h formed
# forming have_times.h
# have_times.h formed
# forming have_uid_t.h
# have_uid_t.h formed
# forming terminal.h
# terminal.h formed
# forming have_ustat.h
# have_ustat.h formed
# forming have_getsid.h
# have_getsid.h formed
# forming have_getpgid.h
# have_getpgid.h formed
# forming have_gettime.h
# have_gettime.h formed
# forming have_getprid.h
# have_getprid.h formed
# forming have_urandom.h
# have_urandom.h formed
# forming have_rusage.h
# have_rusage.h formed
# forming have_strdup.h
# have_strdup.h formed
# forming have_unused.h
# have_unused.h formed
# forming calcerr.c
# calcerr.c formed
# rm -f custom/.all
# cd custom; make -f Makefile ALLOW_CUSTOM="-DCUSTOM" AR=ar AWK=awk BINDIR="/usr/bin" BLD_TYPE="calc-dynamic-only" CALC_INCDIR="/usr/include/calc" CALC_SHAREDIR="/usr/share/calc" CAT=cat CC=" gcc " CCERR="" CCMISC="" CCOPT="-O3 -g3" CCWARN="-Wall" CC_SHARE="-fPIC" CFLAGS="-DCALC_SRC -DCUSTOM -Wall -fPIC -O3 -g3 -I.." CHMOD=chmod CMP=cmp CO=co COMMON_CFLAGS="-DCALC_SRC -DCUSTOM -Wall -I.." COMMON_LDFLAGS="" CP=cp CUSTOMCALDIR="/usr/share/calc/custom" CUSTOMHELPDIR="/usr/share/calc/custhelp" CUSTOMINCDIR="/usr/include/calc/custom" DEBUG="-O3 -g3" DEFAULT_LIB_INSTALL_PATH="/tmp/calc/src/calc-2.12.5.3:/lib:/usr/lib:/usr/lib:/usr/local/lib" FMT=fmt GREP=egrep HELPDIR="/usr/share/calc/help" ICFLAGS="-DCALC_SRC -DCUSTOM -Wall -fPIC -I.." ILDFLAGS="" INCDIR="/usr/include" LANG=C LCC="gcc" LDCONFIG=ldconfig LDFLAGS=" " LD_SHARE=""-Wl,-rpath,/tmp/calc/src/calc-2.12.5.3:/lib:/usr/lib:/usr/lib:/usr/local/lib" "-Wl,-rpath-link,/tmp/calc/src/calc-2.12.5.3:/lib:/usr/lib:/usr/lib:/usr/local/lib"" LIBCUSTCALC_SHLIB="-shared "-Wl,-soname,libcustcalc.so.2.12.5.3"" LIBDIR="/usr/lib" LN=ln MAKE=make MAKEDEPEND=makedepend MAKE_FILE=Makefile MKDIR=mkdir MV=mv PURIFY="" Q="@" RANLIB="ranlib" RM=rm RMDIR=rmdir SCRIPTDIR="/usr/bin/cscript" SED=sed SORT=sort T= TOP_MAKE_FILE=Makefile TOUCH=touch TRUE=true VERSION=2.12.5.3 target=Linux all
# make[1]: Entering directory '/tmp/calc/src/calc-2.12.5.3/custom'
# gcc -DCALC_SRC -DCUSTOM -Wall -fPIC -O3 -g3 -I.. -c -o custtbl.o custtbl.c
# gcc -DCALC_SRC -DCUSTOM -Wall -fPIC -O3 -g3 -I.. -c -o c_argv.o c_argv.c
# gcc -DCALC_SRC -DCUSTOM -Wall -fPIC -O3 -g3 -I.. -c -o c_devnull.o c_devnull.c
# gcc -DCALC_SRC -DCUSTOM -Wall -fPIC -O3 -g3 -I.. -c -o c_help.o c_help.c
# gcc -DCALC_SRC -DCUSTOM -Wall -fPIC -O3 -g3 -I.. c_sysinfo.c -c
# gcc -DCALC_SRC -DCUSTOM -Wall -fPIC -O3 -g3 -I.. -c -o c_pzasusb8.o c_pzasusb8.c
# gcc -DCALC_SRC -DCUSTOM -Wall -fPIC -O3 -g3 -I.. -c -o c_pmodm127.o c_pmodm127.c
# gcc -DCALC_SRC -DCUSTOM -Wall -fPIC -O3 -g3 -I.. -c -o c_register.o c_register.c
# gcc -shared -Wl,-soname,libcustcalc.so.2.12.5.3 custtbl.o c_argv.o c_devnull.o c_help.o c_sysinfo.o c_pzasusb8.o c_pmodm127.o c_register.o -o libcustcalc.so.2.12.5.3
# rm -f .all
# touch .all
# make[1]: Leaving directory '/tmp/calc/src/calc-2.12.5.3/custom'
# gcc -DCALC_SRC -DCUSTOM -Wall -fPIC -O3 -g3 -c -o addop.o addop.c
# gcc -DCALC_SRC -DCUSTOM -Wall -fPIC -O3 -g3 -c -o assocfunc.o assocfunc.c
# gcc -DCALC_SRC -DCUSTOM -Wall -fPIC -O3 -g3 -c -o blkcpy.o blkcpy.c
# gcc -DCALC_SRC -DCUSTOM -Wall -fPIC -O3 -g3 -c -o block.o block.c
# gcc -DCALC_SRC -DCUSTOM -Wall -fPIC -O3 -g3 -c -o byteswap.o byteswap.c
# gcc -DCALC_SRC -DCUSTOM -Wall -fPIC -O3 -g3 -c -o calcerr.o calcerr.c
# gcc -DCALC_SRC -DCUSTOM -Wall -fPIC -O3 -g3 -c -o codegen.o codegen.c
# gcc -DCALC_SRC -DCUSTOM -Wall -fPIC -O3 -g3 -c -o comfunc.o comfunc.c
# gcc -DCALC_SRC -DCUSTOM -Wall -fPIC -O3 -g3 -c -o commath.o commath.c
# gcc -DCALC_SRC -DCUSTOM -Wall -fPIC -O3 -g3 -c -o config.o config.c
# gcc -DCALC_SRC -DCUSTOM -Wall -fPIC -O3 -g3 -c -o const.o const.c
# gcc -DCALC_SRC -DCUSTOM -Wall -fPIC -O3 -g3 -c -o custom.o custom.c
# gcc -DCALC_SRC -DCUSTOM -Wall -fPIC -O3 -g3 -Wno-error=long-long -Wno-long-long -c file.c
# file.c:1367:2: error: use of undeclared identifier 'FPOS_POS_LEN'
# SWAP_HALF_IN_FILEPOS(ret.v, &pos);
# ^
# ./fposval.h:15:86: note: expanded from macro 'SWAP_HALF_IN_FILEPOS'
# #define SWAP_HALF_IN_FILEPOS(dest, src) memcpy((void *)(dest), (void *)(src), sizeof(FPOS_POS_LEN))
# ^
# file.c:1445:2: error: use of undeclared identifier 'FPOS_POS_LEN'
# SWAP_HALF_IN_FILEPOS(&ret, &tmp);
# ^
# ./fposval.h:15:86: note: expanded from macro 'SWAP_HALF_IN_FILEPOS'
# #define SWAP_HALF_IN_FILEPOS(dest, src) memcpy((void *)(dest), (void *)(src), sizeof(FPOS_POS_LEN))
# ^
# 2 errors generated.
# make: *** [Makefile:2187: file.o] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...