Build of uboot-tools with musl toolchain

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

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

SLOCLanguage
1,180,153 ansic
31,646 asm
8,830 python
8,014 perl
6,413 makefile
2,453 sh
1,829 cpp
604 yacc
363 lex
28 tcl
14 sed
6 awk
1,240,353 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: uboot-tools 2016.03-1 (Wed Apr 5 00:41:03 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# HOSTCC scripts/basic/fixdep
# scripts/basic/fixdep: error while loading shared libraries: /usr/lib/libc.so: invalid ELF header
# make[1]: *** [scripts/Makefile.host:94: scripts/basic/fixdep] Error 127
# make: *** [Makefile:397: scripts_basic] Error 2
# ==> ERROR: A failure occurred in build().
# Aborting...