Build of hostapd with musl toolchain

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

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

SLOCLanguage
206,044 ansic
1,279 makefile
270 python
48 perl
207,641 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: hostapd 2.5-2 (Wed Apr 5 00:38:27 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# CC main.c
# CC ../src/ap/wpa_auth_glue.c
# CC ../src/ap/hostapd.c
# CC config_file.c
# CC ../src/ap/drv_callbacks.c
# CC ../src/ap/ap_drv_ops.c
# CC ../src/ap/utils.c
# CC ../src/ap/authsrv.c
# CC ../src/ap/ap_config.c
# CC ../src/ap/eap_user_db.c
# CC ../src/ap/ieee802_1x.c
# CC ../src/ap/ieee802_11_auth.c
# CC ../src/ap/sta_info.c
# CC ../src/ap/ap_mlme.c
# CC ../src/ap/tkip_countermeasures.c
# CC ../src/ap/wpa_auth_ie.c
# CC ../src/ap/pmksa_cache_auth.c
# CC ../src/ap/wpa_auth.c
# CC ../src/ap/preauth_auth.c
# CC ../src/ap/ieee802_11_shared.c
# CC ../src/ap/bss_load.c
# CC ../src/drivers/drivers.c
# CC ../src/ap/beacon.c
# CC ../src/utils/wpabuf.c
# CC ../src/utils/eloop.c
# CC ../src/utils/wpa_debug.c
# CC ../src/utils/common.c
# CC ../src/utils/os_unix.c
# CC ../src/utils/ip_addr.c
# CC ../src/common/hw_features_common.c
# CC ../src/common/ieee802_11_common.c
# CC ../src/common/wpa_common.c
# CC ../src/eapol_auth/eapol_auth_dump.c
# CC ../src/eapol_auth/eapol_auth_sm.c
# CC ../src/radius/radius_das.c
# CC ../src/radius/radius.c
# CC ../src/radius/radius_client.c
# CC ../src/ap/accounting.c
# CC ../src/ap/vlan_init.c
# CC ../src/ap/peerkey_auth.c
# CC ../src/ap/ctrl_iface_ap.c
# CC ../src/ap/iapp.c
# CC ctrl_iface.c
# In file included from ../src/drivers/driver_hostap.c:12:
# ../src/drivers/linux_wext.h:35:10: fatal error: 'linux/wireless.h' file not found
# #include
# ^
# 1 error generated.
# make: *** [Makefile:958: ../src/drivers/driver_hostap.o] Error 1
# make: *** Waiting for unfinished jobs....
# In file included from ../src/drivers/driver_nl80211.c:17:
# In file included from /usr/include/libnl3/netlink/genl/genl.h:15:
# /usr/include/libnl3/netlink/netlink.h:25:10: fatal error: 'linux/netlink.h' file not found
# #include
# ^
# In file included from ../src/drivers/driver_nl80211_capa.c:12:
# In file included from /usr/include/libnl3/netlink/genl/genl.h:15:
# /usr/include/libnl3/netlink/netlink.h:25:10: fatal error: 'linux/netlink.h' file not found
# #include
# ^
# CC ../src/drivers/driver_wired.c
# 1 error generated.
# make: *** [Makefile:958: ../src/drivers/driver_nl80211_capa.o] Error 1
# 1 error generated.
# make: *** [Makefile:958: ../src/drivers/driver_nl80211.o] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...