Build of setserial with clang_glibc toolchain

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

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

SLOCLanguage
1,759 sh
815 ansic
2,574 total

The process tree of the build process is here.

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: setserial 2.17-5 (Thu Apr 13 16:00:37 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# creating cache ./config.cache
# Generating configuration file for setserial version 2.17
# Release date is January, 2000
# checking for gcc... clang
# checking whether the C compiler (clang ) works... yes
# checking whether the C compiler (clang ) is a cross-compiler... no
# checking whether we are using GNU C... yes
# checking whether clang accepts -g... yes
# checking for a BSD compatible install... /usr/bin/install -c
# checking host system type... Invalid configuration `x86_64-unknown-linux': machine `x86_64-unknown' not recognized
#
# checking build system type... Invalid configuration `x86_64-unknown-linux': machine `x86_64-unknown' not recognized
#
# checking for x86_64-unknown-linux-strip... no
# checking for strip... strip
# checking how to run the C preprocessor... clang -E
# checking for asm/ioctls.h... yes
# checking for linux/hayesesp.h... no
# updating cache ./config.cache
# creating ./config.status
# creating setserial.8
# creating Makefile
# clang -DHAVE_ASM_IOCTLS_H=1 -I. setserial.c -o setserial
# setserial.c:206:6: warning: implicit declaration of function 'ioctl' is invalid in C99 [-Wimplicit-function-declaration]
# if (ioctl(fd, TIOCSERGETMULTI, &multi) < 0)
# ^
# setserial.c:249:3: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration]
# exit(1);
# ^
# setserial.c:249:3: note: include the header or explicitly provide a declaration for 'exit'
# setserial.c:428:3: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration]
# close(fd);
# ^
# setserial.c:717:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# main(int argc, char **argv)
# ^
# setserial.c:727:14: warning: implicit declaration of function 'getopt' is invalid in C99 [-Wimplicit-function-declaration]
# while ((c = getopt(argc, argv, "abgGqvVWz")) != EOF) {
# ^
# 5 warnings generated.
# nroff -man setserial.8 > setserial.cat
# ==> Entering fakeroot environment...
# ==> Starting package()...
# /usr/bin/install -c setserial /tmp/setserial/pkg/setserial/bin
# strip /tmp/setserial/pkg/setserial/bin/setserial
# strip: Warning: could not locate '/tmp/setserial/pkg/setserial/bin/setserial'. reason: Not a directory
# make: *** [Makefile:30: install] Error 1
# ==> ERROR: A failure occurred in package().
# Aborting...

Printing config logfiles

CMD: config logfiles '/tmp/setserial/src/setserial-2.17/config.log'
# This file contains any messages produced by compilers while
# running configure, to aid debugging if configure makes a mistake.
#
# configure:566: checking for gcc
# configure:679: checking whether the C compiler (clang ) works
# configure:695: clang -o conftest conftest.c 1>&5
# configure:692:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# main(){return(0);}
# ^
# 1 warning generated.
# configure:721: checking whether the C compiler (clang ) is a cross-compiler
# configure:726: checking whether we are using GNU C
# configure:735: clang -E conftest.c
# configure:754: checking whether clang accepts -g
# configure:816: checking for a BSD compatible install
# configure:875: checking host system type
# configure:896: checking build system type
# configure:922: checking for x86_64-unknown-linux-strip
# configure:954: checking for strip
# configure:987: checking how to run the C preprocessor
# configure:1008: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1070: checking for asm/ioctls.h
# configure:1080: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1070: checking for linux/hayesesp.h
# configure:1080: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1076:10: fatal error: 'linux/hayesesp.h' file not found
# #include
# ^
# 1 error generated.
# configure: failed program was:
# #line 1075 "configure"
# #include "confdefs.h"
# #include