Build of mkinitcpio-nfs-utils with musl toolchain

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

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

SLOCLanguage
2,683 ansic
169 sh
61 makefile
2,913 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: mkinitcpio-nfs-utils 0.3-5 (Wed Apr 5 00:26:23 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# patching file nfsmount/mount.c
# make -C ipconfig
# make -C nfsmount
# make[1]: Entering directory '/tmp/mkinitcpio-nfs-utils/src/mkinitcpio-nfs-utils-0.3/ipconfig'
# clang -c bootp_proto.c -D_GNU_SOURCE -Wall -Os -fno-strict-aliasing
# clang -c dhcp_proto.c -D_GNU_SOURCE -Wall -Os -fno-strict-aliasing
# clang -c main.c -D_GNU_SOURCE -Wall -Os -fno-strict-aliasing
# make[1]: Entering directory '/tmp/mkinitcpio-nfs-utils/src/mkinitcpio-nfs-utils-0.3/nfsmount'
# clang -c dummypmap.c -D_GNU_SOURCE -Wall -Os
# In file included from dhcp_proto.c:12:
# ./netdev.h:37:19: error: use of undeclared identifier 'SYS_NMLN'
# char reqhostname[SYS_NMLN]; /* requested hostname */
# ^
# ./netdev.h:38:16: error: use of undeclared identifier 'SYS_NMLN'
# char hostname[SYS_NMLN]; /* hostname */
# ^
# ./netdev.h:39:21: error: use of undeclared identifier 'SYS_NMLN'
# char dnsdomainname[SYS_NMLN]; /* dns domain name */
# ^
# ./netdev.h:40:21: error: use of undeclared identifier 'SYS_NMLN'
# char nisdomainname[SYS_NMLN]; /* nis domain name */
# ^
# In file included from bootp_proto.c:14:
# ./netdev.h:37:19: error: use of undeclared identifier 'SYS_NMLN'
# char reqhostname[SYS_NMLN]; /* requested hostname */
# ^
# dhcp_proto.c:169:21: error: use of undeclared identifier 'SYS_NMLN'
# char dhcp_hostname[SYS_NMLN+2];
# ^
# ./netdev.h:38:16: error: use of undeclared identifier 'SYS_NMLN'
# char hostname[SYS_NMLN]; /* hostname */
# ^
# In file included from main.c:18:
# ./netdev.h:37:19: error: use of undeclared identifier 'SYS_NMLN'
# char reqhostname[SYS_NMLN]; /* requested hostname */
# ^5
# errors generated.
# ./netdev.h:39:21: error: use of undeclared identifier 'SYS_NMLN'
# char dnsdomainname[SYS_NMLN]; /* dns domain name */
# ^
# ./netdev.h:40:21: error: use of undeclared identifier 'SYS_NMLN'
# char nisdomainname[SYS_NMLN]; /* nis domain name */
# ^
# ./netdev.h:38:16: error: use of undeclared identifier 'SYS_NMLN'
# char hostname[SYS_NMLN]; /* hostname */
# ^
# ./netdev.h:39:21: error: use of undeclared identifier 'SYS_NMLN'
# char dnsdomainname[SYS_NMLN]; /* dns domain name */
# ^
# ./netdev.h:40:21: error: use of undeclared identifier 'SYS_NMLN'
# char nisdomainname[SYS_NMLN]; /* nis domain name */
# ^
# 4 errors generated.
# make[1]: *** [Makefile:14: dhcp_proto.o] Error 1
# make[1]: *** Waiting for unfinished jobs....
# clang -c main.c -D_GNU_SOURCE -Wall -Os
# make[1]: *** [Makefile:14: bootp_proto.o] Error 1
# clang -c mount.c -D_GNU_SOURCE -Wall -Os
# main.c:558:32: error: use of undeclared identifier 'SYS_NMLN'
# strncpy(dev->hostname, ip, SYS_NMLN - 1);
# ^
# main.c:559:19: error: use of undeclared identifier 'SYS_NMLN'
# dev->hostname[SYS_NMLN - 1] = '\0';
# ^
# main.c:561:12: error: use of undeclared identifier 'SYS_NMLN'
# SYS_NMLN);
# ^
# 7 errors generated.
# make[1]: *** [Makefile:14: main.o] Error 1
# make[1]: Leaving directory '/tmp/mkinitcpio-nfs-utils/src/mkinitcpio-nfs-utils-0.3/ipconfig'
# make: *** [Makefile:15: ipconfig] Error 2
# make: *** Waiting for unfinished jobs....
# clang -c portmap.c -D_GNU_SOURCE -Wall -Os
# mount.c:21:10: fatal error: 'linux/nfs.h' file not found
# #include
# ^
# portmap.c:18:10: fatal error: 'asm/byteorder.h' file not found
# #include /* __constant_hton* */
# ^
# 1 error generated.
# 1 error generated.
# make[1]: *** [Makefile:14: mount.o] Error 1
# make[1]: *** Waiting for unfinished jobs....
# make[1]: *** [Makefile:14: portmap.o] Error 1
# In file included from main.c:30:
# ./linux_nfs_mount.h:26:10: fatal error: 'linux/nfs.h' file not found
# #include
# ^
# 1 error generated.
# make[1]: *** [Makefile:14: main.o] Error 1
# make[1]: Leaving directory '/tmp/mkinitcpio-nfs-utils/src/mkinitcpio-nfs-utils-0.3/nfsmount'
# make: *** [Makefile:15: nfsmount] Error 2
# ==> ERROR: A failure occurred in build().
# Aborting...