Build of datemath 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
440 ansic
241 lex
181 yacc
21 makefile
883 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: datemath 2.0.10-5 (Tue Apr 4 23:28:09 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# File ./util.c is read-only; trying to patch anyway
# patching file ./util.c
# gcc -W -Wall -pedantic -c -o datemath.o datemath.c
# bison --defines --output=gram.c gram.y
# gcc -W -Wall -pedantic -c -o util.o util.c
# flex -t lex.l > lex.c
# make: *** [Makefile:34: gram.c] Segmentation fault (core dumped)
# make: *** Waiting for unfinished jobs....
# make: *** [: lex.c] Error 1
# rm lex.c
# ==> ERROR: A failure occurred in build().
# Aborting...