Build of python-apsw with musl toolchain

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

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

SLOCLanguage
10,947 python
9,307 ansic
255 makefile
66 sh
20,575 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-apsw 3.12.2-1 (Tue Apr 4 23:42:11 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# running build
# running build_ext
# SQLite: Using system sqlite include/libraries
# building 'apsw' extension
# creating build
# 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 -DEXPERIMENTAL=1 -DNDEBUG=1 -DAPSW_FORK_CHECKER=1 -Isrc -I/usr/include/python3.5m -c src/apsw.c -o build/temp.linux-x86_64-3.5/src/apsw.o
# src/apsw.c:59:10: fatal error: 'sqlite3.h' file not found
# #include "sqlite3.h"
# ^
# 1 error generated.
# /usr/lib/python3.5/site-packages/setuptools/dist.py:285: UserWarning: Normalizing '3.12.2-r1' to '3.12.2.post1'
# normalized_version,
# error: command 'clang' failed with exit status 1
# ==> ERROR: A failure occurred in build().
# Aborting...