Build of python-gmpy2 with musl toolchain

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

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

SLOCLanguage
21,072 ansic
5,815 python
105 makefile
26,992 total

The process tree of the build process is here.

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: python-gmpy2 2.0.8-1 (Wed Apr 5 01:00:30 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Entering fakeroot environment...
# ==> Starting package_python2-gmpy2()...
# running install
# running build
# running build_ext
# building 'gmpy2' extension
# creating build
# creating build/temp.linux-x86_64-2.7
# creating build/temp.linux-x86_64-2.7/src
# clang -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DWITHMPFR -DWITHMPC -I/usr/include/python2.7 -c src/gmpy2.c -o build/temp.linux-x86_64-2.7/src/gmpy2.o
# In file included from src/gmpy2.c:426:
# src/gmpy.h:106:12: fatal error: 'gmp.h' file not found
# # include "gmp.h"
# ^
# 1 error generated.
# error: command 'clang' failed with exit status 1
# ==> ERROR: A failure occurred in package_python2-gmpy2().
# Aborting...