Build of rogue with musl toolchain

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

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

SLOCLanguage
12,468 ansic
2,831 sh
15,299 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: rogue 5.4.4-5 (Wed Apr 5 00:28:21 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# 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 gcc... clang
# checking for C compiler default output file name... a.out
# checking whether the C compiler works... configure: error: cannot run C compiled programs.
# If you meant to cross compile, use `--host'.
# See `config.log' for more details.
# ==> ERROR: A failure occurred in build().
# Aborting...

Printing config logfiles

CMD: config logfiles '/tmp/rogue/src/rogue5.4.4/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 Rogue configure 5.4.4, which was
# generated by GNU Autoconf 2.61. Invocation command line was
#
# $ ./configure
#
# ## --------- ##
# ## Platform. ##
# ## --------- ##
#
# hostname = 5c40be4d7549
# 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:1786: checking build system type
# configure:1804: result: x86_64-unknown-linux-gnu
# configure:1826: checking host system type
# configure:1841: result: x86_64-unknown-linux-gnu
# configure:1863: checking target system type
# configure:1878: result: x86_64-unknown-linux-gnu
# configure:1956: checking for gcc
# configure:1983: result: clang
# configure:2221: checking for C compiler version
# configure:2228: clang --version >&5
# clang version 3.8.1
# Target: x86_64-unknown-linux-gnu
# Thread model: posix
# InstalledDir: /
# configure:2231: $? = 0
# configure:2238: 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:2241: $? = 0
# configure:2248: clang -V >&5
# clang-3.8: error: argument to '-V' is missing (expected 1 value)
# clang-3.8: error: no input files
# configure:2251: $? = 1
# configure:2274: checking for C compiler default output file name
# configure:2301: clang conftest.c >&5
# configure:2304: $? = 0
# configure:2342: result: a.out
# configure:2359: checking whether the C compiler works
# configure:2369: ./a.out
# ./a.out: error while loading shared libraries: /usr/lib/libc.so: invalid ELF header
# configure:2372: $? = 127
# configure:2381: error: cannot run C compiled programs.
# If you meant to cross compile, use `--host'.
# See `config.log' for more details.
#
# ## ---------------- ##
# ## Cache variables. ##
# ## ---------------- ##
#
# ac_cv_build=x86_64-unknown-linux-gnu
# 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_host=x86_64-unknown-linux-gnu
# ac_cv_prog_ac_ct_CC=clang
# ac_cv_target=x86_64-unknown-linux-gnu
#
# ## ----------------- ##
# ## Output variables. ##
# ## ----------------- ##
#
# CC='clang'
# CFLAGS=''
# COLCRT=''
# CPP=''
# CPPFLAGS=''
# DEFS=''
# ECHO_C=''
# ECHO_N='-n'
# ECHO_T=''
# EGREP=''
# EXEEXT=''
# GREP=''
# GROFF=''
# GROUPOWNER=''
# LDFLAGS=''
# LIBOBJS=''
# LIBS=''
# LOCKFILE=''
# LTLIBOBJS=''
# NROFF=''
# OBJEXT=''
# PACKAGE_BUGREPORT='yendor@rogueforge.net'
# PACKAGE_NAME='Rogue'
# PACKAGE_STRING='Rogue 5.4.4'
# PACKAGE_TARNAME='rogue'
# PACKAGE_VERSION='5.4.4'
# PATH_SEPARATOR=':'
# PROGRAM=''
# SCOREFILE=''
# SED=''
# SHELL='/bin/sh'
# TARGET=''
# TBL=''
# ac_ct_CC='clang'
# 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=''
# host_cpu='x86_64'
# host_os='linux-gnu'
# host_vendor='unknown'
# 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='x86_64-unknown-linux-gnu'
# target_alias=''
# target_cpu='x86_64'
# target_os='linux-gnu'
# target_vendor='unknown'
#
# ## ----------- ##
# ## confdefs.h. ##
# ## ----------- ##
#
# #define PACKAGE_NAME "Rogue"
# #define PACKAGE_TARNAME "rogue"
# #define PACKAGE_VERSION "5.4.4"
# #define PACKAGE_STRING "Rogue 5.4.4"
# #define PACKAGE_BUGREPORT "yendor@rogueforge.net"
#
# configure: exit 1