Build of python-pysqlite with musl toolchain

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

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

SLOCLanguage
4,930 ansic
3,080 python
52 makefile
8,062 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-pysqlite 2.8.2-1 (Wed Apr 5 01:57:42 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# running build
# running build_py
# creating build
# creating build/lib.linux-x86_64-2.7
# creating build/lib.linux-x86_64-2.7/pysqlite2
# copying lib/dump.py -> build/lib.linux-x86_64-2.7/pysqlite2
# copying lib/__init__.py -> build/lib.linux-x86_64-2.7/pysqlite2
# copying lib/dbapi2.py -> build/lib.linux-x86_64-2.7/pysqlite2
# creating build/lib.linux-x86_64-2.7/pysqlite2/test
# copying lib/test/types.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
# copying lib/test/dump.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
# copying lib/test/transactions.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
# copying lib/test/factory.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
# copying lib/test/__init__.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
# copying lib/test/dbapi.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
# copying lib/test/userfunctions.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
# copying lib/test/hooks.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
# copying lib/test/regression.py -> build/lib.linux-x86_64-2.7/pysqlite2/test
# running build_ext
# building 'pysqlite2._sqlite' extension
# 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 -DMODULE_NAME="pysqlite2.dbapi2" -I/usr/include/python2.7 -c src/module.c -o build/temp.linux-x86_64-2.7/src/module.o
# In file included from src/module.c:24:
# src/connection.h:33:10: fatal error: 'sqlite3.h' file not found
# #include "sqlite3.h"
# ^
# 1 error generated.
# error: command 'clang' failed with exit status 1
# ==> ERROR: A failure occurred in build().
# Aborting...