Build of libzip with musl toolchain

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

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

SLOCLanguage
11,387 sh
11,093 ansic
852 perl
23,332 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: libzip 1.1.2-1 (Wed Apr 5 01:37:57 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 build system type... x86_64-unknown-linux-gnu
# checking host system type... x86_64-unknown-linux-gnu
# 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 style of include used by make... GNU
# checking dependency style of clang... gcc3
# checking for special C compiler options needed for large files... no
# checking for _FILE_OFFSET_BITS value needed for large files... no
# checking for main in -lz... no
# checking new ZLIB version... no
# configure: error: ZLIB version too old, please install at least v1.1.2
# ==> ERROR: A failure occurred in build().
# Aborting...

Printing config logfiles

CMD: config logfiles '/tmp/libzip/src/libzip-1.1.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 libzip configure 1.1.2, which was
# generated by GNU Autoconf 2.69. Invocation command line was
#
# $ ./configure --host=x86_64-unknown-linux --prefix=/usr
#
# ## --------- ##
# ## Platform. ##
# ## --------- ##
#
# hostname = a0f01736b823
# 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:2602: checking for a BSD-compatible install
# configure:2670: result: /usr/bin/install -c
# configure:2681: checking whether build environment is sane
# configure:2736: result: yes
# configure:2795: checking for x86_64-unknown-linux-strip
# configure:2825: result: no
# configure:2835: checking for strip
# configure:2851: found /sysroot/bin/strip
# configure:2862: result: strip
# configure:2887: checking for a thread-safe mkdir -p
# configure:2926: result: /usr/sbin/mkdir -p
# configure:2933: checking for gawk
# configure:2949: found /usr/sbin/gawk
# configure:2960: result: gawk
# configure:2971: checking whether make sets $(MAKE)
# configure:2993: result: yes
# configure:3022: checking whether make supports nested variables
# configure:3039: result: yes
# configure:3170: checking build system type
# configure:3184: result: x86_64-unknown-linux-gnu
# configure:3204: checking host system type
# configure:3217: result: x86_64-unknown-linux-gnu
# configure:3254: checking for x86_64-unknown-linux-gcc
# configure:3281: result: clang
# configure:3550: checking for C compiler version
# configure:3559: clang --version >&5
# clang version 3.8.1
# Target: x86_64-unknown-linux-gnu
# Thread model: posix
# InstalledDir: /
# configure:3570: $? = 0
# configure:3559: 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:3570: $? = 0
# configure:3559: clang -V >&5
# clang-3.8: error: argument to '-V' is missing (expected 1 value)
# clang-3.8: error: no input files
# configure:3570: $? = 1
# configure:3559: clang -qversion >&5
# clang-3.8: error: unknown argument: '-qversion'
# clang-3.8: error: no input files
# configure:3570: $? = 1
# configure:3590: checking whether the C compiler works
# configure:3612: clang conftest.c >&5
# configure:3616: $? = 0
# configure:3664: result: yes
# configure:3667: checking for C compiler default output file name
# configure:3669: result: a.out
# configure:3675: checking for suffix of executables
# configure:3682: clang -o conftest conftest.c >&5
# configure:3686: $? = 0
# configure:3708: result:
# configure:3730: checking whether we are cross compiling
# configure:3738: clang -o conftest conftest.c >&5
# configure:3742: $? = 0
# configure:3749: ./conftest
# ./conftest: error while loading shared libraries: /usr/lib/libc.so: invalid ELF header
# configure:3753: $? = 127
# configure:3768: result: yes
# configure:3773: checking for suffix of object files
# configure:3795: clang -c conftest.c >&5
# configure:3799: $? = 0
# configure:3820: result: o
# configure:3824: checking whether we are using the GNU C compiler
# configure:3843: clang -c conftest.c >&5
# configure:3843: $? = 0
# configure:3852: result: yes
# configure:3861: checking whether clang accepts -g
# configure:3881: clang -c -g conftest.c >&5
# configure:3881: $? = 0
# configure:3922: result: yes
# configure:3939: checking for clang option to accept ISO C89
# configure:4002: clang -c conftest.c >&5
# configure:4002: $? = 0
# configure:4015: result: none needed
# configure:4040: checking whether clang understands -c and -o together
# configure:4062: clang -c conftest.c -o conftest2.o
# configure:4065: $? = 0
# configure:4062: clang -c conftest.c -o conftest2.o
# configure:4065: $? = 0
# configure:4077: result: yes
# configure:4105: checking for style of include used by make
# configure:4133: result: GNU
# configure:4159: checking dependency style of clang
# configure:4270: result: gcc3
# configure:4293: checking for special C compiler options needed for large files
# configure:4338: result: no
# configure:4344: checking for _FILE_OFFSET_BITS value needed for large files
# configure:4369: clang -c conftest.c >&5
# configure:4369: $? = 0
# configure:4401: result: no
# configure:4513: checking for main in -lz
# configure:4532: clang -o conftest conftest.c -lz >&5
# /sysroot/bin/ld: error: cannot find -lz
# clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation)
# configure:4532: $? = 1
# configure: failed program was:
# | /* confdefs.h */
# | #define PACKAGE_NAME "libzip"
# | #define PACKAGE_TARNAME "libzip"
# | #define PACKAGE_VERSION "1.1.2"
# | #define PACKAGE_STRING "libzip 1.1.2"
# | #define PACKAGE_BUGREPORT "libzip@nih.at"
# | #define PACKAGE_URL ""
# | #define PACKAGE "libzip"
# | #define VERSION "1.1.2"
# | /* end confdefs.h. */
# |
# |
# | int
# | main ()
# | {
# | return main ();
# | ;
# | return 0;
# | }
# configure:4541: result: no
# configure:4552: checking new ZLIB version
# configure:4568: clang -c conftest.c >&5
# conftest.c:11:10: fatal error: 'zlib.h' file not found
# #include
# ^
# 1 error generated.
# configure:4568: $? = 1
# configure: failed program was:
# | /* confdefs.h */
# | #define PACKAGE_NAME "libzip"
# | #define PACKAGE_TARNAME "libzip"
# | #define PACKAGE_VERSION "1.1.2"
# | #define PACKAGE_STRING "libzip 1.1.2"
# | #define PACKAGE_BUGREPORT "libzip@nih.at"
# | #define PACKAGE_URL ""
# | #define PACKAGE "libzip"
# | #define VERSION "1.1.2"
# | /* end confdefs.h. */
# | #include
# | int
# | main ()
# | {
# | extern ZEXPORT int unzOpen (const char *path);
# | ;
# | return 0;
# | }
# configure:4575: result: no
# configure:4579: error: ZLIB version too old, please install at least v1.1.2
#
# ## ---------------- ##
# ## 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_z_main=no
# ac_cv_objext=o
# ac_cv_path_install='/usr/bin/install -c'
# ac_cv_path_mkdir=/usr/sbin/mkdir
# ac_cv_prog_AWK=gawk
# ac_cv_prog_CC=clang
# ac_cv_prog_ac_ct_STRIP=strip
# ac_cv_prog_cc_c89=
# ac_cv_prog_cc_g=yes
# ac_cv_prog_make_make_set=yes
# ac_cv_sys_file_offset_bits=no
# ac_cv_sys_largefile_CC=no
# am_cv_CC_dependencies_compiler_type=gcc3
# am_cv_make_support_nested_variables=yes
# am_cv_prog_cc_c_o=yes
# id_cv_lib_zlib_ok=no
#
# ## ----------------- ##
# ## Output variables. ##
# ## ----------------- ##
#
# ACLOCAL='${SHELL} /tmp/libzip/src/libzip-1.1.2/missing aclocal-1.15'
# AMDEPBACKSLASH='\'
# AMDEP_FALSE='#'
# AMDEP_TRUE=''
# AMTAR='$${TAR-tar}'
# AM_BACKSLASH='\'
# AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
# AM_DEFAULT_VERBOSITY='1'
# AM_V='$(V)'
# AR=''
# AUTOCONF='${SHELL} /tmp/libzip/src/libzip-1.1.2/missing autoconf'
# AUTOHEADER='${SHELL} /tmp/libzip/src/libzip-1.1.2/missing autoheader'
# AUTOMAKE='${SHELL} /tmp/libzip/src/libzip-1.1.2/missing automake-1.15'
# AWK='gawk'
# CC='clang'
# CCDEPMODE='depmode=gcc3'
# CFLAGS=''
# CFLAG_VISIBILITY=''
# CPP=''
# CPPFLAGS=''
# CYGPATH_W='echo'
# DEFS=''
# DEPDIR='.deps'
# DLLTOOL=''
# DSYMUTIL=''
# DUMPBIN=''
# ECHO_C=''
# ECHO_N='-n'
# ECHO_T=''
# EGREP=''
# EXEEXT=''
# FGREP=''
# GREP=''
# HAVE_VISIBILITY=''
# INSTALL_DATA='${INSTALL} -m 644'
# INSTALL_PROGRAM='${INSTALL}'
# INSTALL_SCRIPT='${INSTALL}'
# INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
# LD=''
# LDFLAGS=''
# LIBOBJS=''
# LIBS=''
# LIBTOOL=''
# LIPO=''
# LN_S=''
# LTLIBOBJS=''
# MAKEINFO='${SHELL} /tmp/libzip/src/libzip-1.1.2/missing makeinfo'
# MANFMT=''
# MANIFEST_TOOL=''
# MKDIR_P='/usr/sbin/mkdir -p'
# NM=''
# NMEDIT=''
# OBJDUMP=''
# OBJEXT='o'
# OTOOL64=''
# OTOOL=''
# PACKAGE='libzip'
# PACKAGE_BUGREPORT='libzip@nih.at'
# PACKAGE_NAME='libzip'
# PACKAGE_STRING='libzip 1.1.2'
# PACKAGE_TARNAME='libzip'
# PACKAGE_URL=''
# PACKAGE_VERSION='1.1.2'
# PATH_SEPARATOR=':'
# PKG_CONFIG_RPATH=''
# RANLIB=''
# SED=''
# SET_MAKE=''
# SHELL='/bin/sh'
# STRIP='strip'
# VERSION='1.1.2'
# ac_ct_AR=''
# ac_ct_CC=''
# ac_ct_DUMPBIN=''
# am__EXEEXT_FALSE=''
# am__EXEEXT_TRUE=''
# am__fastdepCC_FALSE='#'
# am__fastdepCC_TRUE=''
# am__include='include'
# am__isrc=''
# am__leading_dot='.'
# am__nodep='_no'
# 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/libzip/src/libzip-1.1.2/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_alias=''
#
# ## ----------- ##
# ## confdefs.h. ##
# ## ----------- ##
#
# /* confdefs.h */
# #define PACKAGE_NAME "libzip"
# #define PACKAGE_TARNAME "libzip"
# #define PACKAGE_VERSION "1.1.2"
# #define PACKAGE_STRING "libzip 1.1.2"
# #define PACKAGE_BUGREPORT "libzip@nih.at"
# #define PACKAGE_URL ""
# #define PACKAGE "libzip"
# #define VERSION "1.1.2"
#
# configure: exit 1