Build of efitools with clang_glibc 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
7,455 ansic
296 sh
119 perl
117 makefile
7,987 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...

Copied permanent toolchain into container-local sysroot
# /toolchain_root/sysroot --> /sysroot/sysroot
# /toolchain_root/lib --> /sysroot/lib
# /toolchain_root/sbin --> /sysroot/sbin
# /toolchain_root/lib64 --> /sysroot/lib64
# /toolchain_root/etc --> /sysroot/etc
# /toolchain_root/share --> /sysroot/share
# /toolchain_root/bin --> /sysroot/bin
# /toolchain_root/var --> /sysroot/var
# /toolchain_root/usr --> /sysroot/usr
# /toolchain_root/glibc-build --> /sysroot/glibc-build
# /toolchain_root/x86_64-pc-linux-gnu --> /sysroot/x86_64-pc-linux-gnu
# /toolchain_root/include --> /sysroot/include
# /toolchain_root/libexec --> /sysroot/libexec

CMD: sudo -u tuscan PATH=/usr/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: efitools 1.7.0.3.g791e463-1 (Thu Apr 13 20:06:38 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> Installing missing dependencies...
# resolving dependencies...
# looking for conflicting packages...
#
# Packages (5) perl-locale-gettext-1.07-2 gnu-efi-libs-3.0.3-1 help2man-1.47.3-2 perl-file-slurp-9999.19-3 sbsigntools-0.8-1
#
# Total Installed Size: 2.42 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 gnu-efi-libs...
# installing perl-locale-gettext...
# installing help2man...
# installing sbsigntools...
# installing perl-file-slurp...
# :: Running post-transaction hooks...
# (1/2) Updating manpage index...
# (2/2) Updating the info directory file...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting pkgver()...
# ==> Starting build()...
# make -C lib lib-efi.a
# make[1]: Entering directory '/tmp/efitools/src/efitools/lib'
# clang -I/tmp/efitools/src/efitools/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -O2 -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -fno-toplevel-reorder -DBUILD_EFI -c simple_file.c -o simple_file.efi.o
# clang-3.8: error: unknown argument: '-fno-toplevel-reorder'
# clang-3.8: warning: optimization flag '-fno-merge-constants' is not supported
# make[1]: *** [../Make.rules:105: simple_file.efi.o] Error 1
# make[1]: Leaving directory '/tmp/efitools/src/efitools/lib'
# make: *** [Makefile:46: lib/lib-efi.a] Error 2
# ==> ERROR: A failure occurred in build().
# Aborting...