Build of python2-ldap with android 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
6,540 python
2,878 ansic
9,418 total

The process tree of the build process is here.

Several sub-process invocations were improper; see the process tree for details. Summary:

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: python2-ldap 2.4.25-1 (Tue Apr 4 22:15:16 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> Installing missing dependencies...
# resolving dependencies...
# looking for conflicting packages...
#
# Packages (1) chrpath-0.16-1
#
# Total Installed Size: 0.09 MiB
#
# :: Proceed with installation? [Y/n]
# checking keyring...
# checking package integrity...
# loading package files...
# checking for file conflicts...
# checking available disk space...
# :: Processing package changes...
# installing chrpath...
# :: Running post-transaction hooks...
# (1/1) Updating manpage index...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# defines: HAVE_SASL HAVE_TLS HAVE_LIBLDAP_R
# extra_compile_args:
# extra_objects:
# include_dirs: /usr/include /usr/include/sasl /usr/local/include /usr/local/include/sasl
# library_dirs: /usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64
# libs: ldap_r
# running build
# running build_py
# file Lib/ldap.py (for module ldap) not found
# file Lib/ldap/controls.py (for module ldap.controls) not found
# file Lib/ldap/extop.py (for module ldap.extop) not found
# file Lib/ldap/schema.py (for module ldap.schema) not found
# creating build
# creating build/lib.linux-x86_64-2.7
# copying Lib/ldapurl.py -> build/lib.linux-x86_64-2.7
# copying Lib/ldif.py -> build/lib.linux-x86_64-2.7
# copying Lib/dsml.py -> build/lib.linux-x86_64-2.7
# creating build/lib.linux-x86_64-2.7/ldap
# copying Lib/ldap/__init__.py -> build/lib.linux-x86_64-2.7/ldap
# copying Lib/ldap/async.py -> build/lib.linux-x86_64-2.7/ldap
# creating build/lib.linux-x86_64-2.7/ldap/controls
# copying Lib/ldap/controls/__init__.py -> build/lib.linux-x86_64-2.7/ldap/controls
# copying Lib/ldap/controls/deref.py -> build/lib.linux-x86_64-2.7/ldap/controls
# copying Lib/ldap/controls/libldap.py -> build/lib.linux-x86_64-2.7/ldap/controls
# copying Lib/ldap/controls/openldap.py -> build/lib.linux-x86_64-2.7/ldap/controls
# copying Lib/ldap/controls/ppolicy.py -> build/lib.linux-x86_64-2.7/ldap/controls
# copying Lib/ldap/controls/psearch.py -> build/lib.linux-x86_64-2.7/ldap/controls
# copying Lib/ldap/controls/pwdpolicy.py -> build/lib.linux-x86_64-2.7/ldap/controls
# copying Lib/ldap/controls/readentry.py -> build/lib.linux-x86_64-2.7/ldap/controls
# copying Lib/ldap/controls/sessiontrack.py -> build/lib.linux-x86_64-2.7/ldap/controls
# copying Lib/ldap/controls/simple.py -> build/lib.linux-x86_64-2.7/ldap/controls
# copying Lib/ldap/cidict.py -> build/lib.linux-x86_64-2.7/ldap
# copying Lib/ldap/dn.py -> build/lib.linux-x86_64-2.7/ldap
# creating build/lib.linux-x86_64-2.7/ldap/extop
# copying Lib/ldap/extop/__init__.py -> build/lib.linux-x86_64-2.7/ldap/extop
# copying Lib/ldap/extop/dds.py -> build/lib.linux-x86_64-2.7/ldap/extop
# copying Lib/ldap/filter.py -> build/lib.linux-x86_64-2.7/ldap
# copying Lib/ldap/functions.py -> build/lib.linux-x86_64-2.7/ldap
# copying Lib/ldap/ldapobject.py -> build/lib.linux-x86_64-2.7/ldap
# copying Lib/ldap/logger.py -> build/lib.linux-x86_64-2.7/ldap
# copying Lib/ldap/modlist.py -> build/lib.linux-x86_64-2.7/ldap
# copying Lib/ldap/resiter.py -> build/lib.linux-x86_64-2.7/ldap
# copying Lib/ldap/sasl.py -> build/lib.linux-x86_64-2.7/ldap
# creating build/lib.linux-x86_64-2.7/ldap/schema
# copying Lib/ldap/schema/__init__.py -> build/lib.linux-x86_64-2.7/ldap/schema
# copying Lib/ldap/schema/models.py -> build/lib.linux-x86_64-2.7/ldap/schema
# copying Lib/ldap/schema/subentry.py -> build/lib.linux-x86_64-2.7/ldap/schema
# copying Lib/ldap/schema/tokenizer.py -> build/lib.linux-x86_64-2.7/ldap/schema
# copying Lib/ldap/syncrepl.py -> build/lib.linux-x86_64-2.7/ldap
# file Lib/ldap.py (for module ldap) not found
# file Lib/ldap/controls.py (for module ldap.controls) not found
# file Lib/ldap/extop.py (for module ldap.extop) not found
# file Lib/ldap/schema.py (for module ldap.schema) not found
# running build_ext
# building '_ldap' extension
# creating build/temp.linux-x86_64-2.7
# creating build/temp.linux-x86_64-2.7/Modules
# arm-linux-androideabi-gcc -DNDEBUG -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=2.4.25 -IModules -I/usr/include -I/usr/include/sasl -I/usr/local/include -I/usr/local/include/sasl -I/sysroot/include/python2.7 -c Modules/LDAPObject.c -o build/temp.linux-x86_64-2.7/Modules/LDAPObject.o
# In file included from /usr/include/features.h:392:0,
# from /usr/include/limits.h:25,
# from /sysroot/include/python2.7/Python.h:19,
# from Modules/common.h:10,
# from Modules/LDAPObject.c:4:
# /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
# # include
# ^
# compilation terminated.
# error: command 'arm-linux-androideabi-gcc' failed with exit status 1
# ==> ERROR: A failure occurred in build().
# Aborting...