Build of iw with android toolchain

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

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

SLOCLanguage
10,475 ansic
99 makefile
26 sh
10,600 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: iw 4.7-1 (Tue Apr 4 21:23:43 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# CC iw.o
# CC genl.o
# CC event.o
# CC info.o
# CC phy.o
# CC interface.o
# CC ibss.o
# CC station.o
# CC survey.o
# CC util.o
# CC ocb.o
# CC mesh.o
# CC mpath.o
# CC mpp.o
# CC scan.o
# CC reg.o
# GEN version.c
# CC reason.o
# CC status.o
# CC connect.o
# CC link.o
# CC offch.o
# CC ps.o
# CC cqm.o
# CC bitrate.o
# CC wowlan.o
# CC coalesce.o
# CC roc.o
# CC p2p.o
# CC vendor.o
# CC sections.o
# CC version.o
# CC iw
# /sysroot/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lnl-genl-3
# /sysroot/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lnl-3
# iw.o:iw.c:function nl80211_init: error: undefined reference to 'nl_socket_alloc'
# iw.o:iw.c:function nl80211_init: error: undefined reference to 'genl_connect'
# iw.o:iw.c:function nl80211_init: error: undefined reference to 'nl_socket_set_buffer_size'
# iw.o:iw.c:function nl80211_init: error: undefined reference to 'genl_ctrl_resolve'
# iw.o:iw.c:function nl80211_init: error: undefined reference to 'nl_socket_free'
# iw.o:iw.c:function nl80211_cleanup: error: undefined reference to 'nl_socket_free'
# iw.o:iw.c:function __handle_cmd: error: undefined reference to 'nlmsg_alloc'
# iw.o:iw.c:function __handle_cmd: error: undefined reference to 'nl_cb_alloc'
# iw.o:iw.c:function __handle_cmd: error: undefined reference to 'nl_cb_alloc'
# iw.o:iw.c:function __handle_cmd: error: undefined reference to 'genlmsg_put'
# iw.o:iw.c:function __handle_cmd: error: undefined reference to 'nla_put'
# iw.o:iw.c:function __handle_cmd: error: undefined reference to 'nla_put'
# iw.o:iw.c:function __handle_cmd: error: undefined reference to 'nla_put'
# iw.o:iw.c:function __handle_cmd: error: undefined reference to 'nl_socket_set_cb'
# iw.o:iw.c:function __handle_cmd: error: undefined reference to 'nl_send_auto_complete'
# iw.o:iw.c:function __handle_cmd: error: undefined reference to 'nl_cb_err'
# iw.o:iw.c:function __handle_cmd: error: undefined reference to 'nl_cb_set'
# iw.o:iw.c:function __handle_cmd: error: undefined reference to 'nl_cb_set'
# iw.o:iw.c:function __handle_cmd: error: undefined reference to 'nl_cb_set'
# iw.o:iw.c:function __handle_cmd: error: undefined reference to 'nl_recvmsgs'
# iw.o:iw.c:function __handle_cmd: error: undefined reference to 'nl_cb_put'
# iw.o:iw.c:function __handle_cmd: error: undefined reference to 'nl_cb_put'
# iw.o:iw.c:function __handle_cmd: error: undefined reference to 'nlmsg_free'
# genl.o:genl.c:function family_handler: error: undefined reference to 'nlmsg_hdr'
# genl.o:genl.c:function family_handler: error: undefined reference to 'nlmsg_data'
# genl.o:genl.c:function family_handler: error: undefined reference to 'genlmsg_attrdata'
# genl.o:genl.c:function family_handler: error: undefined reference to 'genlmsg_attrlen'
# genl.o:genl.c:function family_handler: error: undefined reference to 'nla_parse'
# genl.o:genl.c:function family_handler: error: undefined reference to 'nla_data'
# genl.o:genl.c:function family_handler: error: undefined reference to 'nla_len'
# genl.o:genl.c:function family_handler: error: undefined reference to 'nla_data'
# genl.o:genl.c:function family_handler: error: undefined reference to 'nla_len'
# genl.o:genl.c:function family_handler: error: undefined reference to 'nla_parse'
# genl.o:genl.c:function family_handler: error: undefined reference to 'nla_data'
# genl.o:genl.c:function family_handler: error: undefined reference to 'nla_len'
# genl.o:genl.c:function family_handler: error: undefined reference to 'nla_get_u32'
# genl.o:genl.c:function family_handler: error: undefined reference to 'nla_next'
# genl.o:genl.c:function family_handler: error: undefined reference to 'nla_ok'
# genl.o:genl.c:function nl_get_multicast_id: error: undefined reference to 'nlmsg_alloc'
# genl.o:genl.c:function nl_get_multicast_id: error: undefined reference to 'nl_cb_alloc'
# genl.o:genl.c:function nl_get_multicast_id: error: undefined reference to 'genl_ctrl_resolve'
# genl.o:genl.c:function nl_get_multicast_id: error: undefined reference to 'genlmsg_put'
# genl.o:genl.c:function nl_get_multicast_id: error: undefined reference to 'nla_put'
# genl.o:genl.c:function nl_get_multicast_id: error: undefined reference to 'nl_send_auto_complete'
# genl.o:genl.c:function nl_get_multicast_id: error: undefined reference to 'nl_cb_err'
# genl.o:genl.c:function nl_get_multicast_id: error: undefined reference to 'nl_cb_set'
# genl.o:genl.c:function nl_get_multicast_id: error: undefined reference to 'nl_recvmsgs'
# genl.o:genl.c:function nl_get_multicast_id: error: undefined reference to 'nl_cb_put'
# genl.o:genl.c:function nl_get_multicast_id: error: undefined reference to 'nlmsg_free'
# event.o:event.c:function parse_beacon_hint_chan: error: undefined reference to 'nla_parse_nested'
# event.o:event.c:function parse_beacon_hint_chan: error: undefined reference to 'nla_get_u32'
# event.o:event.c:function print_frame: error: undefined reference to 'nla_data'
# event.o:event.c:function print_frame: error: undefined reference to 'nla_len'
# event.o:event.c:function parse_cqm_event: error: undefined reference to 'nla_parse_nested'
# event.o:event.c:function parse_cqm_event: error: undefined reference to 'nla_get_u32'
# event.o:event.c:function parse_cqm_event: error: undefined reference to 'nla_get_u32'
# event.o:event.c:function parse_mic_failure: error: undefined reference to 'nla_get_u8'
# event.o:event.c:function parse_wowlan_wake_event: error: undefined reference to 'nla_parse'
# event.o:event.c:function parse_wowlan_wake_event: error: undefined reference to 'nla_parse'
# event.o:event.c:function parse_wowlan_wake_event: error: undefined reference to 'nla_next'
# event.o:event.c:function parse_wowlan_wake_event: error: undefined reference to 'nla_ok'
# event.o:event.c:function parse_wowlan_wake_event: error: undefined reference to 'nla_next'
# event.o:event.c:function parse_wowlan_wake_event: error: undefined reference to 'nla_ok'
# event.o:event.c:function print_event: error: undefined reference to 'nlmsg_hdr'
# event.o:event.c:function print_event: error: undefined reference to 'nlmsg_data'
# event.o:event.c:function print_event: error: undefined reference to 'genlmsg_attrdata'
# event.o:event.c:function print_event: error: undefined reference to 'genlmsg_attrlen'
# event.o:event.c:function print_event: error: undefined reference to 'nla_get_u64'
# event.o:event.c:function print_event: error: undefined reference to 'nla_get_u64'
# event.o:event.c:function print_event: error: undefined reference to 'nla_get_string'
# event.o:event.c:function print_event: error: undefined reference to 'nla_next'
# event.o:event.c:function print_event: error: undefined reference to 'nla_ok'
# event.o:event.c:function print_event: error: undefined reference to 'nla_get_u8'
# event.o:event.c:function print_event: error: undefined reference to 'nla_get_string'
# event.o:event.c:function print_event: error: undefined reference to 'nla_get_u8'
# event.o:event.c:function print_event: error: undefined reference to 'nla_get_u8'
# event.o:event.c:function print_event: error: undefined reference to 'nla_get_u16'
# event.o:event.c:function print_event: error: undefined reference to 'nla_get_u16'
# event.o:event.c:function print_event: error: undefined reference to 'nla_get_u16'
# event.o:event.c:function print_event: error: undefined reference to 'nla_get_u16'
# event.o:event.c:function print_event: error: undefined reference to 'nla_get_u64'
# event.o:event.c:function print_event: error: undefined reference to 'nla_get_u64'
# event.o:event.c:function wait_event: error: undefined reference to 'nlmsg_hdr'
# event.o:event.c:function wait_event: error: undefined reference to 'nlmsg_data'
# event.o:event.c:function __prepare_listen_events: error: undefined reference to 'nl_socket_add_membership'
# event.o:event.c:function __prepare_listen_events: error: undefined reference to 'nl_socket_add_membership'
# event.o:event.c:function __prepare_listen_events: error: undefined reference to 'nl_socket_add_membership'
# event.o:event.c:function __prepare_listen_events: error: undefined reference to 'nl_socket_add_membership'
# event.o:event.c:function __do_listen_events: error: undefined reference to 'nl_cb_alloc'
# event.o:event.c:function __do_listen_events: error: undefined reference to 'nl_recvmsgs'
# event.o:event.c:function __do_listen_events: error: undefined reference to 'nl_cb_put'
# info.o:info.c:function print_phy_handler: error: undefined reference to 'nlmsg_hdr'
# info.o:info.c:function print_phy_handler: error: undefined reference to 'nlmsg_data'
# info.o:info.c:function print_phy_handler: error: undefined reference to 'genlmsg_attrdata'
# info.o:info.c:function print_phy_handler: error: undefined reference to 'genlmsg_attrlen'
# info.o:info.c:function print_phy_handler: error: undefined reference to 'nla_get_string'
# info.o:info.c:function print_phy_handler: error: undefined reference to 'nla_type'
# info.o:info.c:function print_phy_handler: error: undefined reference to 'nla_type'
# info.o:info.c:function print_phy_handler: error: undefined reference to 'nla_parse_nested'
# info.o:info.c:function print_phy_handler: error: undefined reference to 'nla_parse_nested'
# info.o:info.c:function print_phy_handler: error: undefined reference to 'nla_type'
# info.o:info.c:function print_phy_handler: error: undefined reference to 'nla_type'
# info.o:info.c:function handle_info: error: undefined reference to 'nla_put_flag'
# info.o:info.c:function print_feature_handler: error: undefined reference to 'genlmsg_attrdata'
# info.o:info.c:function print_feature_handler: error: undefined reference to 'genlmsg_attrlen'
# interface.o:interface.c:function parse_mntr_flags: error: undefined reference to 'nlmsg_alloc'
# interface.o:interface.c:function parse_mntr_flags: error: undefined reference to 'nla_put_nested'
# interface.o:interface.c:function parse_mntr_flags: error: undefined reference to 'nlmsg_free'
# interface.o:interface.c:function print_iface_handler: error: undefined reference to 'nla_get_string'
# util.o:util.c:function parse_keys: error: undefined reference to 'nla_nest_start'
# util.o:util.c:function parse_keys: error: undefined reference to 'nla_nest_start'
# util.o:util.c:function parse_keys: error: undefined reference to 'nla_nest_end'
# util.o:util.c:function parse_keys: error: undefined reference to 'nla_nest_end'
# mesh.o:mesh.c:function set_interface_meshparam: error: undefined reference to 'nla_nest_start'
# mesh.o:mesh.c:function set_interface_meshparam: error: undefined reference to 'nla_nest_end'
# mesh.o:mesh.c:function join_mesh: error: undefined reference to 'nla_nest_start'
# mesh.o:mesh.c:function join_mesh: error: undefined reference to 'nla_nest_end'
# scan.o:scan.c:function parse_sched_scan: error: undefined reference to 'nlmsg_alloc'
# scan.o:scan.c:function parse_sched_scan: error: undefined reference to 'nla_put_nested'
# scan.o:scan.c:function parse_sched_scan: error: undefined reference to 'nla_put_nested'
# scan.o:scan.c:function parse_sched_scan: error: undefined reference to 'nla_put_nested'
# scan.o:scan.c:function parse_sched_scan: error: undefined reference to 'nlmsg_free'
# bitrate.o:bitrate.c:function handle_bitrates: error: undefined reference to 'nla_put_u8'
# bitrate.o:bitrate.c:function handle_bitrates: error: undefined reference to 'nla_put_u8'
# bitrate.o:bitrate.c:function handle_bitrates: error: undefined reference to 'nla_put_u8'
# bitrate.o:bitrate.c:function handle_bitrates: error: undefined reference to 'nla_put_u8'
# vendor.o:vendor.c:function print_vendor_response: error: undefined reference to 'nla_find'
# collect2: error: ld returned 1 exit status
# make: *** [Makefile:108: iw] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...