Build of ptex with android toolchain

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

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

SLOCLanguage
15,569 cpp
144 makefile
34 python
15,747 total

The process tree of the build process is here.

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: ptex 2.0.62-2 (Tue Apr 4 20:40:42 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# make -C ptex INSTALLDIR=../../install LIBDIR=lib
# make[1]: Entering directory '/tmp/ptex/src/ptex-2.0.62/src/ptex'
# arm-linux-androideabi-g++ -Wall -pedantic -W -std=c++98 -O2 -DNDEBUG -I. -fPIC -c -o PtexCache.o PtexCache.cpp
# In file included from PtexCache.cpp:107:0:
# PtexPlatform.h:148:2: error: 'pthread_spinlock_t' does not name a type
# pthread_spinlock_t _spinlock;
# ^
# PtexPlatform.h: In constructor 'PtexInternal::_SpinLock::_SpinLock()':
# PtexPlatform.h:143:37: error: '_spinlock' was not declared in this scope
# _SpinLock() { pthread_spin_init(&_spinlock, PTHREAD_PROCESS_PRIVATE); }
# ^
# PtexPlatform.h:143:71: error: 'pthread_spin_init' was not declared in this scope
# _SpinLock() { pthread_spin_init(&_spinlock, PTHREAD_PROCESS_PRIVATE); }
# ^
# PtexPlatform.h: In destructor 'PtexInternal::_SpinLock::~_SpinLock()':
# PtexPlatform.h:144:40: error: '_spinlock' was not declared in this scope
# ~_SpinLock() { pthread_spin_destroy(&_spinlock); }
# ^
# PtexPlatform.h:144:49: error: 'pthread_spin_destroy' was not declared in this scope
# ~_SpinLock() { pthread_spin_destroy(&_spinlock); }
# ^
# PtexPlatform.h: In member function 'void PtexInternal::_SpinLock::lock()':
# PtexPlatform.h:145:37: error: '_spinlock' was not declared in this scope
# void lock() { pthread_spin_lock(&_spinlock); }
# ^
# PtexPlatform.h:145:46: error: 'pthread_spin_lock' was not declared in this scope
# void lock() { pthread_spin_lock(&_spinlock); }
# ^
# PtexPlatform.h: In member function 'void PtexInternal::_SpinLock::unlock()':
# PtexPlatform.h:146:39: error: '_spinlock' was not declared in this scope
# void unlock() { pthread_spin_unlock(&_spinlock); }
# ^
# PtexPlatform.h:146:48: error: 'pthread_spin_unlock' was not declared in this scope
# void unlock() { pthread_spin_unlock(&_spinlock); }
# ^
# make[1]: *** [: PtexCache.o] Error 1
# make[1]: Leaving directory '/tmp/ptex/src/ptex-2.0.62/src/ptex'
# make: *** [Makefile:15: ptex] Error 2
# ==> ERROR: A failure occurred in build().
# Aborting...