Build of tcc with musl toolchain

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

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

SLOCLanguage
76,329 ansic
825 sh
755 asm
710 makefile
306 perl
13 python
78,938 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: tcc 0.9.26-3 (Wed Apr 5 00:20:17 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# configure: WARNING: unrecognized option --host=x86_64-unknown-linux
# ./conftest: error while loading shared libraries: /usr/lib/libc.so: invalid ELF header
# ./conftest: error while loading shared libraries: /usr/lib/libc.so: invalid ELF header
# ./conftest: error while loading shared libraries: /usr/lib/libc.so: invalid ELF header
# ./conftest: error while loading shared libraries: /usr/lib/libc.so: invalid ELF header
# Binary directory /usr/bin
# TinyCC directory /usr/lib/tcc
# Library directory /usr/lib64
# Include directory /usr/include
# Manual directory /usr/share/man
# Info directory /usr/share/info
# Doc directory /usr/share/doc//usr/lib/tcc
# Target root prefix
# Source path /tmp/tcc/src/tcc-0.9.26
# C compiler gcc
# cross compilers no
# Target CPU x86-64
# Host OS Linux
# Target OS Linux
# Big Endian
# gprof enabled no
# use libgcc no
# Creating config.mak and config.h
# gcc -o x86_64-tcc tcc.c -DONE_SOURCE -DTCC_TARGET_X86_64 -I. -Wall -g -O0 -lm -ldl
# gcc -o libtcc.o -c libtcc.c -DTCC_TARGET_X86_64 -I. -Wall -g -O0
# gcc -o tccpp.o -c tccpp.c -DTCC_TARGET_X86_64 -I. -Wall -g -O0
# gcc -o tccgen.o -c tccgen.c -DTCC_TARGET_X86_64 -I. -Wall -g -O0
# tccpp.c:839:19: warning: unused function 'tok_size' [-Wunused-function]
# static inline int tok_size(const int *p)
# ^
# gcc -o tccelf.o -c tccelf.c -DTCC_TARGET_X86_64 -I. -Wall -g -O0
# In file included from tcc.c:22:
# In file included from ./libtcc.c:55:
# ./x86_64-gen.c:1079:1: warning: control may reach end of non-void function [-Wreturn-type]
# }
# ^
# 1 warning generated.
# gcc -o tccasm.o -c tccasm.c -DTCC_TARGET_X86_64 -I. -Wall -g -O0
# gcc -o tccrun.o -c tccrun.c -DTCC_TARGET_X86_64 -I. -Wall -g -O0
# gcc -o x86_64-gen.o -c x86_64-gen.c -DTCC_TARGET_X86_64 -I. -Wall -g -O0
# gcc -o i386-asm.o -c i386-asm.c -DTCC_TARGET_X86_64 -I. -Wall -g -O0
# ./texi2pod.pl tcc-doc.texi tcc.pod
# ./x86_64-gen.c:1079:1: warning: control may reach end of non-void function [-Wreturn-type]
# }
# ^
# makeinfo --no-split --html --number-sections -o tcc-doc.html tcc-doc.texi
# 1 warning generated.
# makeinfo tcc-doc.texi
# pod2man --section=1 --center="Tiny C Compiler" --release=`cat ./VERSION` tcc.pod > tcc.1
# /bin/sh: pod2man: command not found
# make: [Makefile:368: tcc.1] Error 127 (ignored)
# ar rcs libtcc.a libtcc.o tccpp.o tccgen.o tccelf.o tccasm.o tccrun.o x86_64-gen.o i386-asm.o
# 1 warning generated.
# ln -sf x86_64-tcc tcc
# make -C lib native
# make[1]: Entering directory '/tmp/tcc/src/tcc-0.9.26/lib'
# mkdir -p x86_64
# ../tcc -B.. -c libtcc1.c -o x86_64/libtcc1.o -I. -I.. -Wall -g -O0 -fPIC -DTCC_TARGET_X86_64
# ../tcc -B.. -c alloca86_64.S -o x86_64/alloca86_64.o -I. -I.. -Wall -g -O0 -fPIC -DTCC_TARGET_X86_64
# ../tcc: error while loading shared libraries: /usr/lib/libc.so: invalid ELF header
# make[1]: *** [Makefile:116: x86_64/libtcc1.o] Error 127
# make[1]: *** Waiting for unfinished jobs....
# ../tcc: error while loading shared libraries: /usr/lib/libc.so: invalid ELF header
# make[1]: *** [Makefile:118: x86_64/alloca86_64.o] Error 127
# make[1]: Leaving directory '/tmp/tcc/src/tcc-0.9.26/lib'
# make: *** [Makefile:259: libtcc1.a] Error 2
# make: *** Waiting for unfinished jobs....
# ==> ERROR: A failure occurred in build().
# Aborting...