Build of pound with musl toolchain

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

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

SLOCLanguage
5,573 ansic
2,604 sh
830 python
9,007 total

The process tree of the build process is here.

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: pound 2.7-2 (Wed Apr 5 00:47:27 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# checking for x86_64-unknown-linux-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... yes
# checking for suffix of object files... o
# checking whether we are using the GNU C compiler... yes
# checking whether clang accepts -g... yes
# checking for clang option to accept ISO C89... none needed
# checking whether clang understands -c and -o together... yes
# checking for a BSD-compatible install... /usr/bin/install -c
# 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
# configure: *** Checking for threads library and/or flags ***
# checking for the pthreads library -lpthreads... no
# checking whether pthreads work without any flags... yes
# checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
# checking if more special flags are required for pthreads... no
# checking for cc_r... clang
# configure: *** Parsing options ***
# configure: *** Checking for libraries ***
# checking for dlopen in -ldl... yes
# checking for socket in -lsocket... no
# checking for hstrerror in -lresolv... yes
# checking for BIO_new in -lcrypto... no
# Missing OpenSSL (-lcrypto) - aborted
# ==> ERROR: A failure occurred in build().
# Aborting...

Printing config logfiles

CMD: config logfiles '/tmp/pound/src/Pound-2.7/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 pound configure 2.7, which was
# generated by GNU Autoconf 2.69. Invocation command line was
#
# $ ./configure --host=x86_64-unknown-linux --prefix=/usr --sysconfdir=/etc/pound --sbindir=/usr/bin
#
# ## --------- ##
# ## Platform. ##
# ## --------- ##
#
# hostname = 19aa161e6e46
# 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:2232: checking for x86_64-unknown-linux-gcc
# configure:2259: result: clang
# configure:2528: checking for C compiler version
# configure:2537: clang --version >&5
# clang version 3.8.1
# Target: x86_64-unknown-linux-gnu
# Thread model: posix
# InstalledDir: /
# configure:2548: $? = 0
# configure:2537: 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:2548: $? = 0
# configure:2537: clang -V >&5
# clang-3.8: error: argument to '-V' is missing (expected 1 value)
# clang-3.8: error: no input files
# configure:2548: $? = 1
# configure:2537: clang -qversion >&5
# clang-3.8: error: unknown argument: '-qversion'
# clang-3.8: error: no input files
# configure:2548: $? = 1
# configure:2568: checking whether the C compiler works
# configure:2590: clang conftest.c >&5
# configure:2594: $? = 0
# configure:2642: result: yes
# configure:2645: checking for C compiler default output file name
# configure:2647: result: a.out
# configure:2653: checking for suffix of executables
# configure:2660: clang -o conftest conftest.c >&5
# configure:2664: $? = 0
# configure:2686: result:
# configure:2708: checking whether we are cross compiling
# configure:2716: clang -o conftest conftest.c >&5
# configure:2720: $? = 0
# configure:2727: ./conftest
# ./conftest: error while loading shared libraries: /usr/lib/libc.so: invalid ELF header
# configure:2731: $? = 127
# configure:2746: result: yes
# configure:2751: checking for suffix of object files
# configure:2773: clang -c conftest.c >&5
# configure:2777: $? = 0
# configure:2798: result: o
# configure:2802: checking whether we are using the GNU C compiler
# configure:2821: clang -c conftest.c >&5
# configure:2821: $? = 0
# configure:2830: result: yes
# configure:2839: checking whether clang accepts -g
# configure:2859: clang -c -g conftest.c >&5
# configure:2859: $? = 0
# configure:2900: result: yes
# configure:2917: checking for clang option to accept ISO C89
# configure:2980: clang -c conftest.c >&5
# configure:2980: $? = 0
# configure:2993: result: none needed
# configure:3021: checking whether clang understands -c and -o together
# configure:3043: clang -c conftest.c -o conftest2.o
# configure:3046: $? = 0
# configure:3043: clang -c conftest.c -o conftest2.o
# configure:3046: $? = 0
# configure:3058: result: yes
# configure:3118: checking for a BSD-compatible install
# configure:3186: result: /usr/bin/install -c
# configure:3201: checking build system type
# configure:3215: result: x86_64-unknown-linux-gnu
# configure:3235: checking host system type
# configure:3248: result: x86_64-unknown-linux-gnu
# configure:3268: checking target system type
# configure:3281: result: x86_64-unknown-linux-gnu
# configure:3385: *** Checking for threads library and/or flags ***
# configure:3553: checking for the pthreads library -lpthreads
# configure:3586: clang -o conftest -D_REENTRANT -D_THREAD_SAFE conftest.c -lpthreads >&5
# /sysroot/bin/ld: error: cannot find -lpthreads
# clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation)
# configure:3586: $? = 1
# configure: failed program was:
# | /* confdefs.h */
# | #define PACKAGE_NAME "pound"
# | #define PACKAGE_TARNAME "pound"
# | #define PACKAGE_VERSION "2.7"
# | #define PACKAGE_STRING "pound 2.7"
# | #define PACKAGE_BUGREPORT "roseg@apsis.ch"
# | #define PACKAGE_URL ""
# | /* end confdefs.h. */
# | #include
# | int
# | main ()
# | {
# | pthread_t th; pthread_join(th, 0);
# | pthread_attr_init(0); pthread_cleanup_push(0, 0);
# | pthread_create(0,0,0,0); pthread_cleanup_pop(0);
# | ;
# | return 0;
# | }
# configure:3595: result: no
# configure:3498: checking whether pthreads work without any flags
# configure:3586: clang -o conftest -D_REENTRANT -D_THREAD_SAFE conftest.c >&5
# configure:3586: $? = 0
# configure:3595: result: yes
# configure:3615: checking for joinable pthread attribute
# configure:3628: clang -o conftest -D_REENTRANT -D_THREAD_SAFE conftest.c >&5
# configure:3628: $? = 0
# configure:3660: result: PTHREAD_CREATE_JOINABLE
# configure:3667: checking if more special flags are required for pthreads
# configure:3674: result: no
# configure:3686: checking for cc_r
# configure:3714: result: clang
# configure:3746: *** Parsing options ***
# configure:3851: *** Checking for libraries ***
# configure:3854: checking for dlopen in -ldl
# configure:3879: clang -o conftest -DUPER -DDH_LEN=2048 -D_REENTRANT -D_THREAD_SAFE conftest.c -ldl -lm >&5
# configure:3879: $? = 0
# configure:3888: result: yes
# configure:3899: checking for socket in -lsocket
# configure:3924: clang -o conftest -DUPER -DDH_LEN=2048 -D_REENTRANT -D_THREAD_SAFE conftest.c -lsocket -ldl -lm >&5
# /sysroot/bin/ld: error: cannot find -lsocket
# clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation)
# configure:3924: $? = 1
# configure: failed program was:
# | /* confdefs.h */
# | #define PACKAGE_NAME "pound"
# | #define PACKAGE_TARNAME "pound"
# | #define PACKAGE_VERSION "2.7"
# | #define PACKAGE_STRING "pound 2.7"
# | #define PACKAGE_BUGREPORT "roseg@apsis.ch"
# | #define PACKAGE_URL ""
# | #define HAVE_LIBDL 1
# | /* end confdefs.h. */
# |
# | /* Override any GCC internal prototype to avoid an error.
# | Use char because int might match the return type of a GCC
# | builtin and then its argument prototype would still apply. */
# | #ifdef __cplusplus
# | extern "C"
# | #endif
# | char socket ();
# | int
# | main ()
# | {
# | return socket ();
# | ;
# | return 0;
# | }
# configure:3933: result: no
# configure:3939: checking for hstrerror in -lresolv
# configure:3964: clang -o conftest -DUPER -DDH_LEN=2048 -D_REENTRANT -D_THREAD_SAFE conftest.c -lresolv -ldl -lm >&5
# configure:3964: $? = 0
# configure:3973: result: yes
# configure:3979: checking for BIO_new in -lcrypto
# configure:4004: clang -o conftest -DUPER -DDH_LEN=2048 -D_REENTRANT -D_THREAD_SAFE conftest.c -lcrypto -lresolv -ldl -lm >&5
# /sysroot/bin/ld: error: cannot find -lcrypto
# /tmp/conftest-e7f5d7.o:conftest.c:function main: error: undefined reference to 'BIO_new'
# clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation)
# configure:4004: $? = 1
# configure: failed program was:
# | /* confdefs.h */
# | #define PACKAGE_NAME "pound"
# | #define PACKAGE_TARNAME "pound"
# | #define PACKAGE_VERSION "2.7"
# | #define PACKAGE_STRING "pound 2.7"
# | #define PACKAGE_BUGREPORT "roseg@apsis.ch"
# | #define PACKAGE_URL ""
# | #define HAVE_LIBDL 1
# | /* end confdefs.h. */
# |
# | /* Override any GCC internal prototype to avoid an error.
# | Use char because int might match the return type of a GCC
# | builtin and then its argument prototype would still apply. */
# | #ifdef __cplusplus
# | extern "C"
# | #endif
# | char BIO_new ();
# | int
# | main ()
# | {
# | return BIO_new ();
# | ;
# | return 0;
# | }
# configure:4013: result: no
#
# ## ---------------- ##
# ## Cache variables. ##
# ## ---------------- ##
#
# ac_cv_build=x86_64-unknown-linux-gnu
# ac_cv_c_compiler_gnu=yes
# 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=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_lib_crypto_BIO_new=no
# ac_cv_lib_dl_dlopen=yes
# ac_cv_lib_resolv_hstrerror=yes
# ac_cv_lib_socket_socket=no
# ac_cv_objext=o
# ac_cv_path_install='/usr/bin/install -c'
# ac_cv_prog_CC=clang
# ac_cv_prog_PTHREAD_CC=clang
# ac_cv_prog_cc_c89=
# ac_cv_prog_cc_g=yes
# ac_cv_target=x86_64-unknown-linux-gnu
# am_cv_prog_cc_c_o=yes
#
# ## ----------------- ##
# ## Output variables. ##
# ## ----------------- ##
#
# CC='clang'
# CFLAGS=' -DUPER'
# CPP=''
# CPPFLAGS='-DDH_LEN=2048 -D_REENTRANT -D_THREAD_SAFE'
# C_CERT1L=''
# C_DH_LEN='2048'
# C_GROUP=''
# C_MAXBUF='0'
# C_OWNER=''
# C_SSL=''
# C_SUPER='0'
# C_T_RSA='0'
# DEFS=''
# ECHO_C=''
# ECHO_N='-n'
# ECHO_T=''
# EGREP=''
# EXEEXT=''
# GREP=''
# INSTALL_DATA='${INSTALL} -m 644'
# INSTALL_PROGRAM='${INSTALL}'
# INSTALL_SCRIPT='${INSTALL}'
# I_GRP=''
# I_OWNER=''
# LDFLAGS=' '
# LIBOBJS=''
# LIBS='-lresolv -ldl -lm'
# LTLIBOBJS=''
# OBJEXT='o'
# PACKAGE_BUGREPORT='roseg@apsis.ch'
# PACKAGE_NAME='pound'
# PACKAGE_STRING='pound 2.7'
# PACKAGE_TARNAME='pound'
# PACKAGE_URL=''
# PACKAGE_VERSION='2.7'
# PATH_SEPARATOR=':'
# PTHREAD_CC='clang'
# PTHREAD_CFLAGS=''
# PTHREAD_LIBS=''
# SHELL='/bin/sh'
# ac_ct_CC=''
# acx_pthread_config=''
# 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'
# libdir='${exec_prefix}/lib'
# libexecdir='${exec_prefix}/libexec'
# localedir='${datarootdir}/locale'
# localstatedir='${prefix}/var'
# mandir='${datarootdir}/man'
# oldincludedir='/usr/include'
# pdfdir='${docdir}'
# prefix='/usr'
# program_transform_name='s,x,x,'
# psdir='${docdir}'
# sbindir='/usr/bin'
# sharedstatedir='${prefix}/com'
# sysconfdir='/etc/pound'
# target='x86_64-unknown-linux-gnu'
# target_alias=''
# target_cpu='x86_64'
# target_os='linux-gnu'
# target_vendor='unknown'
#
# ## ----------- ##
# ## confdefs.h. ##
# ## ----------- ##
#
# /* confdefs.h */
# #define PACKAGE_NAME "pound"
# #define PACKAGE_TARNAME "pound"
# #define PACKAGE_VERSION "2.7"
# #define PACKAGE_STRING "pound 2.7"
# #define PACKAGE_BUGREPORT "roseg@apsis.ch"
# #define PACKAGE_URL ""
# #define HAVE_LIBDL 1
#
# configure: exit 1