Build of efivar with musl toolchain

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

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

SLOCLanguage
7,607 ansic
261 sh
196 makefile
31 asm
8,095 total

The process tree of the build process is here.

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: efivar 0.23.37.g8740389-1 (Wed Apr 5 00:51:23 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting pkgver()...
# ==> Starting build()...
# make[1]: Entering directory '/tmp/efivar/src/efivar/src'
# clang -I/tmp/efivar/src/efivar/src/include/efivar/ -D_GNU_SOURCE -L. -DEFIVAR_BUILD_ENVIRONMENT -o makeguids makeguids.c guid.c -ldl
# ./makeguids guids.txt guids.bin names.bin \
# guid-symbols.c include/efivar/efivar-guids.h
# ./makeguids: error while loading shared libraries: /usr/lib/libc.so: invalid ELF header
# make[1]: *** No rule to make target 'include/efivar/efivar-guids.h', needed by 'dp.o'. Stop.
# make[1]: Leaving directory '/tmp/efivar/src/efivar/src'
# make: *** [Makefile:11: all] Error 2
# ==> ERROR: A failure occurred in build().
# Aborting...