Build of ttyload 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
675 ansic
49 makefile
36 sh
760 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...

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: ttyload 0.5.3-1 (Wed Apr 5 00:10:52 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# ln -s FreeBSD arch/Darwin
# ln -s FreeBSD arch/Isilon-OneFS
# ln -s `uname -s | sed -e 's/ /-/g'` arch/thisarch
# make archtest ttyload ARCH=`uname -s | sed -e 's/ /-/g'`
# make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
# make[1]: Entering directory '/tmp/ttyload/src/ttyload-0.5.3'
# gcc -pedantic -Wall -Werror -I${PWD:-.} -I${PWD:-.}/arch/Linux -I${PWD:-.}/arch/default -g -DVERSION='"'`cat Version`'"' -o arch/Linux/getload.o -c arch/Linux/getload.c
# gcc -pedantic -Wall -Werror -I${PWD:-.} -I${PWD:-.}/arch/Linux -I${PWD:-.}/arch/default -g -DVERSION='"'`cat Version`'"' -o arch/Linux/terminfo.o -c arch/Linux/terminfo.c
# gcc -pedantic -Wall -Werror -I${PWD:-.} -I${PWD:-.}/arch/Linux -I${PWD:-.}/arch/default -g -DVERSION='"'`cat Version`'"' -o archtest.o -c archtest.c
# gcc -pedantic -Wall -Werror `./ldflags` -o archtest arch/Linux/getload.o arch/Linux/terminfo.o archtest.o
# touch ttyload.c
# gcc -pedantic -Wall -Werror -I${PWD:-.} -I${PWD:-.}/arch/Linux -I${PWD:-.}/arch/default -g -DVERSION='"'`cat Version`'"' -o ttyload.o -c ttyload.c
# In file included from ttyload.c:18:
# /sysroot/include/sys/fcntl.h:1:2: error: redirecting incorrect #include to [-Werror,-W#warnings]
# #warning redirecting incorrect #include to
# ^
# 1 error generated.
# make[1]: *** [Makefile:92: ttyload.o] Error 1
# make[1]: Leaving directory '/tmp/ttyload/src/ttyload-0.5.3'
# make: *** [Makefile:65: archbuild] Error 2
# ==> ERROR: A failure occurred in build().
# Aborting...