Build of tor 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
166,375 ansic
5,269 sh
485 python
100 perl
172,229 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: tor 0.2.7.6-3 (Wed Apr 5 00:50:51 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# checking for a BSD-compatible install... /usr/bin/install -c
# checking whether build environment is sane... yes
# checking for x86_64-unknown-linux-strip... no
# checking for strip... strip
# checking for a thread-safe mkdir -p... /usr/sbin/mkdir -p
# checking for gawk... gawk
# checking whether make sets $(MAKE)... yes
# checking whether make supports nested variables... yes
# checking whether make supports nested variables... (cached) yes
# checking build system type... x86_64-unknown-linux-gnu
# checking host system type... x86_64-unknown-linux-gnu
# checking for x86_64-unknown-linux-pkg-config... no
# checking for pkg-config... /usr/sbin/pkg-config
# checking pkg-config is at least version 0.9.0... yes
# checking for SYSTEMD... no
# configure: Okay, checking for systemd a different way...
# checking for SYSTEMD... yes
# checking for LIBSYSTEMD209... yes
# checking for x86_64-unknown-linux-ar... no
# checking for ar... ar
# configure: error: We think we are cross compiling but could not find a properly named toolchain. Do you have your cross-compiling toolchain in PATH? (You can --disable-tool-name-check to ignore this.)
# ==> ERROR: A failure occurred in build().
# Aborting...

Printing config logfiles

CMD: config logfiles '/tmp/tor/src/tor-0.2.7.6/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 tor configure 0.2.7.6, which was
# generated by GNU Autoconf 2.69. Invocation command line was
#
# $ ./configure --host=x86_64-unknown-linux --prefix=/usr --sysconfdir=/etc --localstatedir=/var
#
# ## --------- ##
# ## Platform. ##
# ## --------- ##
#
# hostname = 96ee052646b2
# 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:2713: checking for a BSD-compatible install
# configure:2781: result: /usr/bin/install -c
# configure:2792: checking whether build environment is sane
# configure:2847: result: yes
# configure:2906: checking for x86_64-unknown-linux-strip
# configure:2936: result: no
# configure:2946: checking for strip
# configure:2962: found /sysroot/bin/strip
# configure:2973: result: strip
# configure:2998: checking for a thread-safe mkdir -p
# configure:3037: result: /usr/sbin/mkdir -p
# configure:3044: checking for gawk
# configure:3060: found /usr/sbin/gawk
# configure:3071: result: gawk
# configure:3082: checking whether make sets $(MAKE)
# configure:3104: result: yes
# configure:3133: checking whether make supports nested variables
# configure:3150: result: yes
# configure:3287: checking whether make supports nested variables
# configure:3304: result: yes
# configure:3322: checking build system type
# configure:3336: result: x86_64-unknown-linux-gnu
# configure:3356: checking host system type
# configure:3369: result: x86_64-unknown-linux-gnu
# configure:3401: checking for x86_64-unknown-linux-pkg-config
# configure:3434: result: no
# configure:3444: checking for pkg-config
# configure:3462: found /usr/sbin/pkg-config
# configure:3474: result: /usr/sbin/pkg-config
# configure:3499: checking pkg-config is at least version 0.9.0
# configure:3502: result: yes
# configure:3657: checking for SYSTEMD
# configure:3664: $PKG_CONFIG --exists --print-errors "libsystemd-daemon"
# Package libsystemd-daemon was not found in the pkg-config search path.
# Perhaps you should add the directory containing `libsystemd-daemon.pc'
# to the PKG_CONFIG_PATH environment variable
# No package 'libsystemd-daemon' found
# configure:3667: $? = 1
# configure:3681: $PKG_CONFIG --exists --print-errors "libsystemd-daemon"
# Package libsystemd-daemon was not found in the pkg-config search path.
# Perhaps you should add the directory containing `libsystemd-daemon.pc'
# to the PKG_CONFIG_PATH environment variable
# No package 'libsystemd-daemon' found
# configure:3684: $? = 1
# configure:3698: result: no
# No package 'libsystemd-daemon' found
# configure:3727: Okay, checking for systemd a different way...
# configure:3731: checking for SYSTEMD
# configure:3738: $PKG_CONFIG --exists --print-errors "libsystemd"
# configure:3741: $? = 0
# configure:3755: $PKG_CONFIG --exists --print-errors "libsystemd"
# configure:3758: $? = 0
# configure:3796: result: yes
# configure:3811: checking for LIBSYSTEMD209
# configure:3818: $PKG_CONFIG --exists --print-errors "libsystemd >= 209"
# configure:3821: $? = 0
# configure:3835: $PKG_CONFIG --exists --print-errors "libsystemd >= 209"
# configure:3838: $? = 0
# configure:3896: result: yes
# configure:3997: checking for x86_64-unknown-linux-ar
# configure:4027: result: no
# configure:4037: checking for ar
# configure:4053: found /sysroot/bin/ar
# configure:4064: result: ar
# configure:4091: error: We think we are cross compiling but could not find a properly named toolchain. Do you have your cross-compiling toolchain in PATH? (You can --disable-tool-name-check to ignore this.)
#
# ## ---------------- ##
# ## 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_LIBSYSTEMD209_CFLAGS_set=
# ac_cv_env_LIBSYSTEMD209_CFLAGS_value=
# ac_cv_env_LIBSYSTEMD209_LIBS_set=
# ac_cv_env_LIBSYSTEMD209_LIBS_value=
# ac_cv_env_LIBS_set=
# ac_cv_env_LIBS_value=
# ac_cv_env_PKG_CONFIG_LIBDIR_set=
# ac_cv_env_PKG_CONFIG_LIBDIR_value=
# ac_cv_env_PKG_CONFIG_PATH_set=
# ac_cv_env_PKG_CONFIG_PATH_value=
# ac_cv_env_PKG_CONFIG_set=
# ac_cv_env_PKG_CONFIG_value=
# ac_cv_env_PYTHON_set=
# ac_cv_env_PYTHON_value=
# ac_cv_env_SYSTEMD_CFLAGS_set=
# ac_cv_env_SYSTEMD_CFLAGS_value=
# ac_cv_env_SYSTEMD_LIBS_set=
# ac_cv_env_SYSTEMD_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_ac_pt_PKG_CONFIG=/usr/sbin/pkg-config
# ac_cv_path_install='/usr/bin/install -c'
# ac_cv_path_mkdir=/usr/sbin/mkdir
# ac_cv_prog_AWK=gawk
# ac_cv_prog_ac_ct_AR=ar
# ac_cv_prog_ac_ct_STRIP=strip
# ac_cv_prog_make_make_set=yes
# am_cv_make_support_nested_variables=yes
# pkg_cv_LIBSYSTEMD209_CFLAGS=
# pkg_cv_LIBSYSTEMD209_LIBS=-lsystemd
# pkg_cv_SYSTEMD_CFLAGS=
# pkg_cv_SYSTEMD_LIBS=-lsystemd
#
# ## ----------------- ##
# ## Output variables. ##
# ## ----------------- ##
#
# A2X=''
# ACLOCAL='${SHELL} /tmp/tor/src/tor-0.2.7.6/missing aclocal-1.15'
# AMDEPBACKSLASH=''
# AMDEP_FALSE=''
# AMDEP_TRUE=''
# AMTAR='$${TAR-tar}'
# AM_BACKSLASH='\'
# AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
# AM_DEFAULT_VERBOSITY='0'
# AM_V='$(V)'
# AR='ar'
# ASCIIDOC=''
# AUTOCONF='${SHELL} /tmp/tor/src/tor-0.2.7.6/missing autoconf'
# AUTOHEADER='${SHELL} /tmp/tor/src/tor-0.2.7.6/missing autoheader'
# AUTOMAKE='${SHELL} /tmp/tor/src/tor-0.2.7.6/missing automake-1.15'
# AWK='gawk'
# BINDIR=''
# BUILDDIR=''
# BUILD_CURVE25519_DONNA_C64_FALSE=''
# BUILD_CURVE25519_DONNA_C64_TRUE=''
# BUILD_CURVE25519_DONNA_FALSE=''
# BUILD_CURVE25519_DONNA_TRUE=''
# BUILD_NT_SERVICES_FALSE=''
# BUILD_NT_SERVICES_TRUE=''
# BUILD_READPASSPHRASE_C_FALSE=''
# BUILD_READPASSPHRASE_C_TRUE=''
# CC='clang'
# CCDEPMODE=''
# CFLAGS=''
# CONFDIR=''
# COVERAGE_ENABLED_FALSE=''
# COVERAGE_ENABLED_TRUE='#'
# CPP=''
# CPPFLAGS=' -I${top_srcdir}/src/common'
# CURVE25519_LIBS=''
# CYGPATH_W='echo'
# DEFS=''
# DEPDIR=''
# ECHO_C=''
# ECHO_N='-n'
# ECHO_T=''
# EGREP=''
# EXEEXT=''
# F_OMIT_FRAME_POINTER=''
# GREP=''
# INSTALL_DATA='${INSTALL} -m 644'
# INSTALL_PROGRAM='${INSTALL}'
# INSTALL_SCRIPT='${INSTALL}'
# INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
# LDFLAGS=''
# LIBOBJS=''
# LIBS=''
# LIBSYSTEMD209_CFLAGS=''
# LIBSYSTEMD209_LIBS='-lsystemd'
# LOCALSTATEDIR=''
# LOGFACILITY=''
# LTLIBOBJS=''
# MAKEINFO='${SHELL} /tmp/tor/src/tor-0.2.7.6/missing makeinfo'
# MINIUPNPC_FALSE=''
# MINIUPNPC_TRUE=''
# MKDIR_P='/usr/sbin/mkdir -p'
# NAT_PMP_FALSE=''
# NAT_PMP_TRUE=''
# OBJEXT=''
# PACKAGE='tor'
# PACKAGE_BUGREPORT=''
# PACKAGE_NAME='tor'
# PACKAGE_STRING='tor 0.2.7.6'
# PACKAGE_TARNAME='tor'
# PACKAGE_URL=''
# PACKAGE_VERSION='0.2.7.6'
# PATH_SEPARATOR=':'
# PERL=''
# PKG_CONFIG='/usr/sbin/pkg-config'
# PKG_CONFIG_LIBDIR=''
# PKG_CONFIG_PATH=''
# PYTHON=''
# RANLIB=''
# SED=''
# SET_MAKE=''
# SHELL='/bin/sh'
# STRIP='strip'
# SYSTEMD_CFLAGS=''
# SYSTEMD_LIBS='-lsystemd'
# THREADS_PTHREADS_FALSE=''
# THREADS_PTHREADS_TRUE=''
# THREADS_WIN32_FALSE=''
# THREADS_WIN32_TRUE=''
# TORGROUP=''
# TORUSER=''
# TOR_CPPFLAGS_libevent=''
# TOR_CPPFLAGS_openssl=''
# TOR_CPPFLAGS_zlib=''
# TOR_LDFLAGS_libevent=''
# TOR_LDFLAGS_openssl=''
# TOR_LDFLAGS_zlib=''
# TOR_LIBEVENT_LIBS=''
# TOR_LIB_GDI=''
# TOR_LIB_IPHLPAPI=''
# TOR_LIB_MATH=''
# TOR_LIB_WS32=''
# TOR_OPENSSL_LIBS=''
# TOR_SYSTEMD_CFLAGS=''
# TOR_SYSTEMD_LIBS='-lsystemd'
# TOR_ZLIB_LIBS=''
# UNITTESTS_ENABLED_FALSE='#'
# UNITTESTS_ENABLED_TRUE=''
# USEPYTHON_FALSE=''
# USEPYTHON_TRUE=''
# USE_ASCIIDOC_FALSE=''
# USE_ASCIIDOC_TRUE=''
# USE_BUFFEREVENTS_FALSE=''
# USE_BUFFEREVENTS_TRUE=''
# USE_EXTERNAL_EVDNS_FALSE=''
# USE_EXTERNAL_EVDNS_TRUE=''
# USE_FW_HELPER_FALSE=''
# USE_FW_HELPER_TRUE=''
# USE_OPENBSD_MALLOC_FALSE=''
# USE_OPENBSD_MALLOC_TRUE='#'
# VERSION='0.2.7.6'
# ac_ct_CC=''
# am__EXEEXT_FALSE=''
# am__EXEEXT_TRUE=''
# am__fastdepCC_FALSE=''
# am__fastdepCC_TRUE=''
# am__include=''
# am__isrc=''
# am__leading_dot='.'
# am__nodep=''
# am__quote=''
# am__tar='$${TAR-tar} chof - "$$tardir"'
# am__untar='$${TAR-tar} 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='${SHELL} /tmp/tor/src/tor-0.2.7.6/install-sh'
# libdir='${exec_prefix}/lib'
# libexecdir='${exec_prefix}/libexec'
# localedir='${datarootdir}/locale'
# localstatedir='/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='/etc'
# target_alias=''
#
# ## ----------- ##
# ## confdefs.h. ##
# ## ----------- ##
#
# /* confdefs.h */
# #define PACKAGE_NAME "tor"
# #define PACKAGE_TARNAME "tor"
# #define PACKAGE_VERSION "0.2.7.6"
# #define PACKAGE_STRING "tor 0.2.7.6"
# #define PACKAGE_BUGREPORT ""
# #define PACKAGE_URL ""
# #define PACKAGE "tor"
# #define VERSION "0.2.7.6"
# #define HAVE_SYSTEMD 1
# #define HAVE_SYSTEMD_209 1
#
# configure: exit 1