Build of libx86 with android toolchain

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

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

SLOCLanguage
20,186 ansic
108 makefile
20,294 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: libx86 1.1-5 (Tue Apr 4 20:33:18 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# patching file lrmi.c
# make LIBRARY=static static
# make[1]: Entering directory '/tmp/libx86/src/libx86-1.1'
# arm-linux-androideabi-gcc -c -o x86-common.o x86-common.c
# arm-linux-androideabi-gcc -c -o thunk.o thunk.c
# arm-linux-androideabi-gcc -c -o x86emu/decode.o x86emu/decode.c
# arm-linux-androideabi-gcc -c -o x86emu/debug.o x86emu/debug.c
# thunk.c:14:20: fatal error: sys/io.h: No such file or directory
# #include
# ^
# compilation terminated.
# make[1]: *** [: thunk.o] Error 1
# make[1]: *** Waiting for unfinished jobs....
# make[1]: Leaving directory '/tmp/libx86/src/libx86-1.1'
# make: *** [Makefile:17: default] Error 2
# ==> ERROR: A failure occurred in build().
# Aborting...