Build of python-pycurl with musl toolchain

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

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

SLOCLanguage
6,546 python
5,837 ansic
621 sh
144 makefile
53 php
13,201 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-pycurl 7.43.0-1 (Wed Apr 5 02:18:23 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# python setup.py docstrings
# python setup.py docstrings
# python setup.py build
# Using curl-config (libcurl 7.49.1)
# running build
# running build_py
# creating build
# creating build/lib.linux-x86_64-3.5
# creating build/lib.linux-x86_64-3.5/curl
# copying python/curl/__init__.py -> build/lib.linux-x86_64-3.5/curl
# running build_ext
# building 'pycurl' extension
# creating build/temp.linux-x86_64-3.5
# creating build/temp.linux-x86_64-3.5/src
# clang -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPYCURL_VERSION="7.43.0" -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1 -I/usr/include/python3.5m -c src/docstrings.c -o build/temp.linux-x86_64-3.5/src/docstrings.o
# In file included from src/docstrings.c:4:
# src/pycurl.h:32:10: fatal error: 'curl/curl.h' file not found
# #include
# ^
# 1 error generated.
# error: command 'clang' failed with exit status 1
# make: *** [Makefile:92: build] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...