Build of netwatch with android toolchain

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

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

SLOCLanguage
7,240 ansic
130 awk
74 sh
7,444 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: netwatch 1.3.1_2-1 (Tue Apr 4 20:53:49 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# creating cache ./config.cache
# checking for gcc... arm-linux-androideabi-gcc
# checking whether the C compiler (arm-linux-androideabi-gcc ) works... yes
# checking whether the C compiler (arm-linux-androideabi-gcc ) is a cross-compiler... yes
# checking whether we are using GNU C... yes
# checking whether arm-linux-androideabi-gcc accepts -g... yes
# checking for mvchgat in -lncurses... no
# checking for pthread_create in -lpthread... no
# checking how to run the C preprocessor... arm-linux-androideabi-gcc -E
# checking for ANSI C header files... yes
# checking for sys/wait.h that is POSIX.1 compatible... yes
# checking for fcntl.h... yes
# checking for strings.h... yes
# checking for sys/ioctl.h... yes
# checking for sys/time.h... yes
# checking for unistd.h... yes
# checking for netinet/ip_icmp.h... yes
# checking for netinet/ip.h... yes
# checking for netinet/tcp.h... yes
# checking for netinet/ip_tcp.h... no
# checking for netinet/udp.h... yes
# checking for netinet/ip_udp.h... no
# checking for netinet/if_ether.h... yes
# checking for netinet/in.h... yes
# checking for netinet/socket.h... no
# checking for net/if.h... yes
# checking for net/if_ppp.h... no
# checking for netinet/if_ether.h... (cached) yes
# checking for netinet/in.h... (cached) yes
# checking for ncurses.h... no
# checking for ncurses/curses.h... no
# checking for ncurses.h... (cached) no
# checking for pthread.h... yes
# checking for ncurses/curses.h... (cached) no
# checking for curses.h... no
# checking for sys/if_packet.h... no
# checking for linux/if_packet.h... yes
# checking for net/if_packet.h... yes
# configure: error: There is no support for ncurses.h
# ==> ERROR: A failure occurred in build().
# Aborting...

Printing config logfiles

CMD: config logfiles '/tmp/netwatch/src/netwatch-1.3.1-2/config.log'
# This file contains any messages produced by compilers while
# running configure, to aid debugging if configure makes a mistake.
#
# configure:529: checking for gcc
# configure:642: checking whether the C compiler (arm-linux-androideabi-gcc ) works
# configure:658: arm-linux-androideabi-gcc -o conftest conftest.c 1>&5
# configure:684: checking whether the C compiler (arm-linux-androideabi-gcc ) is a cross-compiler
# configure:689: checking whether we are using GNU C
# configure:698: arm-linux-androideabi-gcc -E conftest.c
# configure:717: checking whether arm-linux-androideabi-gcc accepts -g
# configure:753: checking for mvchgat in -lncurses
# configure:772: arm-linux-androideabi-gcc -o conftest conftest.c -lncurses 1>&5
# /sysroot/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lncurses
# /tmp/ccCAN1Su.o:conftest.c:function main: error: undefined reference to 'mvchgat'
# collect2: error: ld returned 1 exit status
# configure: failed program was:
# #line 761 "configure"
# #include "confdefs.h"
# /* Override any gcc2 internal prototype to avoid an error. */
# /* We use char because int might match the return type of a gcc2
# builtin and then its argument prototype would still apply. */
# char mvchgat();
#
# int main() {
# mvchgat()
# ; return 0; }
# configure:800: checking for pthread_create in -lpthread
# configure:819: arm-linux-androideabi-gcc -o conftest conftest.c -lpthread 1>&5
# /sysroot/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lpthread
# collect2: error: ld returned 1 exit status
# configure: failed program was:
# #line 808 "configure"
# #include "confdefs.h"
# /* Override any gcc2 internal prototype to avoid an error. */
# /* We use char because int might match the return type of a gcc2
# builtin and then its argument prototype would still apply. */
# char pthread_create();
#
# int main() {
# pthread_create()
# ; return 0; }
# configure:848: checking how to run the C preprocessor
# configure:869: arm-linux-androideabi-gcc -E conftest.c >/dev/null 2>conftest.out
# configure:928: checking for ANSI C header files
# configure:941: arm-linux-androideabi-gcc -E conftest.c >/dev/null 2>conftest.out
# configure:1032: checking for sys/wait.h that is POSIX.1 compatible
# configure:1053: arm-linux-androideabi-gcc -c conftest.c 1>&5
# configure:1077: checking for fcntl.h
# configure:1087: arm-linux-androideabi-gcc -E conftest.c >/dev/null 2>conftest.out
# configure:1077: checking for strings.h
# configure:1087: arm-linux-androideabi-gcc -E conftest.c >/dev/null 2>conftest.out
# configure:1077: checking for sys/ioctl.h
# configure:1087: arm-linux-androideabi-gcc -E conftest.c >/dev/null 2>conftest.out
# configure:1077: checking for sys/time.h
# configure:1087: arm-linux-androideabi-gcc -E conftest.c >/dev/null 2>conftest.out
# configure:1077: checking for unistd.h
# configure:1087: arm-linux-androideabi-gcc -E conftest.c >/dev/null 2>conftest.out
# configure:1117: checking for netinet/ip_icmp.h
# configure:1127: arm-linux-androideabi-gcc -E conftest.c >/dev/null 2>conftest.out
# configure:1157: checking for netinet/ip.h
# configure:1167: arm-linux-androideabi-gcc -E conftest.c >/dev/null 2>conftest.out
# configure:1197: checking for netinet/tcp.h
# configure:1207: arm-linux-androideabi-gcc -E conftest.c >/dev/null 2>conftest.out
# configure:1237: checking for netinet/ip_tcp.h
# configure:1247: arm-linux-androideabi-gcc -E conftest.c >/dev/null 2>conftest.out
# configure:1243:28: fatal error: netinet/ip_tcp.h: No such file or directory
# #include <$ac_hdr>
# ^
# compilation terminated.
# configure: failed program was:
# #line 1242 "configure"
# #include "confdefs.h"
# #include
# configure:1277: checking for netinet/udp.h
# configure:1287: arm-linux-androideabi-gcc -E conftest.c >/dev/null 2>conftest.out
# configure:1317: checking for netinet/ip_udp.h
# configure:1327: arm-linux-androideabi-gcc -E conftest.c >/dev/null 2>conftest.out
# configure:1323:28: fatal error: netinet/ip_udp.h: No such file or directory
# #include <$ac_hdr>
# ^
# compilation terminated.
# configure: failed program was:
# #line 1322 "configure"
# #include "confdefs.h"
# #include
# configure:1357: checking for netinet/if_ether.h
# configure:1367: arm-linux-androideabi-gcc -E conftest.c >/dev/null 2>conftest.out
# configure:1397: checking for netinet/in.h
# configure:1407: arm-linux-androideabi-gcc -E conftest.c >/dev/null 2>conftest.out
# configure:1437: checking for netinet/socket.h
# configure:1447: arm-linux-androideabi-gcc -E conftest.c >/dev/null 2>conftest.out
# configure:1443:28: fatal error: netinet/socket.h: No such file or directory
# #include <$ac_hdr>
# ^
# compilation terminated.
# configure: failed program was:
# #line 1442 "configure"
# #include "confdefs.h"
# #include
# configure:1477: checking for net/if.h
# configure:1487: arm-linux-androideabi-gcc -E conftest.c >/dev/null 2>conftest.out
# configure:1517: checking for net/if_ppp.h
# configure:1527: arm-linux-androideabi-gcc -E conftest.c >/dev/null 2>conftest.out
# configure:1523:24: fatal error: net/if_ppp.h: No such file or directory
# #include <$ac_hdr>
# ^
# compilation terminated.
# configure: failed program was:
# #line 1522 "configure"
# #include "confdefs.h"
# #include
# configure:1557: checking for netinet/if_ether.h
# configure:1557: checking for netinet/in.h
# configure:1557: checking for ncurses.h
# configure:1567: arm-linux-androideabi-gcc -E conftest.c >/dev/null 2>conftest.out
# configure:1563:21: fatal error: ncurses.h: No such file or directory
# #include <$ac_hdr>
# ^
# compilation terminated.
# configure: failed program was:
# #line 1562 "configure"
# #include "confdefs.h"
# #include
# configure:1557: checking for ncurses/curses.h
# configure:1567: arm-linux-androideabi-gcc -E conftest.c >/dev/null 2>conftest.out
# configure:1563:28: fatal error: ncurses/curses.h: No such file or directory
# #include <$ac_hdr>
# ^
# compilation terminated.
# configure: failed program was:
# #line 1562 "configure"
# #include "confdefs.h"
# #include
# configure:1597: checking for ncurses.h
# configure:1637: checking for pthread.h
# configure:1647: arm-linux-androideabi-gcc -E conftest.c >/dev/null 2>conftest.out
# configure:1677: checking for ncurses/curses.h
# configure:1717: checking for curses.h
# configure:1727: arm-linux-androideabi-gcc -E conftest.c >/dev/null 2>conftest.out
# configure:1723:20: fatal error: curses.h: No such file or directory
# #include <$ac_hdr>
# ^
# compilation terminated.
# configure: failed program was:
# #line 1722 "configure"
# #include "confdefs.h"
# #include
# configure:1757: checking for sys/if_packet.h
# configure:1767: arm-linux-androideabi-gcc -E conftest.c >/dev/null 2>conftest.out
# configure:1763:27: fatal error: sys/if_packet.h: No such file or directory
# #include <$ac_hdr>
# ^
# compilation terminated.
# configure: failed program was:
# #line 1762 "configure"
# #include "confdefs.h"
# #include
# configure:1797: checking for linux/if_packet.h
# configure:1807: arm-linux-androideabi-gcc -E conftest.c >/dev/null 2>conftest.out
# configure:1837: checking for net/if_packet.h
# configure:1847: arm-linux-androideabi-gcc -E conftest.c >/dev/null 2>conftest.out