Build of python-pysqlite with android toolchain

The build took 00h 01m 06s 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...

Copied permanent toolchain into container-local sysroot
# /toolchain_root/arm-linux-androideabi --> /sysroot/arm-linux-androideabi
# /toolchain_root/COPYING3.LIB --> /sysroot/COPYING3.LIB
# /toolchain_root/sysroot --> /sysroot/sysroot
# /toolchain_root/COPYING.RUNTIME --> /sysroot/COPYING.RUNTIME
# /toolchain_root/lib --> /sysroot/lib
# /toolchain_root/SOURCES --> /sysroot/SOURCES
# /toolchain_root/lib64 --> /sysroot/lib64
# /toolchain_root/share --> /sysroot/share
# /toolchain_root/bin --> /sysroot/bin
# /toolchain_root/COPYING --> /sysroot/COPYING
# /toolchain_root/COPYING3 --> /sysroot/COPYING3
# /toolchain_root/COPYING.LIB --> /sysroot/COPYING.LIB
# /toolchain_root/include --> /sysroot/include
# /toolchain_root/libexec --> /sysroot/libexec

CMD: sudo -u tuscan PATH=/sysroot/bin:/sysroot/libexec/gcc/arm-linux-androideabi/4.8:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin CC=arm-linux-androideabi-gcc CXX=arm-linux-androideabi-g++ red makepkg --noextract --syncdeps --skipinteg --skippgpcheck --skipchecksums --noconfirm --nocolor --log --noprogressbar --nocheck
# ==> Making package: python-pysqlite 2.8.2-1 (Tue Apr 4 22:07:36 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
# arm-linux-androideabi-gcc -DNDEBUG -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMODULE_NAME="pysqlite2.dbapi2" -I/sysroot/include/python2.7 -c src/module.c -o build/temp.linux-x86_64-2.7/src/module.o
# In file included from /sysroot/include/python2.7/Python.h:58:0,
# from src/connection.h:26,
# from src/module.c:24:
# /sysroot/include/python2.7/pyport.h:1029:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
# #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
# ^
# In file included from src/module.c:24:0:
# src/connection.h:33:21: fatal error: sqlite3.h: No such file or directory
# #include "sqlite3.h"
# ^
# compilation terminated.
# error: command 'arm-linux-androideabi-gcc' failed with exit status 1
# ==> ERROR: A failure occurred in build().
# Aborting...