Build of nettle with musl toolchain

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

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

SLOCLanguage
49,246 ansic
11,887 asm
3,633 sh
71 cpp
7 awk
64,844 total

The process tree of the build process is here.

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

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: nettle 3.2-2 (Wed Apr 5 00:57:34 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 for -R flag... using -Wl,-rpath,
# Searching for libraries
# checking /usr/lib... added
# checking /usr/local/lib... added
# checking /sw/local/lib... not found
# checking /sw/lib... not found
# checking /usr/gnu/lib... not found
# checking /opt/gnu/lib... not found
# checking /sw/gnu/lib... not found
# checking /usr/freeware/lib... not found
# checking /usr/pkg/lib... not found
# 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 for ifunc support... no
# checking whether we are using the GNU C++ compiler... yes
# checking whether clang++ accepts -g... yes
# checking if LD -Wl,--version-script works... yes
# checking whether make sets $(MAKE)... yes
# checking for x86_64-unknown-linux-ranlib... no
# checking for ranlib... ranlib
# configure: WARNING: using cross tools not prefixed with host triplet
# checking for x86_64-unknown-linux-nm... no
# checking for nm... nm
# checking for x86_64-unknown-linux-objdump... no
# checking for objdump... objdump
# checking for x86_64-unknown-linux-ar... no
# checking for ar... ar
# checking for a BSD-compatible install... /usr/bin/install -c
# checking for a thread-safe mkdir -p... /usr/sbin/mkdir -p
# checking whether ln -s works... yes
# checking build system compiler gcc... no
# checking build system compiler cc... no
# checking build system compiler c89... no
# checking build system compiler c99... no
# configure: error: Cannot find a build system compiler
# ==> ERROR: A failure occurred in build().
# Aborting...

Printing config logfiles

CMD: config logfiles '/tmp/nettle/src/nettle-3.2/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 nettle configure 3.2, which was
# generated by GNU Autoconf 2.69. Invocation command line was
#
# $ ./configure --host=x86_64-unknown-linux --prefix=/usr --disable-static
#
# ## --------- ##
# ## Platform. ##
# ## --------- ##
#
# hostname = 8bcfbc2f8934
# 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:2505: checking build system type
# configure:2519: result: x86_64-unknown-linux-gnu
# configure:2539: checking host system type
# configure:2552: result: x86_64-unknown-linux-gnu
# configure:2706: checking for -R flag
# configure:2728: result: using -Wl,-rpath,
# configure:2735: result: Searching for libraries
# configure:2742: checking /usr/lib
# configure:2760: result: added
# configure:2742: checking /usr/local/lib
# configure:2760: result: added
# configure:2742: checking /sw/local/lib
# configure:2769: result: not found
# configure:2742: checking /sw/lib
# configure:2769: result: not found
# configure:2742: checking /usr/gnu/lib
# configure:2769: result: not found
# configure:2742: checking /opt/gnu/lib
# configure:2769: result: not found
# configure:2742: checking /sw/gnu/lib
# configure:2769: result: not found
# configure:2742: checking /usr/freeware/lib
# configure:2769: result: not found
# configure:2742: checking /usr/pkg/lib
# configure:2769: result: not found
# configure:2785: checking for x86_64-unknown-linux-gcc
# configure:2812: result: clang
# configure:3081: checking for C compiler version
# configure:3090: clang --version >&5
# clang version 3.8.1
# Target: x86_64-unknown-linux-gnu
# Thread model: posix
# InstalledDir: /
# configure:3101: $? = 0
# configure:3090: 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:3101: $? = 0
# configure:3090: clang -V >&5
# clang-3.8: error: argument to '-V' is missing (expected 1 value)
# clang-3.8: error: no input files
# configure:3101: $? = 1
# configure:3090: clang -qversion >&5
# clang-3.8: error: unknown argument: '-qversion'
# clang-3.8: error: no input files
# configure:3101: $? = 1
# configure:3121: checking whether the C compiler works
# configure:3143: clang conftest.c >&5
# configure:3147: $? = 0
# configure:3195: result: yes
# configure:3198: checking for C compiler default output file name
# configure:3200: result: a.out
# configure:3206: checking for suffix of executables
# configure:3213: clang -o conftest conftest.c >&5
# configure:3217: $? = 0
# configure:3239: result:
# configure:3261: checking whether we are cross compiling
# configure:3269: clang -o conftest conftest.c >&5
# configure:3273: $? = 0
# configure:3280: ./conftest
# ./conftest: error while loading shared libraries: /usr/lib/libc.so: invalid ELF header
# configure:3284: $? = 127
# configure:3299: result: yes
# configure:3304: checking for suffix of object files
# configure:3326: clang -c conftest.c >&5
# configure:3330: $? = 0
# configure:3351: result: o
# configure:3355: checking whether we are using the GNU C compiler
# configure:3374: clang -c conftest.c >&5
# configure:3374: $? = 0
# configure:3383: result: yes
# configure:3392: checking whether clang accepts -g
# configure:3412: clang -c -g conftest.c >&5
# configure:3412: $? = 0
# configure:3453: result: yes
# configure:3470: checking for clang option to accept ISO C89
# configure:3533: clang -c conftest.c >&5
# configure:3533: $? = 0
# configure:3546: result: none needed
# configure:3568: checking for ifunc support
# configure:3650: clang -o conftest conftest.c >&5
# conftest.c:24:33: warning: unknown attribute 'ifunc' ignored [-Wunknown-attributes]
# int foo (int x) __attribute__ ((ifunc("foo_resolv")));
# ^
# 1 warning generated.
# /tmp/conftest-4c6345.o:conftest.c:function main: error: undefined reference to 'foo'
# clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation)
# configure:3650: $? = 1
# configure: failed program was:
# | /* confdefs.h */
# | #define PACKAGE_NAME "nettle"
# | #define PACKAGE_TARNAME "nettle"
# | #define PACKAGE_VERSION "3.2"
# | #define PACKAGE_STRING "nettle 3.2"
# | #define PACKAGE_BUGREPORT "nettle-bugs@lists.lysator.liu.se"
# | #define PACKAGE_URL ""
# | /* end confdefs.h. */
# |
# | static int
# | foo_imp(int x)
# | {
# | return 1;
# | }
# |
# | typedef void void_func (void);
# |
# | static void_func *
# | foo_resolv(void)
# | {
# | return (void_func *) foo_imp;
# | }
# |
# | int foo (int x) __attribute__ ((ifunc("foo_resolv")));
# |
# | int
# | main ()
# | {
# |
# | return foo(0);
# |
# |
# | ;
# | return 0;
# | }
# configure:3658: result: no
# configure:3796: checking for C++ compiler version
# configure:3805: clang++ --version >&5
# clang version 3.8.1
# Target: x86_64-unknown-linux-gnu
# Thread model: posix
# InstalledDir: /
# configure:3816: $? = 0
# configure:3805: 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:3816: $? = 0
# configure:3805: clang++ -V >&5
# clang-3.8: error: argument to '-V' is missing (expected 1 value)
# clang-3.8: error: no input files
# configure:3816: $? = 1
# configure:3805: clang++ -qversion >&5
# clang-3.8: error: unknown argument: '-qversion'
# clang-3.8: error: no input files
# configure:3816: $? = 1
# configure:3820: checking whether we are using the GNU C++ compiler
# configure:3839: clang++ -c conftest.cpp >&5
# configure:3839: $? = 0
# configure:3848: result: yes
# configure:3857: checking whether clang++ accepts -g
# configure:3877: clang++ -c -g conftest.cpp >&5
# configure:3877: $? = 0
# configure:3918: result: yes
# configure:3960: clang++ -c conftest.cpp >&5
# configure:3960: $? = 0
# configure:3981: checking if LD -Wl,--version-script works
# configure:3999: clang -o conftest -Wl,--version-script=conftest.map conftest.c >&5
# /sysroot/bin/ld: error: conftest.map:2:1: syntax error, unexpected $end, expecting '{'
# /sysroot/bin/ld: fatal error: unable to parse version script file conftest.map
# clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation)
# configure:3999: $? = 1
# configure: failed program was:
# | /* confdefs.h */
# | #define PACKAGE_NAME "nettle"
# | #define PACKAGE_TARNAME "nettle"
# | #define PACKAGE_VERSION "3.2"
# | #define PACKAGE_STRING "nettle 3.2"
# | #define PACKAGE_BUGREPORT "nettle-bugs@lists.lysator.liu.se"
# | #define PACKAGE_URL ""
# | /* end confdefs.h. */
# |
# | int
# | main ()
# | {
# |
# | ;
# | return 0;
# | }
# configure:4027: clang -o conftest -Wl,--version-script=conftest.map conftest.c >&5
# configure:4027: $? = 0
# configure:4039: result: yes
# configure:4050: checking whether make sets $(MAKE)
# configure:4072: result: yes
# configure:4084: checking for x86_64-unknown-linux-ranlib
# configure:4114: result: no
# configure:4124: checking for ranlib
# configure:4140: found /sysroot/bin/ranlib
# configure:4151: result: ranlib
# configure:4163: WARNING: using cross tools not prefixed with host triplet
# configure:4176: checking for x86_64-unknown-linux-nm
# configure:4206: result: no
# configure:4216: checking for nm
# configure:4232: found /sysroot/bin/nm
# configure:4243: result: nm
# configure:4269: checking for x86_64-unknown-linux-objdump
# configure:4299: result: no
# configure:4309: checking for objdump
# configure:4325: found /sysroot/bin/objdump
# configure:4336: result: objdump
# configure:4361: checking for x86_64-unknown-linux-ar
# configure:4391: result: no
# configure:4401: checking for ar
# configure:4417: found /sysroot/bin/ar
# configure:4428: result: ar
# configure:4469: checking for a BSD-compatible install
# configure:4537: result: /usr/bin/install -c
# configure:4551: checking for a thread-safe mkdir -p
# configure:4590: result: /usr/sbin/mkdir -p
# configure:4594: checking whether ln -s works
# configure:4598: result: yes
# configure:4677: checking build system compiler gcc
# configure:4690: gcc conftest.c
# conftest.c:4:3: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration]
# exit(0);
# ^
# conftest.c:4:3: note: include the header or explicitly provide a declaration for 'exit'
# 1 warning generated.
# configure:4693: $? = 0
# ./a.out: error while loading shared libraries: /usr/lib/libc.so: invalid ELF header
# ./configure: line 4695: ./b.out: No such file or directory
# ./configure: line 4695: ./a.exe: No such file or directory
# ./configure: line 4695: ./a_out.exe: No such file or directory
# ./configure: line 4695: ./conftest: No such file or directory
# configure:4700: result: no
# configure:4677: checking build system compiler cc
# configure:4690: cc conftest.c
# conftest.c:4:3: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration]
# exit(0);
# ^
# conftest.c:4:3: note: include the header or explicitly provide a declaration for 'exit'
# 1 warning generated.
# configure:4693: $? = 0
# ./a.out: error while loading shared libraries: /usr/lib/libc.so: invalid ELF header
# ./configure: line 4695: ./b.out: No such file or directory
# ./configure: line 4695: ./a.exe: No such file or directory
# ./configure: line 4695: ./a_out.exe: No such file or directory
# ./configure: line 4695: ./conftest: No such file or directory
# configure:4700: result: no
# configure:4677: checking build system compiler c89
# configure:4690: c89 conftest.c
# conftest.c:4:3: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration]
# exit(0);
# ^
# conftest.c:4:3: note: include the header or explicitly provide a declaration for 'exit'
# 1 warning generated.
# configure:4693: $? = 0
# ./a.out: error while loading shared libraries: /usr/lib/libc.so: invalid ELF header
# ./configure: line 4695: ./b.out: No such file or directory
# ./configure: line 4695: ./a.exe: No such file or directory
# ./configure: line 4695: ./a_out.exe: No such file or directory
# ./configure: line 4695: ./conftest: No such file or directory
# configure:4700: result: no
# configure:4677: checking build system compiler c99
# configure:4690: c99 conftest.c
# conftest.c:4:3: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration]
# exit(0);
# ^
# conftest.c:4:3: note: include the header or explicitly provide a declaration for 'exit'
# 1 warning generated.
# configure:4693: $? = 0
# ./a.out: error while loading shared libraries: /usr/lib/libc.so: invalid ELF header
# ./configure: line 4695: ./b.out: No such file or directory
# ./configure: line 4695: ./a.exe: No such file or directory
# ./configure: line 4695: ./a_out.exe: No such file or directory
# ./configure: line 4695: ./conftest: No such file or directory
# configure:4700: result: no
# configure:4711: error: Cannot find a build system compiler
#
# ## ---------------- ##
# ## Cache variables. ##
# ## ---------------- ##
#
# ac_cv_build=x86_64-unknown-linux-gnu
# ac_cv_c_compiler_gnu=yes
# ac_cv_cxx_compiler_gnu=yes
# ac_cv_env_CCC_set=
# ac_cv_env_CCC_value=
# ac_cv_env_CC_FOR_BUILD_set=
# ac_cv_env_CC_FOR_BUILD_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_CPPFLAGS_set=set
# ac_cv_env_CPPFLAGS_value=
# ac_cv_env_CPP_set=
# ac_cv_env_CPP_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_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_objext=o
# ac_cv_path_install='/usr/bin/install -c'
# ac_cv_path_mkdir=/usr/sbin/mkdir
# ac_cv_prog_CC=clang
# ac_cv_prog_ac_ct_AR=ar
# ac_cv_prog_ac_ct_NM=nm
# ac_cv_prog_ac_ct_OBJDUMP=objdump
# ac_cv_prog_ac_ct_RANLIB=ranlib
# ac_cv_prog_cc_c89=
# ac_cv_prog_cc_g=yes
# ac_cv_prog_cxx_g=yes
# ac_cv_prog_make_make_set=yes
# nettle_cv_link_ifunc=no
#
# ## ----------------- ##
# ## Output variables. ##
# ## ----------------- ##
#
# ALLOCA=''
# AR='ar'
# ASM_ALIGN_LOG=''
# ASM_COFF_STYLE=''
# ASM_ELF_STYLE=''
# ASM_MARK_NOEXEC_STACK=''
# ASM_RODATA=''
# ASM_SYMBOL_PREFIX=''
# ASM_TYPE_FUNCTION=''
# ASM_TYPE_PROGBITS=''
# BENCH_LIBS=''
# CC='clang'
# CCPIC=''
# CC_FOR_BUILD=''
# CFLAGS=''
# CPP=''
# CPPFLAGS=''
# CXX='clang++'
# CXXFLAGS=''
# DEFS=''
# DEP_FLAGS=''
# DEP_INCLUDE=''
# DEP_PROCESS=''
# ECHO_C=''
# ECHO_N='-n'
# ECHO_T=''
# EGREP=''
# EMULATOR=''
# EXEEXT=''
# EXEEXT_FOR_BUILD=''
# EXTRA_HOGWEED_LINKER_FLAGS='-Wl,--version-script=libhogweed.map'
# EXTRA_LINKER_FLAGS='-Wl,--version-script=libnettle.map'
# GMP_NUMB_BITS=''
# GREP=''
# HOGWEED_EXTRA_SYMBOLS=''
# IF_ASM=''
# IF_CXX=''
# IF_DLL=''
# IF_DLOPEN_TEST=''
# IF_DOCUMENTATION=''
# IF_HOGWEED=''
# IF_MINI_GMP=''
# IF_NOT_SHARED=''
# IF_SHARED=''
# IF_STATIC=''
# INSTALL_DATA='${INSTALL} -m 644'
# INSTALL_PROGRAM='${INSTALL}'
# INSTALL_SCRIPT='${INSTALL}'
# LDFLAGS=''
# LIBHOGWEED_FILE=''
# LIBHOGWEED_FILE_SRC=''
# LIBHOGWEED_FORLINK=''
# LIBHOGWEED_LIBS=''
# LIBHOGWEED_LINK=''
# LIBHOGWEED_MAJOR='4'
# LIBHOGWEED_MINOR='2'
# LIBHOGWEED_SONAME=''
# LIBNETTLE_FILE=''
# LIBNETTLE_FILE_SRC=''
# LIBNETTLE_FORLINK=''
# LIBNETTLE_LIBS=''
# LIBNETTLE_LINK=''
# LIBNETTLE_MAJOR='6'
# LIBNETTLE_MINOR='2'
# LIBNETTLE_SONAME=''
# LIBOBJS=''
# LIBS=''
# LN_S='ln -s'
# LTLIBOBJS=''
# M4=''
# MAJOR_VERSION='3'
# MAKEINFO=''
# MINOR_VERSION='2'
# MKDIR_P='/usr/sbin/mkdir -p'
# NETTLE_USE_MINI_GMP='0'
# NM='nm'
# OBJDUMP='objdump'
# OBJEXT='o'
# OPENSSL_LIBFLAGS=''
# OPT_HOGWEED_OBJS=''
# OPT_NETTLE_OBJS=''
# OPT_NETTLE_SOURCES=''
# PACKAGE_BUGREPORT='nettle-bugs@lists.lysator.liu.se'
# PACKAGE_NAME='nettle'
# PACKAGE_STRING='nettle 3.2'
# PACKAGE_TARNAME='nettle'
# PACKAGE_URL=''
# PACKAGE_VERSION='3.2'
# PATH_SEPARATOR=':'
# RANLIB='ranlib'
# SET_MAKE=''
# SHELL='/bin/sh'
# W64_ABI=''
# ac_ct_CC=''
# ac_ct_CXX=''
# 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='${exec_prefix}/sbin'
# sharedstatedir='${prefix}/com'
# sysconfdir='${prefix}/etc'
# target_alias=''
#
# ## ----------- ##
# ## confdefs.h. ##
# ## ----------- ##
#
# /* confdefs.h */
# #define PACKAGE_NAME "nettle"
# #define PACKAGE_TARNAME "nettle"
# #define PACKAGE_VERSION "3.2"
# #define PACKAGE_STRING "nettle 3.2"
# #define PACKAGE_BUGREPORT "nettle-bugs@lists.lysator.liu.se"
# #define PACKAGE_URL ""
#
# configure: exit 1