Build of gnet with musl toolchain

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

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

SLOCLanguage
15,309 ansic
8,845 sh
454 perl
24,608 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: gnet 2.0.8-4 (Wed Apr 5 01:30:35 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# configure: WARNING: If you wanted to set the --build type, don't use --host.
# If a cross compiler is detected then cross compile mode will be used.
# checking build system type... x86_64-unknown-linux-gnu
# checking host system type... x86_64-unknown-linux-gnu
# checking target system type... x86_64-unknown-linux-gnu
# checking for a BSD-compatible install... /usr/bin/install -c
# checking whether build environment is sane... yes
# checking for gawk... gawk
# checking whether make sets $(MAKE)... yes
# checking for x86_64-unknown-linux-strip... no
# checking for strip... strip
# checking whether to enable maintainer-specific portions of Makefiles... no
# checking for Win32... no
# checking for style of include used by make... GNU
# checking for x86_64-unknown-linux-gcc... clang
# checking for C compiler default output file name...
# configure: error: C compiler cannot create executables
# See `config.log' for more details.
# ==> ERROR: A failure occurred in build().
# Aborting...

Printing config logfiles

CMD: config logfiles '/tmp/gnet/src/gnet-2.0.8/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 gnet configure 2.0.8, which was
# generated by GNU Autoconf 2.61. Invocation command line was
#
# $ ./configure --host=x86_64-unknown-linux --prefix=/usr
#
# ## --------- ##
# ## Platform. ##
# ## --------- ##
#
# hostname = 67c0f0e87e46
# 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:2079: checking build system type
# configure:2097: result: x86_64-unknown-linux-gnu
# configure:2119: checking host system type
# configure:2134: result: x86_64-unknown-linux-gnu
# configure:2156: checking target system type
# configure:2171: result: x86_64-unknown-linux-gnu
# configure:2213: checking for a BSD-compatible install
# configure:2269: result: /usr/bin/install -c
# configure:2280: checking whether build environment is sane
# configure:2323: result: yes
# configure:2388: checking for gawk
# configure:2404: found /usr/sbin/gawk
# configure:2415: result: gawk
# configure:2426: checking whether make sets $(MAKE)
# configure:2447: result: yes
# configure:2523: checking for x86_64-unknown-linux-strip
# configure:2553: result: no
# configure:2563: checking for strip
# configure:2579: found /sysroot/bin/strip
# configure:2590: result: strip
# configure:2631: checking whether to enable maintainer-specific portions of Makefiles
# configure:2640: result: no
# configure:2717: checking for Win32
# configure:2738: result: no
# configure:2766: checking for style of include used by make
# configure:2794: result: GNU
# configure:2827: checking for x86_64-unknown-linux-gcc
# configure:2854: result: clang
# configure:3132: checking for C compiler version
# configure:3139: clang --version >&5
# clang version 3.8.1
# Target: x86_64-unknown-linux-gnu
# Thread model: posix
# InstalledDir: /
# configure:3142: $? = 0
# configure:3149: 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:3152: $? = 0
# configure:3159: clang -V >&5
# clang-3.8: error: argument to '-V' is missing (expected 1 value)
# clang-3.8: error: no input files
# configure:3162: $? = 1
# configure:3185: checking for C compiler default output file name
# configure:3212: clang conftest.c -lglib-2.0 >&5
# /sysroot/bin/ld: error: cannot find -lglib-2.0
# clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation)
# configure:3215: $? = 1
# configure:3253: result:
# configure: failed program was:
# | /* confdefs.h. */
# | #define PACKAGE_NAME "gnet"
# | #define PACKAGE_TARNAME "gnet"
# | #define PACKAGE_VERSION "2.0.8"
# | #define PACKAGE_STRING "gnet 2.0.8"
# | #define PACKAGE_BUGREPORT "gnet@gnetlibrary.org"
# | #define PACKAGE "gnet"
# | #define VERSION "2.0.8"
# | #define GNET_MAJOR_VERSION 2
# | #define GNET_MINOR_VERSION 0
# | #define GNET_MICRO_VERSION 8
# | #define GNET_INTERFACE_AGE 0
# | #define GNET_BINARY_AGE 8
# | /* end confdefs.h. */
# |
# | int
# | main ()
# | {
# |
# | ;
# | return 0;
# | }
# configure:3260: error: C compiler cannot create executables
# See `config.log' for more details.
#
# ## ---------------- ##
# ## Cache variables. ##
# ## ---------------- ##
#
# ac_cv_build=x86_64-unknown-linux-gnu
# ac_cv_env_CCC_set=
# ac_cv_env_CCC_value=
# 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_CHECK_CFLAGS_set=
# ac_cv_env_CHECK_CFLAGS_value=
# ac_cv_env_CHECK_LIBS_set=
# ac_cv_env_CHECK_LIBS_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_CXXCPP_set=
# ac_cv_env_CXXCPP_value=
# ac_cv_env_CXXFLAGS_set=set
# ac_cv_env_CXXFLAGS_value=
# ac_cv_env_CXX_set=set
# ac_cv_env_CXX_value=clang++
# ac_cv_env_F77_set=
# ac_cv_env_F77_value=
# ac_cv_env_FFLAGS_set=
# ac_cv_env_FFLAGS_value=
# ac_cv_env_GLIB_CFLAGS_set=
# ac_cv_env_GLIB_CFLAGS_value=
# ac_cv_env_GLIB_LIBS_set=
# ac_cv_env_GLIB_LIBS_value=
# ac_cv_env_GTHREAD_CFLAGS_set=
# ac_cv_env_GTHREAD_CFLAGS_value=
# ac_cv_env_GTHREAD_LIBS_set=
# ac_cv_env_GTHREAD_LIBS_value=
# ac_cv_env_LDFLAGS_set=set
# ac_cv_env_LDFLAGS_value=
# ac_cv_env_LIBS_set=set
# ac_cv_env_LIBS_value=-lglib-2.0
# ac_cv_env_PKG_CONFIG_set=
# ac_cv_env_PKG_CONFIG_value=
# ac_cv_env_VALGRIND_CFLAGS_set=
# ac_cv_env_VALGRIND_CFLAGS_value=
# ac_cv_env_VALGRIND_LIBS_set=
# ac_cv_env_VALGRIND_LIBS_value=
# ac_cv_env_build_alias_set=
# ac_cv_env_build_alias_value=
# ac_cv_env_host_alias_set=set
# ac_cv_env_host_alias_value=x86_64-unknown-linux
# ac_cv_env_target_alias_set=
# ac_cv_env_target_alias_value=
# ac_cv_host=x86_64-unknown-linux-gnu
# ac_cv_path_install='/usr/bin/install -c'
# ac_cv_prog_AWK=gawk
# ac_cv_prog_CC=clang
# ac_cv_prog_ac_ct_STRIP=strip
# ac_cv_prog_make_make_set=yes
# ac_cv_target=x86_64-unknown-linux-gnu
#
# ## ----------------- ##
# ## Output variables. ##
# ## ----------------- ##
#
# ACLOCAL='${SHELL} /tmp/gnet/src/gnet-2.0.8/missing --run aclocal-1.9'
# AMDEPBACKSLASH='\'
# AMDEP_FALSE='#'
# AMDEP_TRUE=''
# AMTAR='${SHELL} /tmp/gnet/src/gnet-2.0.8/missing --run tar'
# AR=''
# AS=''
# AUTOCONF='${SHELL} /tmp/gnet/src/gnet-2.0.8/missing --run autoconf'
# AUTOHEADER='${SHELL} /tmp/gnet/src/gnet-2.0.8/missing --run autoheader'
# AUTOMAKE='${SHELL} /tmp/gnet/src/gnet-2.0.8/missing --run automake-1.9'
# AWK='gawk'
# CC='clang'
# CCDEPMODE=''
# CFLAGS=''
# CHECK_CFLAGS=''
# CHECK_LIBS=''
# CPP=''
# CPPFLAGS=''
# CXX='clang++'
# CXXCPP=''
# CXXDEPMODE=''
# CXXFLAGS=''
# CYGPATH_W='echo'
# DEFS=''
# DEPDIR='.deps'
# DLLTOOL=''
# ECHO='echo'
# ECHO_C=''
# ECHO_N='-n'
# ECHO_T=''
# EGREP=''
# ENABLE_GTK_DOC_FALSE=''
# ENABLE_GTK_DOC_TRUE=''
# ENABLE_NETWORK_TESTS_FALSE=''
# ENABLE_NETWORK_TESTS_TRUE=''
# EXEEXT=''
# F77=''
# FFLAGS=''
# GLIB_CFLAGS=''
# GLIB_LIBS=''
# GNET_BINARY_AGE='8'
# GNET_DEBUG_FLAGS=''
# GNET_GCOV_ENABLED_FALSE=''
# GNET_GCOV_ENABLED_TRUE=''
# GNET_INTERFACE_AGE='0'
# GNET_MAJOR_VERSION='2'
# GNET_MICRO_VERSION='8'
# GNET_MINOR_VERSION='0'
# GNET_VERSION='2.0.8'
# GREP=''
# GTHREAD_CFLAGS=''
# GTHREAD_LIBS=''
# GTK_DOC_USE_LIBTOOL_FALSE=''
# GTK_DOC_USE_LIBTOOL_TRUE=''
# HAVE_CHECK_FALSE=''
# HAVE_CHECK_TRUE=''
# HAVE_CPU_ALPHA_FALSE=''
# HAVE_CPU_ALPHA_TRUE=''
# HAVE_CPU_ARM_FALSE=''
# HAVE_CPU_ARM_TRUE=''
# HAVE_CPU_CRISV32_FALSE=''
# HAVE_CPU_CRISV32_TRUE=''
# HAVE_CPU_CRIS_FALSE=''
# HAVE_CPU_CRIS_TRUE=''
# HAVE_CPU_HPPA_FALSE=''
# HAVE_CPU_HPPA_TRUE=''
# HAVE_CPU_I386_FALSE=''
# HAVE_CPU_I386_TRUE=''
# HAVE_CPU_IA64_FALSE=''
# HAVE_CPU_IA64_TRUE=''
# HAVE_CPU_M68K_FALSE=''
# HAVE_CPU_M68K_TRUE=''
# HAVE_CPU_MIPS_FALSE=''
# HAVE_CPU_MIPS_TRUE=''
# HAVE_CPU_PPC64_FALSE=''
# HAVE_CPU_PPC64_TRUE=''
# HAVE_CPU_PPC_FALSE=''
# HAVE_CPU_PPC_TRUE=''
# HAVE_CPU_S390_FALSE=''
# HAVE_CPU_S390_TRUE=''
# HAVE_CPU_SPARC_FALSE=''
# HAVE_CPU_SPARC_TRUE=''
# HAVE_CPU_X86_64_FALSE=''
# HAVE_CPU_X86_64_TRUE=''
# HAVE_VALGRIND_FALSE=''
# HAVE_VALGRIND_TRUE=''
# HTML_DIR=''
# INSTALL_DATA='${INSTALL} -m 644'
# INSTALL_PROGRAM='${INSTALL}'
# INSTALL_SCRIPT='${INSTALL}'
# INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
# LDFLAGS=''
# LIBOBJS=''
# LIBS='-lglib-2.0'
# LIBTOOL=''
# LN_S=''
# LTLIBOBJS=''
# LT_AGE='8'
# LT_CURRENT='8'
# LT_CURRENT_MINUS_AGE='0'
# LT_RELEASE='2.0'
# LT_REVISION='0'
# MAINT='#'
# MAINTAINER_MODE_FALSE=''
# MAINTAINER_MODE_TRUE='#'
# MAKEINFO='${SHELL} /tmp/gnet/src/gnet-2.0.8/missing --run makeinfo'
# OBJDUMP=''
# OBJEXT=''
# OS_WIN32_FALSE=''
# OS_WIN32_TRUE='#'
# PACKAGE='gnet'
# PACKAGE_BUGREPORT='gnet@gnetlibrary.org'
# PACKAGE_NAME='gnet'
# PACKAGE_STRING='gnet 2.0.8'
# PACKAGE_TARNAME='gnet'
# PACKAGE_VERSION='2.0.8'
# PATH_SEPARATOR=':'
# PKG_CONFIG=''
# RANLIB=''
# SED=''
# SET_MAKE=''
# SHELL='/bin/sh'
# STRIP='strip'
# VALGRIND_CFLAGS=''
# VALGRIND_LIBS=''
# VALGRIND_PATH=''
# VERSION='2.0.8'
# ac_ct_CC=''
# ac_ct_CXX=''
# ac_ct_F77=''
# am__fastdepCC_FALSE=''
# am__fastdepCC_TRUE=''
# am__fastdepCXX_FALSE=''
# am__fastdepCXX_TRUE=''
# am__include='include'
# am__leading_dot='.'
# am__quote=''
# am__tar='${AMTAR} chof - "$$tardir"'
# am__untar='${AMTAR} xf -'
# bindir='${exec_prefix}/bin'
# build='x86_64-unknown-linux-gnu'
# build_alias=''
# build_cpu='x86_64'
# build_os='linux-gnu'
# build_vendor='unknown'
# datadir='${datarootdir}'
# datarootdir='${prefix}/share'
# docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
# dvidir='${docdir}'
# exec_prefix='NONE'
# host='x86_64-unknown-linux-gnu'
# host_alias='x86_64-unknown-linux'
# host_cpu='x86_64'
# host_os='linux-gnu'
# host_vendor='unknown'
# htmldir='${docdir}'
# includedir='${prefix}/include'
# infodir='${datarootdir}/info'
# install_sh='/tmp/gnet/src/gnet-2.0.8/install-sh'
# libdir='${exec_prefix}/lib'
# libexecdir='${exec_prefix}/libexec'
# localedir='${datarootdir}/locale'
# localstatedir='${prefix}/var'
# mandir='${datarootdir}/man'
# mkdir_p='mkdir -p --'
# oldincludedir='/usr/include'
# pdfdir='${docdir}'
# prefix='/usr'
# program_transform_name='s,x,x,'
# psdir='${docdir}'
# sbindir='${exec_prefix}/sbin'
# sharedstatedir='${prefix}/com'
# sysconfdir='${prefix}/etc'
# target='x86_64-unknown-linux-gnu'
# target_alias=''
# target_cpu='x86_64'
# target_os='linux-gnu'
# target_vendor='unknown'
#
# ## ----------- ##
# ## confdefs.h. ##
# ## ----------- ##
#
# #define PACKAGE_NAME "gnet"
# #define PACKAGE_TARNAME "gnet"
# #define PACKAGE_VERSION "2.0.8"
# #define PACKAGE_STRING "gnet 2.0.8"
# #define PACKAGE_BUGREPORT "gnet@gnetlibrary.org"
# #define PACKAGE "gnet"
# #define VERSION "2.0.8"
# #define GNET_MAJOR_VERSION 2
# #define GNET_MINOR_VERSION 0
# #define GNET_MICRO_VERSION 8
# #define GNET_INTERFACE_AGE 0
# #define GNET_BINARY_AGE 8
#
# configure: exit 77