Build of perl-netaddr-ip with musl toolchain

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

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

SLOCLanguage
1,626 makefile
1,417 perl
67 cpp
3,110 total

The process tree of the build process is here.

Several sub-process invocations were improper; see the process tree for details. Summary:

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: perl-netaddr-ip 4.079-2 (Tue Apr 4 23:58:31 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
#
# This build requires a C compiler by default except on Windows where
# the Pure Perl version is mandatory. The Pure Perl version, which does
# not require compilation of XS code, can be used by invoking this as:
#
# perl Makefile.PL -noxs
#
#
# ======================================================================
# W A R N I N G - Please do read below if you have legacy code
# ======================================================================
#
# Versions 3.21 and above of NetAddr::IP, include hooks for the Storable
# class that are incompatible with the old (automatic) method of storing
# data. To regain backwards compatibility, the module must be use()d as
#
# use NetAddr::IP ':old_storable';
#
# which will disable the new hooks and revert back to the old ways.
#
# If you do not use Storable along with NetAddr::IP, or just don't know
# what this all means, most likely you're safe to go ahead.
#
# Versions before 3.25 recognized by default IP addresses as returned by
# inet_aton. This is no longer the default. To enable this behavior
# again, the module must be use()d as
#
# use NetAddr::IP ':aton';
#
# Versions before 4.008 recognized the above syntax. This behavior is
# fundamentally broken, is DEPRECATED and WILL BE REMOVED in version 5.0
# Use this method to create new objects from 'aton's
#
# $ip = new_from_aton NetAddr::IP(inet_aton('1.2.3.4'))
#
# Checking if your kit is complete...
# Looks good
# Checking if your kit is complete...
# Looks good
# Testing if you have a C compiler and the needed header files....
# building for linux
# clang compile.c -o compile.output
# You have a working compiler.
# checking for gcc... clang
# checking for C compiler default output file name... a.out
# checking whether the C compiler works... configure.gcc: error: cannot run C compiled programs.
# If you meant to cross compile, use `--host'.
# See `config.log' for more details.
# Cannot read config.h built by 'gcc', trying 'cc'.
# checking for gcc... clang
# checking whether the C compiler works... yes
# checking for C compiler default output file name... a.out
# checking for suffix of executables...
# checking whether we are cross compiling... configure.cc: error: in `/tmp/perl-netaddr-ip/src/NetAddr-IP-4.079/Lite/Util':
# configure.cc: error: cannot run C compiled programs.
# If you meant to cross compile, use `--host'.
# See `config.log' for more details
# Cannot read config.h built by 'cc', using 'pure Perl'.
# Checking if your kit is complete...
# Looks good
# "\x{00c3}" does not map to ascii at /usr/share/perl5/core_perl/ExtUtils/MakeMaker.pm line 1180.
# "\x{00b1}" does not map to ascii at /usr/share/perl5/core_perl/ExtUtils/MakeMaker.pm line 1180.
# "\x{00c3}" does not map to ascii at /usr/share/perl5/core_perl/ExtUtils/MakeMaker.pm line 1180.
# "\x{00b1}" does not map to ascii at /usr/share/perl5/core_perl/ExtUtils/MakeMaker.pm line 1180.
# "\x{00c3}" does not map to ascii at /usr/share/perl5/core_perl/ExtUtils/MakeMaker.pm line 1180.
# "\x{00b1}" does not map to ascii at /usr/share/perl5/core_perl/ExtUtils/MakeMaker.pm line 1180.
# "\x{00c3}" does not map to ascii at /usr/share/perl5/core_perl/ExtUtils/MakeMaker.pm line 1180.
# "\x{00b1}" does not map to ascii at /usr/share/perl5/core_perl/ExtUtils/MakeMaker.pm line 1180.
# Generating a Unix-style Makefile
# Writing Makefile for NetAddr::IP::Util
# Writing MYMETA.yml and MYMETA.json
# Generating a Unix-style Makefile
# Writing Makefile for NetAddr::IP::Lite
# Writing MYMETA.yml and MYMETA.json
# Generating a Unix-style Makefile
# Writing Makefile for NetAddr::IP
# Writing MYMETA.yml and MYMETA.json
# make[1]: Entering directory '/tmp/perl-netaddr-ip/src/NetAddr-IP-4.079/Lite'
# make[2]: Entering directory '/tmp/perl-netaddr-ip/src/NetAddr-IP-4.079/Lite/Util'
# cp IP.pm blib/lib/NetAddr/IP.pm
# AutoSplitting blib/lib/NetAddr/IP.pm (blib/lib/auto/NetAddr/IP)
# make[2]: *** No rule to make target 'config.h', needed by 'Util.c'. Stop.
# make[2]: *** Waiting for unfinished jobs....
# cp Lite.pm ../blib/lib/NetAddr/IP/Lite.pm
# cp lib/NetAddr/IP/UtilPP.pm ../../blib/lib/NetAddr/IP/UtilPP.pm
# AutoSplitting ../../blib/lib/NetAddr/IP/UtilPP.pm (../../blib/lib/auto/NetAddr/IP/UtilPP)
# cp lib/NetAddr/IP/InetBase.pm ../../blib/lib/NetAddr/IP/InetBase.pm
# AutoSplitting ../../blib/lib/NetAddr/IP/InetBase.pm (../../blib/lib/auto/NetAddr/IP/InetBase)
# cp Util.pm ../../blib/lib/NetAddr/IP/Util.pm
# AutoSplitting ../../blib/lib/NetAddr/IP/Util.pm (../../blib/lib/auto/NetAddr/IP/Util)
# cp Util_IS.pm ../../blib/lib/NetAddr/IP/Util_IS.pm
# make[2]: Leaving directory '/tmp/perl-netaddr-ip/src/NetAddr-IP-4.079/Lite/Util'
# make[1]: *** [Makefile:472: subdirs] Error 2
# make[1]: Leaving directory '/tmp/perl-netaddr-ip/src/NetAddr-IP-4.079/Lite'
# make: *** [Makefile:488: subdirs] Error 2
# ==> ERROR: A failure occurred in build().
# Aborting...

Printing config logfiles

CMD: config logfiles '/tmp/perl-netaddr-ip/src/NetAddr-IP-4.079/Lite/Util/config.log'
# This file contains any messages produced by compilers while
# running configure, to aid debugging if configure makes a mistake.
#
# It was created by configure.cc, which was
# generated by GNU Autoconf 2.69. Invocation command line was
#
# $ configure.cc
#
# ## --------- ##
# ## Platform. ##
# ## --------- ##
#
# hostname = b5f7b5e9ad2a
# uname -m = x86_64
# uname -r = 4.10.6-1-ARCH
# uname -s = Linux
# uname -v = #1 SMP PREEMPT Mon Mar 27 08:28:22 CEST 2017
#
# /usr/bin/uname -p = unknown
# /bin/uname -X = unknown
#
# /bin/arch = unknown
# /usr/bin/arch -k = unknown
# /usr/convex/getsysinfo = unknown
# /usr/bin/hostinfo = unknown
# /bin/machine = unknown
# /usr/bin/oslevel = unknown
# /bin/universe = unknown
#
# PATH: /sysroot/bin
# PATH: /usr/local/sbin
# PATH: /usr/local/bin
# PATH: /usr/sbin
# PATH: /usr/bin
# PATH: /sbin
# PATH: /bin
#
#
# ## ----------- ##
# ## Core tests. ##
# ## ----------- ##
#
# configure.cc:2374: checking for gcc
# configure.cc:2401: result: clang
# configure.cc:2630: checking for C compiler version
# configure.cc:2639: clang --version >&5
# clang version 3.8.1
# Target: x86_64-unknown-linux-gnu
# Thread model: posix
# InstalledDir: /
# configure.cc:2650: $? = 0
# configure.cc:2639: clang -v >&5
# clang version 3.8.1
# Target: x86_64-unknown-linux-gnu
# Thread model: posix
# InstalledDir: /
# Found candidate GCC installation: //../lib/gcc/x86_64-pc-linux-gnu/6.1.1
# Found candidate GCC installation: //../lib64/gcc/x86_64-pc-linux-gnu/6.1.1
# Selected GCC installation: //../lib64/gcc/x86_64-pc-linux-gnu/6.1.1
# Candidate multilib: .;@m64
# Selected multilib: .;@m64
# configure.cc:2650: $? = 0
# configure.cc:2639: clang -V >&5
# clang-3.8: error: argument to '-V' is missing (expected 1 value)
# clang-3.8: error: no input files
# configure.cc:2650: $? = 1
# configure.cc:2639: clang -qversion >&5
# clang-3.8: error: unknown argument: '-qversion'
# clang-3.8: error: no input files
# configure.cc:2650: $? = 1
# configure.cc:2670: checking whether the C compiler works
# configure.cc:2692: clang conftest.c >&5
# configure.cc:2696: $? = 0
# configure.cc:2744: result: yes
# configure.cc:2747: checking for C compiler default output file name
# configure.cc:2749: result: a.out
# configure.cc:2755: checking for suffix of executables
# configure.cc:2762: clang -o conftest conftest.c >&5
# configure.cc:2766: $? = 0
# configure.cc:2788: result:
# configure.cc:2810: checking whether we are cross compiling
# configure.cc:2818: clang -o conftest conftest.c >&5
# configure.cc:2822: $? = 0
# configure.cc:2829: ./conftest
# ./conftest: error while loading shared libraries: /usr/lib/libc.so: invalid ELF header
# configure.cc:2833: $? = 127
# configure.cc:2840: error: in `/tmp/perl-netaddr-ip/src/NetAddr-IP-4.079/Lite/Util':
# configure.cc:2842: error: cannot run C compiled programs.
# If you meant to cross compile, use `--host'.
# See `config.log' for more details
#
# ## ---------------- ##
# ## Cache variables. ##
# ## ---------------- ##
#
# ac_cv_env_CC_set=set
# ac_cv_env_CC_value=clang
# ac_cv_env_CFLAGS_set=set
# ac_cv_env_CFLAGS_value=
# ac_cv_env_CPPFLAGS_set=set
# ac_cv_env_CPPFLAGS_value=
# ac_cv_env_CPP_set=
# ac_cv_env_CPP_value=
# ac_cv_env_LDFLAGS_set=set
# ac_cv_env_LDFLAGS_value=
# ac_cv_env_LIBS_set=
# ac_cv_env_LIBS_value=
# ac_cv_env_build_alias_set=
# ac_cv_env_build_alias_value=
# ac_cv_env_host_alias_set=
# ac_cv_env_host_alias_value=
# ac_cv_env_target_alias_set=
# ac_cv_env_target_alias_value=
# ac_cv_prog_ac_ct_CC=clang
#
# ## ----------------- ##
# ## Output variables. ##
# ## ----------------- ##
#
# CC='clang'
# CFLAGS=''
# CPP=''
# CPPFLAGS=''
# DEFS=''
# ECHO_C=''
# ECHO_N='-n'
# ECHO_T=''
# EGREP=''
# EXEEXT=''
# GREP=''
# LDFLAGS=''
# LIBOBJS=''
# LIBS=''
# LTLIBOBJS=''
# OBJEXT=''
# PACKAGE_BUGREPORT=''
# PACKAGE_NAME=''
# PACKAGE_STRING=''
# PACKAGE_TARNAME=''
# PACKAGE_URL=''
# PACKAGE_VERSION=''
# PATH_SEPARATOR=':'
# SHELL='/bin/sh'
# ac_ct_CC='clang'
# bindir='${exec_prefix}/bin'
# build_alias=''
# datadir='${datarootdir}'
# datarootdir='${prefix}/share'
# docdir='${datarootdir}/doc/${PACKAGE}'
# dvidir='${docdir}'
# exec_prefix='NONE'
# host_alias=''
# htmldir='${docdir}'
# includedir='${prefix}/include'
# infodir='${datarootdir}/info'
# libdir='${exec_prefix}/lib'
# libexecdir='${exec_prefix}/libexec'
# localedir='${datarootdir}/locale'
# localstatedir='${prefix}/var'
# mandir='${datarootdir}/man'
# oldincludedir='/usr/include'
# pdfdir='${docdir}'
# prefix='NONE'
# program_transform_name='s,x,x,'
# psdir='${docdir}'
# sbindir='${exec_prefix}/sbin'
# sharedstatedir='${prefix}/com'
# sysconfdir='${prefix}/etc'
# target_alias=''
#
# ## ----------- ##
# ## confdefs.h. ##
# ## ----------- ##
#
# /* confdefs.h */
# #define PACKAGE_NAME ""
# #define PACKAGE_TARNAME ""
# #define PACKAGE_VERSION ""
# #define PACKAGE_STRING ""
# #define PACKAGE_BUGREPORT ""
# #define PACKAGE_URL ""
#
# configure.cc: exit 1