Build of netwatch with musl toolchain

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

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

SLOCLanguage
7,238 ansic
130 awk
74 sh
7,442 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...

There were existing files in /sysroot, using those
# /sysroot/lib
# /sysroot/share
# /sysroot/bin
# /sysroot/include
# /sysroot/libexec

CMD: sudo -u tuscan PATH=/sysroot/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin CC=clang CXX=clang++ red makepkg --noextract --syncdeps --skipinteg --skippgpcheck --skipchecksums --noconfirm --nocolor --log --noprogressbar --nocheck
# ==> Making package: netwatch 1.3.1_2-1 (Wed Apr 5 00:28:51 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# creating cache ./config.cache
# checking for gcc... clang
# checking whether the C compiler (clang ) works... yes
# checking whether the C compiler (clang ) is a cross-compiler... yes
# checking whether we are using GNU C... yes
# checking whether clang accepts -g... yes
# checking for mvchgat in -lncurses... no
# checking for pthread_create in -lpthread... yes
# checking how to run the C preprocessor... clang -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... no
# checking for net/if_packet.h... no
# 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 (clang ) works
# configure:658: clang -o conftest conftest.c 1>&5
# configure:655:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# main(){return(0);}
# ^
# 1 warning generated.
# configure:684: checking whether the C compiler (clang ) is a cross-compiler
# configure:689: checking whether we are using GNU C
# configure:698: clang -E conftest.c
# configure:717: checking whether clang accepts -g
# configure:753: checking for mvchgat in -lncurses
# configure:772: clang -o conftest conftest.c -lncurses 1>&5
# /sysroot/bin/ld: error: cannot find -lncurses
# /tmp/conftest-dcf014.o:conftest.c:function main: error: undefined reference to 'mvchgat'
# clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation)
# 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: clang -o conftest conftest.c -lpthread 1>&5
# configure:848: checking how to run the C preprocessor
# configure:869: clang -E conftest.c >/dev/null 2>conftest.out
# configure:928: checking for ANSI C header files
# configure:941: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1032: checking for sys/wait.h that is POSIX.1 compatible
# configure:1053: clang -c conftest.c 1>&5
# configure:1077: checking for fcntl.h
# configure:1087: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1077: checking for strings.h
# configure:1087: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1077: checking for sys/ioctl.h
# configure:1087: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1077: checking for sys/time.h
# configure:1087: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1077: checking for unistd.h
# configure:1087: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1117: checking for netinet/ip_icmp.h
# configure:1127: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1157: checking for netinet/ip.h
# configure:1167: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1197: checking for netinet/tcp.h
# configure:1207: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1237: checking for netinet/ip_tcp.h
# configure:1247: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1243:10: fatal error: 'netinet/ip_tcp.h' file not found
# #include
# ^
# 1 error generated.
# configure: failed program was:
# #line 1242 "configure"
# #include "confdefs.h"
# #include
# configure:1277: checking for netinet/udp.h
# configure:1287: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1317: checking for netinet/ip_udp.h
# configure:1327: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1323:10: fatal error: 'netinet/ip_udp.h' file not found
# #include
# ^
# 1 error generated.
# configure: failed program was:
# #line 1322 "configure"
# #include "confdefs.h"
# #include
# configure:1357: checking for netinet/if_ether.h
# configure:1367: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1397: checking for netinet/in.h
# configure:1407: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1437: checking for netinet/socket.h
# configure:1447: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1443:10: fatal error: 'netinet/socket.h' file not found
# #include
# ^
# 1 error generated.
# configure: failed program was:
# #line 1442 "configure"
# #include "confdefs.h"
# #include
# configure:1477: checking for net/if.h
# configure:1487: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1517: checking for net/if_ppp.h
# configure:1527: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1523:10: fatal error: 'net/if_ppp.h' file not found
# #include
# ^
# 1 error generated.
# 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: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1563:10: fatal error: 'ncurses.h' file not found
# #include
# ^
# 1 error generated.
# configure: failed program was:
# #line 1562 "configure"
# #include "confdefs.h"
# #include
# configure:1557: checking for ncurses/curses.h
# configure:1567: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1563:10: fatal error: 'ncurses/curses.h' file not found
# #include
# ^
# 1 error generated.
# 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: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1677: checking for ncurses/curses.h
# configure:1717: checking for curses.h
# configure:1727: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1723:10: fatal error: 'curses.h' file not found
# #include
# ^
# 1 error generated.
# configure: failed program was:
# #line 1722 "configure"
# #include "confdefs.h"
# #include
# configure:1757: checking for sys/if_packet.h
# configure:1767: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1763:10: fatal error: 'sys/if_packet.h' file not found
# #include
# ^
# 1 error generated.
# configure: failed program was:
# #line 1762 "configure"
# #include "confdefs.h"
# #include
# configure:1797: checking for linux/if_packet.h
# configure:1807: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1803:10: fatal error: 'linux/if_packet.h' file not found
# #include
# ^
# 1 error generated.
# configure: failed program was:
# #line 1802 "configure"
# #include "confdefs.h"
# #include
# configure:1837: checking for net/if_packet.h
# configure:1847: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1843:10: fatal error: 'net/if_packet.h' file not found
# #include
# ^
# 1 error generated.
# configure: failed program was:
# #line 1842 "configure"
# #include "confdefs.h"
# #include