Build of cgminer with musl toolchain

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

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

SLOCLanguage
75,250 ansic
2,792 php
387 java
292 sh
73 python
23 ruby
78,817 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: cgminer 4.9.2-2 (Wed Apr 5 02:14:27 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Installing missing dependencies...
# resolving dependencies...
# looking for conflicting packages...
#
# Packages (1) jansson-2.7-1
#
# Total Installed Size: 0.15 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 jansson...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# /usr/bin/m4: stack overflow
# autom4te: /usr/bin/m4 failed with exit status: 1
# aclocal: error: echo failed with exit status: 1
# autoreconf: aclocal failed with exit status: 1
# Configuring...
# ./autogen.sh: line 8: /tmp/cgminer/src/cgminer/configure: No such file or directory
# ==> ERROR: A failure occurred in build().
# Aborting...