Build of ratpoints with musl toolchain

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

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

SLOCLanguage
4,201 ansic
80 makefile
4,281 total

The process tree of the build process is here.

Several sub-process invocations were improper; see the process tree for details. Summary:

List of Errors

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: ratpoints 2.1.3-1 (Wed Apr 5 00:58:35 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# gcc sift.c -c -o sift.o -Wall -O2 -fomit-frame-pointer -DRATPOINTS_MAX_BITS_IN_PRIME=7 -DUSE_SSE -funroll-loops
# gcc gen_init_sieve_h.c -o gen_init_sieve_h -Wall -O2 -fomit-frame-pointer -DRATPOINTS_MAX_BITS_IN_PRIME=7 -DUSE_SSE -lgmp -lgcc -lc -lm
# gcc sturm.c -c -o sturm.o -Wall -O2 -fomit-frame-pointer -DRATPOINTS_MAX_BITS_IN_PRIME=7 -DUSE_SSE
# gcc gen_find_points_h.c -o gen_find_points_h -Wall -O2 -fomit-frame-pointer -DRATPOINTS_MAX_BITS_IN_PRIME=7 -DUSE_SSE -lgmp -lgcc -lc -lm
# In file included from sturm.c:29:
# ./ratpoints.h:29:10: fatal error: 'gmp.h' file not found
# #include
# ^
# 1 error generated.
# make: *** [Makefile:118: sturm.o] Error 1
# make: *** Waiting for unfinished jobs....
# In file included from gen_find_points_h.c:29:
# In file included from ./rp-private.h:52:
# ./ratpoints.h:29:10: fatal error: 'gmp.h' file not found
# #include
# ^
# In file included from sift.c:29:
# In file included from ./rp-private.h:52:
# ./ratpoints.h:29:10: fatal error: 'gmp.h' file not found
# #include
# ^
# In file included from gen_init_sieve_h.c:29:
# In file included from ./rp-private.h:52:
# ./ratpoints.h:29:10: fatal error: 'gmp.h' file not found
# #include
# ^
# 1 error generated.
# 1 error generated.
# 1 error generated.
# make: *** [Makefile:133: gen_find_points_h] Error 1
# make: *** [Makefile:130: gen_init_sieve_h] Error 1
# make: *** [Makefile:100: sift.o] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...