Build of firejail with musl toolchain

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

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

SLOCLanguage
22,131 ansic
5,548 exp
960 sh
429 makefile
29,068 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: firejail 0.9.40-1 (Tue Apr 4 23:05:05 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 for a BSD-compatible install... /usr/bin/install -c
# checking for x86_64-unknown-linux-ranlib... no
# checking for ranlib... ranlib
# configure: WARNING: using cross tools not prefixed with host triplet
# checking for main in -lpthread... yes
# checking how to run the C preprocessor... clang -E
# checking for grep that handles long lines and -e... /usr/sbin/grep
# checking for egrep... /usr/sbin/grep -E
# checking for ANSI C header files... yes
# checking for sys/types.h... yes
# checking for sys/stat.h... yes
# checking for stdlib.h... yes
# checking for string.h... yes
# checking for memory.h... yes
# checking for strings.h... yes
# checking for inttypes.h... yes
# checking for stdint.h... yes
# checking for unistd.h... yes
# checking pthread.h usability... yes
# checking pthread.h presence... yes
# checking for pthread.h... yes
# checking linux/seccomp.h usability... no
# checking linux/seccomp.h presence... no
# checking for linux/seccomp.h... no
# configure: creating ./config.status
# config.status: creating Makefile
# config.status: creating src/lib/Makefile
# config.status: creating src/firejail/Makefile
# config.status: creating src/firemon/Makefile
# config.status: creating src/libtrace/Makefile
# config.status: creating src/libtracelog/Makefile
# config.status: creating src/firecfg/Makefile
# config.status: creating src/ftee/Makefile
#
# Configuration options:
# prefix: /usr
# sysconfdir: /etc
# seccomp: -DHAVE_SECCOMP
# :
# chroot: -DHAVE_CHROOT
# bind: -DHAVE_BIND
# network: -DHAVE_NETWORK
# user namespace: -DHAVE_USERNS
# X11 sandboxing support: -DHAVE_X11
# file transfer support: -DHAVE_FILE_TRANSFER
# fatal warnings:
#
# make -C src/lib
# ./mkman.sh 0.9.40 src/man/firejail.txt firejail.1
# ./mkman.sh 0.9.40 src/man/firemon.txt firemon.1
# ./mkman.sh 0.9.40 src/man/firecfg.txt firecfg.1
# make[1]: Entering directory '/tmp/firejail/src/firejail-0.9.40/src/lib'
# clang -ggdb -O2 -DVERSION='"0.9.40"' -fstack-protector-all -D_FORTIFY_SOURCE=2 -fPIC -Wformat -Wformat-security -c common.c -o common.o
# ./mkman.sh 0.9.40 src/man/firejail-profile.txt firejail-profile.5
# clang -ggdb -O2 -DVERSION='"0.9.40"' -fstack-protector-all -D_FORTIFY_SOURCE=2 -fPIC -Wformat -Wformat-security -c libnetlink.c -o libnetlink.o
# clang -ggdb -O2 -DVERSION='"0.9.40"' -fstack-protector-all -D_FORTIFY_SOURCE=2 -fPIC -Wformat -Wformat-security -c pid.c -o pid.o
# ./mkman.sh 0.9.40 src/man/firejail-login.txt firejail-login.5
# In file included from libnetlink.c:42:
# ./../include/libnetlink.h:26:10: fatal error: 'asm/types.h' file not found
# #include
# ^
# ./mkman.sh 0.9.40 src/man/firejail-config.txt firejail-config.5
# 1 error generated.
# make[1]: *** [Makefile:16: libnetlink.o] Error 1
# make[1]: *** Waiting for unfinished jobs....
# make[1]: Leaving directory '/tmp/firejail/src/firejail-0.9.40/src/lib'
# make: *** [Makefile:21: src/lib] Error 2
# ==> ERROR: A failure occurred in build().
# Aborting...

Printing config logfiles

CMD: config logfiles '/tmp/firejail/src/firejail-0.9.40/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 firejail configure 0.9.40, which was
# generated by GNU Autoconf 2.69. Invocation command line was
#
# $ ./configure --host=x86_64-unknown-linux --prefix=/usr
#
# ## --------- ##
# ## Platform. ##
# ## --------- ##
#
# hostname = 5ca917ca7406
# 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:2068: checking for x86_64-unknown-linux-gcc
# configure:2095: result: clang
# configure:2364: checking for C compiler version
# configure:2373: clang --version >&5
# clang version 3.8.1
# Target: x86_64-unknown-linux-gnu
# Thread model: posix
# InstalledDir: /
# configure:2384: $? = 0
# configure:2373: 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:2384: $? = 0
# configure:2373: clang -V >&5
# clang-3.8: error: argument to '-V' is missing (expected 1 value)
# clang-3.8: error: no input files
# configure:2384: $? = 1
# configure:2373: clang -qversion >&5
# clang-3.8: error: unknown argument: '-qversion'
# clang-3.8: error: no input files
# configure:2384: $? = 1
# configure:2404: checking whether the C compiler works
# configure:2426: clang conftest.c >&5
# configure:2430: $? = 0
# configure:2478: result: yes
# configure:2481: checking for C compiler default output file name
# configure:2483: result: a.out
# configure:2489: checking for suffix of executables
# configure:2496: clang -o conftest conftest.c >&5
# configure:2500: $? = 0
# configure:2522: result:
# configure:2544: checking whether we are cross compiling
# configure:2552: clang -o conftest conftest.c >&5
# configure:2556: $? = 0
# configure:2563: ./conftest
# ./conftest: error while loading shared libraries: /usr/lib/libc.so: invalid ELF header
# configure:2567: $? = 127
# configure:2582: result: yes
# configure:2587: checking for suffix of object files
# configure:2609: clang -c conftest.c >&5
# configure:2613: $? = 0
# configure:2634: result: o
# configure:2638: checking whether we are using the GNU C compiler
# configure:2657: clang -c conftest.c >&5
# configure:2657: $? = 0
# configure:2666: result: yes
# configure:2675: checking whether clang accepts -g
# configure:2695: clang -c -g conftest.c >&5
# configure:2695: $? = 0
# configure:2736: result: yes
# configure:2753: checking for clang option to accept ISO C89
# configure:2816: clang -c conftest.c >&5
# configure:2816: $? = 0
# configure:2829: result: none needed
# configure:2893: checking for a BSD-compatible install
# configure:2961: result: /usr/bin/install -c
# configure:2975: checking for x86_64-unknown-linux-ranlib
# configure:3005: result: no
# configure:3015: checking for ranlib
# configure:3031: found /sysroot/bin/ranlib
# configure:3042: result: ranlib
# configure:3054: WARNING: using cross tools not prefixed with host triplet
# configure:3182: checking for main in -lpthread
# configure:3201: clang -o conftest conftest.c -lpthread >&5
# configure:3201: $? = 0
# configure:3210: result: yes
# configure:3228: checking how to run the C preprocessor
# configure:3259: clang -E conftest.c
# configure:3259: $? = 0
# configure:3273: clang -E conftest.c
# conftest.c:10:10: fatal error: 'ac_nonexistent.h' file not found
# #include
# ^
# 1 error generated.
# configure:3273: $? = 1
# configure: failed program was:
# | /* confdefs.h */
# | #define PACKAGE_NAME "firejail"
# | #define PACKAGE_TARNAME "firejail"
# | #define PACKAGE_VERSION "0.9.40"
# | #define PACKAGE_STRING "firejail 0.9.40"
# | #define PACKAGE_BUGREPORT "netblue30@yahoo.com"
# | #define PACKAGE_URL "http://firejail.wordpress.com"
# | #define HAVE_LIBPTHREAD 1
# | /* end confdefs.h. */
# | #include
# configure:3298: result: clang -E
# configure:3318: clang -E conftest.c
# configure:3318: $? = 0
# configure:3332: clang -E conftest.c
# conftest.c:10:10: fatal error: 'ac_nonexistent.h' file not found
# #include
# ^
# 1 error generated.
# configure:3332: $? = 1
# configure: failed program was:
# | /* confdefs.h */
# | #define PACKAGE_NAME "firejail"
# | #define PACKAGE_TARNAME "firejail"
# | #define PACKAGE_VERSION "0.9.40"
# | #define PACKAGE_STRING "firejail 0.9.40"
# | #define PACKAGE_BUGREPORT "netblue30@yahoo.com"
# | #define PACKAGE_URL "http://firejail.wordpress.com"
# | #define HAVE_LIBPTHREAD 1
# | /* end confdefs.h. */
# | #include
# configure:3361: checking for grep that handles long lines and -e
# configure:3419: result: /usr/sbin/grep
# configure:3424: checking for egrep
# configure:3486: result: /usr/sbin/grep -E
# configure:3491: checking for ANSI C header files
# configure:3511: clang -c conftest.c >&5
# configure:3511: $? = 0
# configure:3595: result: yes
# configure:3608: checking for sys/types.h
# configure:3608: clang -c conftest.c >&5
# configure:3608: $? = 0
# configure:3608: result: yes
# configure:3608: checking for sys/stat.h
# configure:3608: clang -c conftest.c >&5
# configure:3608: $? = 0
# configure:3608: result: yes
# configure:3608: checking for stdlib.h
# configure:3608: clang -c conftest.c >&5
# configure:3608: $? = 0
# configure:3608: result: yes
# configure:3608: checking for string.h
# configure:3608: clang -c conftest.c >&5
# configure:3608: $? = 0
# configure:3608: result: yes
# configure:3608: checking for memory.h
# configure:3608: clang -c conftest.c >&5
# configure:3608: $? = 0
# configure:3608: result: yes
# configure:3608: checking for strings.h
# configure:3608: clang -c conftest.c >&5
# configure:3608: $? = 0
# configure:3608: result: yes
# configure:3608: checking for inttypes.h
# configure:3608: clang -c conftest.c >&5
# configure:3608: $? = 0
# configure:3608: result: yes
# configure:3608: checking for stdint.h
# configure:3608: clang -c conftest.c >&5
# configure:3608: $? = 0
# configure:3608: result: yes
# configure:3608: checking for unistd.h
# configure:3608: clang -c conftest.c >&5
# configure:3608: $? = 0
# configure:3608: result: yes
# configure:3620: checking pthread.h usability
# configure:3620: clang -c conftest.c >&5
# configure:3620: $? = 0
# configure:3620: result: yes
# configure:3620: checking pthread.h presence
# configure:3620: clang -E conftest.c
# configure:3620: $? = 0
# configure:3620: result: yes
# configure:3620: checking for pthread.h
# configure:3620: result: yes
# configure:3628: checking linux/seccomp.h usability
# configure:3628: clang -c conftest.c >&5
# conftest.c:53:10: fatal error: 'linux/seccomp.h' file not found
# #include
# ^
# 1 error generated.
# configure:3628: $? = 1
# configure: failed program was:
# | /* confdefs.h */
# | #define PACKAGE_NAME "firejail"
# | #define PACKAGE_TARNAME "firejail"
# | #define PACKAGE_VERSION "0.9.40"
# | #define PACKAGE_STRING "firejail 0.9.40"
# | #define PACKAGE_BUGREPORT "netblue30@yahoo.com"
# | #define PACKAGE_URL "http://firejail.wordpress.com"
# | #define HAVE_LIBPTHREAD 1
# | #define STDC_HEADERS 1
# | #define HAVE_SYS_TYPES_H 1
# | #define HAVE_SYS_STAT_H 1
# | #define HAVE_STDLIB_H 1
# | #define HAVE_STRING_H 1
# | #define HAVE_MEMORY_H 1
# | #define HAVE_STRINGS_H 1
# | #define HAVE_INTTYPES_H 1
# | #define HAVE_STDINT_H 1
# | #define HAVE_UNISTD_H 1
# | /* end confdefs.h. */
# | #include
# | #ifdef HAVE_SYS_TYPES_H
# | # include
# | #endif
# | #ifdef HAVE_SYS_STAT_H
# | # include
# | #endif
# | #ifdef STDC_HEADERS
# | # include
# | # include
# | #else
# | # ifdef HAVE_STDLIB_H
# | # include
# | # endif
# | #endif
# | #ifdef HAVE_STRING_H
# | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
# | # include
# | # endif
# | # include
# | #endif
# | #ifdef HAVE_STRINGS_H
# | # include
# | #endif
# | #ifdef HAVE_INTTYPES_H
# | # include
# | #endif
# | #ifdef HAVE_STDINT_H
# | # include
# | #endif
# | #ifdef HAVE_UNISTD_H
# | # include
# | #endif
# | #include
# configure:3628: result: no
# configure:3628: checking linux/seccomp.h presence
# configure:3628: clang -E conftest.c
# conftest.c:20:10: fatal error: 'linux/seccomp.h' file not found
# #include
# ^
# 1 error generated.
# configure:3628: $? = 1
# configure: failed program was:
# | /* confdefs.h */
# | #define PACKAGE_NAME "firejail"
# | #define PACKAGE_TARNAME "firejail"
# | #define PACKAGE_VERSION "0.9.40"
# | #define PACKAGE_STRING "firejail 0.9.40"
# | #define PACKAGE_BUGREPORT "netblue30@yahoo.com"
# | #define PACKAGE_URL "http://firejail.wordpress.com"
# | #define HAVE_LIBPTHREAD 1
# | #define STDC_HEADERS 1
# | #define HAVE_SYS_TYPES_H 1
# | #define HAVE_SYS_STAT_H 1
# | #define HAVE_STDLIB_H 1
# | #define HAVE_STRING_H 1
# | #define HAVE_MEMORY_H 1
# | #define HAVE_STRINGS_H 1
# | #define HAVE_INTTYPES_H 1
# | #define HAVE_STDINT_H 1
# | #define HAVE_UNISTD_H 1
# | /* end confdefs.h. */
# | #include
# configure:3628: result: no
# configure:3628: checking for linux/seccomp.h
# configure:3628: result: no
# configure:3795: creating ./config.status
#
# ## ---------------------- ##
# ## Running config.status. ##
# ## ---------------------- ##
#
# This file was extended by firejail config.status 0.9.40, which was
# generated by GNU Autoconf 2.69. Invocation command line was
#
# CONFIG_FILES =
# CONFIG_HEADERS =
# CONFIG_LINKS =
# CONFIG_COMMANDS =
# $ ./config.status
#
# on 5ca917ca7406
#
# config.status:745: creating Makefile
# config.status:745: creating src/lib/Makefile
# config.status:745: creating src/firejail/Makefile
# config.status:745: creating src/firemon/Makefile
# config.status:745: creating src/libtrace/Makefile
# config.status:745: creating src/libtracelog/Makefile
# config.status:745: creating src/firecfg/Makefile
# config.status:745: creating src/ftee/Makefile
#
# ## ---------------- ##
# ## Cache variables. ##
# ## ---------------- ##
#
# 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_header_inttypes_h=yes
# ac_cv_header_linux_seccomp_h=no
# ac_cv_header_memory_h=yes
# ac_cv_header_pthread_h=yes
# ac_cv_header_stdc=yes
# ac_cv_header_stdint_h=yes
# ac_cv_header_stdlib_h=yes
# ac_cv_header_string_h=yes
# ac_cv_header_strings_h=yes
# ac_cv_header_sys_stat_h=yes
# ac_cv_header_sys_types_h=yes
# ac_cv_header_unistd_h=yes
# ac_cv_lib_pthread_main=yes
# ac_cv_objext=o
# ac_cv_path_EGREP='/usr/sbin/grep -E'
# ac_cv_path_GREP=/usr/sbin/grep
# ac_cv_path_install='/usr/bin/install -c'
# ac_cv_prog_CC=clang
# ac_cv_prog_CPP='clang -E'
# ac_cv_prog_ac_ct_RANLIB=ranlib
# ac_cv_prog_cc_c89=
# ac_cv_prog_cc_g=yes
#
# ## ----------------- ##
# ## Output variables. ##
# ## ----------------- ##
#
# CC='clang'
# CFLAGS=''
# CPP='clang -E'
# CPPFLAGS=''
# DEFS='-DPACKAGE_NAME=\"firejail\" -DPACKAGE_TARNAME=\"firejail\" -DPACKAGE_VERSION=\"0.9.40\" -DPACKAGE_STRING=\"firejail\ 0.9.40\" -DPACKAGE_BUGREPORT=\"netblue30@yahoo.com\" -DPACKAGE_URL=\"http://firejail.wordpress.com\" -DHAVE_LIBPTHREAD=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1'
# ECHO_C=''
# ECHO_N='-n'
# ECHO_T=''
# EGREP='/usr/sbin/grep -E'
# EXEEXT=''
# GREP='/usr/sbin/grep'
# HAVE_BIND='-DHAVE_BIND'
# HAVE_CHROOT='-DHAVE_CHROOT'
# HAVE_FATAL_WARNINGS=''
# HAVE_FILE_TRANSFER='-DHAVE_FILE_TRANSFER'
# HAVE_NETWORK='-DHAVE_NETWORK'
# HAVE_SECCOMP='-DHAVE_SECCOMP'
# HAVE_SECCOMP_H=''
# HAVE_USERNS='-DHAVE_USERNS'
# HAVE_X11='-DHAVE_X11'
# INSTALL_DATA='${INSTALL} -m 644'
# INSTALL_PROGRAM='${INSTALL}'
# INSTALL_SCRIPT='${INSTALL}'
# LDFLAGS=''
# LIBOBJS=''
# LIBS='-lpthread '
# LTLIBOBJS=''
# OBJEXT='o'
# PACKAGE_BUGREPORT='netblue30@yahoo.com'
# PACKAGE_NAME='firejail'
# PACKAGE_STRING='firejail 0.9.40'
# PACKAGE_TARNAME='firejail'
# PACKAGE_URL='http://firejail.wordpress.com'
# PACKAGE_VERSION='0.9.40'
# PATH_SEPARATOR=':'
# RANLIB='ranlib'
# SHELL='/bin/sh'
# ac_ct_CC=''
# bindir='${exec_prefix}/bin'
# build_alias=''
# datadir='${datarootdir}'
# datarootdir='${prefix}/share'
# docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
# dvidir='${docdir}'
# exec_prefix='${prefix}'
# host_alias='x86_64-unknown-linux'
# 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='/etc'
# target_alias=''
#
# ## ----------- ##
# ## confdefs.h. ##
# ## ----------- ##
#
# /* confdefs.h */
# #define PACKAGE_NAME "firejail"
# #define PACKAGE_TARNAME "firejail"
# #define PACKAGE_VERSION "0.9.40"
# #define PACKAGE_STRING "firejail 0.9.40"
# #define PACKAGE_BUGREPORT "netblue30@yahoo.com"
# #define PACKAGE_URL "http://firejail.wordpress.com"
# #define HAVE_LIBPTHREAD 1
# #define STDC_HEADERS 1
# #define HAVE_SYS_TYPES_H 1
# #define HAVE_SYS_STAT_H 1
# #define HAVE_STDLIB_H 1
# #define HAVE_STRING_H 1
# #define HAVE_MEMORY_H 1
# #define HAVE_STRINGS_H 1
# #define HAVE_INTTYPES_H 1
# #define HAVE_STDINT_H 1
# #define HAVE_UNISTD_H 1
#
# configure: exit 0