Build of bird with musl toolchain

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

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

SLOCLanguage
41,073 ansic
3,015 sh
2,083 perl
700 lex
108 makefile
13 sed
46,992 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: bird 1.6.0-1 (Wed Apr 5 00:54:21 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 library containing clock_gettime... none required
# 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... (cached) clang
# checking whether we are using the GNU C compiler... (cached) yes
# checking whether clang accepts -g... (cached) yes
# checking for clang option to accept ISO C89... (cached) none needed
# checking whether POSIX threads are available... yes
# checking CFLAGS... -pthread
# checking how to run the C preprocessor... clang -E
# 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 flex... flex
# checking for bison... bison
# checking for gm4... no
# checking for m4... m4
# checking which OS configuration should we use... ../sysdep/cf/linux.h
# checking system-dependent directories... sysdep/linux sysdep/unix lib
# checking protocols... ok
# checking for linux/rtnetlink.h... no
# configure: error: Appropriate version of Linux kernel headers not found.
# ==> ERROR: A failure occurred in build().
# Aborting...

Printing config logfiles

CMD: config logfiles '/tmp/bird/src/bird-1.6.0/_build4/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 configure, which was
# generated by GNU Autoconf 2.69. Invocation command line was
#
# $ ../configure --host=x86_64-unknown-linux --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc --localstatedir=/var --docdir=/usr/share/doc/bird
#
# ## --------- ##
# ## Platform. ##
# ## --------- ##
#
# hostname = 551b93652a56
# 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:2427: checking for x86_64-unknown-linux-gcc
# configure:2454: result: clang
# configure:2723: checking for C compiler version
# configure:2732: clang --version >&5
# clang version 3.8.1
# Target: x86_64-unknown-linux-gnu
# Thread model: posix
# InstalledDir: /
# configure:2743: $? = 0
# configure:2732: 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:2743: $? = 0
# configure:2732: clang -V >&5
# clang-3.8: error: argument to '-V' is missing (expected 1 value)
# clang-3.8: error: no input files
# configure:2743: $? = 1
# configure:2732: clang -qversion >&5
# clang-3.8: error: unknown argument: '-qversion'
# clang-3.8: error: no input files
# configure:2743: $? = 1
# configure:2763: checking whether the C compiler works
# configure:2785: clang conftest.c >&5
# configure:2789: $? = 0
# configure:2837: result: yes
# configure:2840: checking for C compiler default output file name
# configure:2842: result: a.out
# configure:2848: checking for suffix of executables
# configure:2855: clang -o conftest conftest.c >&5
# configure:2859: $? = 0
# configure:2881: result:
# configure:2903: checking whether we are cross compiling
# configure:2911: clang -o conftest conftest.c >&5
# configure:2915: $? = 0
# configure:2922: ./conftest
# ./conftest: error while loading shared libraries: /usr/lib/libc.so: invalid ELF header
# configure:2926: $? = 127
# configure:2941: result: yes
# configure:2946: checking for suffix of object files
# configure:2968: clang -c conftest.c >&5
# configure:2972: $? = 0
# configure:2993: result: o
# configure:2997: checking whether we are using the GNU C compiler
# configure:3016: clang -c conftest.c >&5
# configure:3016: $? = 0
# configure:3025: result: yes
# configure:3034: checking whether clang accepts -g
# configure:3054: clang -c -g conftest.c >&5
# configure:3054: $? = 0
# configure:3095: result: yes
# configure:3112: checking for clang option to accept ISO C89
# configure:3175: clang -c conftest.c >&5
# configure:3175: $? = 0
# configure:3188: result: none needed
# configure:3209: checking for library containing clock_gettime
# configure:3240: clang -o conftest conftest.c >&5
# configure:3240: $? = 0
# configure:3257: result: none required
# configure:3272: checking build system type
# configure:3286: result: x86_64-unknown-linux-gnu
# configure:3306: checking host system type
# configure:3319: result: x86_64-unknown-linux-gnu
# configure:3353: checking for x86_64-unknown-linux-gcc
# configure:3380: result: clang
# configure:3649: checking for C compiler version
# configure:3658: clang --version >&5
# clang version 3.8.1
# Target: x86_64-unknown-linux-gnu
# Thread model: posix
# InstalledDir: /
# configure:3669: $? = 0
# configure:3658: 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:3669: $? = 0
# configure:3658: clang -V >&5
# clang-3.8: error: argument to '-V' is missing (expected 1 value)
# clang-3.8: error: no input files
# configure:3669: $? = 1
# configure:3658: clang -qversion >&5
# clang-3.8: error: unknown argument: '-qversion'
# clang-3.8: error: no input files
# configure:3669: $? = 1
# configure:3673: checking whether we are using the GNU C compiler
# configure:3701: result: yes
# configure:3710: checking whether clang accepts -g
# configure:3771: result: yes
# configure:3788: checking for clang option to accept ISO C89
# configure:3864: result: none needed
# configure:3901: checking whether POSIX threads are available
# configure:3917: clang -o conftest -pthread conftest.c >&5
# configure:3917: $? = 0
# configure:3925: result: yes
# configure:4061: checking CFLAGS
# configure:4063: result: -pthread
# configure:4072: checking how to run the C preprocessor
# configure:4103: clang -E conftest.c
# configure:4103: $? = 0
# configure:4117: clang -E conftest.c
# conftest.c:10:10: fatal error: 'ac_nonexistent.h' file not found
# #include
# ^
# 1 error generated.
# configure:4117: $? = 1
# configure: failed program was:
# | /* confdefs.h */
# | #define PACKAGE_NAME ""
# | #define PACKAGE_TARNAME ""
# | #define PACKAGE_VERSION ""
# | #define PACKAGE_STRING ""
# | #define PACKAGE_BUGREPORT ""
# | #define PACKAGE_URL ""
# | #define USE_PTHREADS 1
# | /* end confdefs.h. */
# | #include
# configure:4142: result: clang -E
# configure:4162: clang -E conftest.c
# configure:4162: $? = 0
# configure:4176: clang -E conftest.c
# conftest.c:10:10: fatal error: 'ac_nonexistent.h' file not found
# #include
# ^
# 1 error generated.
# configure:4176: $? = 1
# configure: failed program was:
# | /* confdefs.h */
# | #define PACKAGE_NAME ""
# | #define PACKAGE_TARNAME ""
# | #define PACKAGE_VERSION ""
# | #define PACKAGE_STRING ""
# | #define PACKAGE_BUGREPORT ""
# | #define PACKAGE_URL ""
# | #define USE_PTHREADS 1
# | /* end confdefs.h. */
# | #include
# configure:4218: checking for a BSD-compatible install
# configure:4286: result: /usr/bin/install -c
# configure:4300: checking for x86_64-unknown-linux-ranlib
# configure:4330: result: no
# configure:4340: checking for ranlib
# configure:4356: found /sysroot/bin/ranlib
# configure:4367: result: ranlib
# configure:4379: WARNING: using cross tools not prefixed with host triplet
# configure:4391: checking for flex
# configure:4407: found /usr/sbin/flex
# configure:4418: result: flex
# configure:4428: checking for bison
# configure:4444: found /usr/sbin/bison
# configure:4455: result: bison
# configure:4467: checking for gm4
# configure:4497: result: no
# configure:4467: checking for m4
# configure:4483: found /usr/sbin/m4
# configure:4494: result: m4
# configure:4566: checking which OS configuration should we use
# configure:4568: result: ../sysdep/cf/linux.h
# configure:4579: checking system-dependent directories
# configure:4582: result: sysdep/linux sysdep/unix lib
# configure:4605: checking protocols
# configure:4620: result: ok
# configure:4626: checking for linux/rtnetlink.h
# configure:4626: clang -c -pthread conftest.c >&5
# conftest.c:18:10: fatal error: 'asm/types.h' file not found
# #include
# ^
# 1 error generated.
# configure:4626: $? = 1
# configure: failed program was:
# | /* confdefs.h */
# | #define PACKAGE_NAME ""
# | #define PACKAGE_TARNAME ""
# | #define PACKAGE_VERSION ""
# | #define PACKAGE_STRING ""
# | #define PACKAGE_BUGREPORT ""
# | #define PACKAGE_URL ""
# | #define USE_PTHREADS 1
# | #define SYSCONF_INCLUDE "../sysdep/cf/linux.h"
# | #define CONFIG_BFD 1
# | #define CONFIG_BGP 1
# | #define CONFIG_OSPF 1
# | #define CONFIG_PIPE 1
# | #define CONFIG_RIP 1
# | #define CONFIG_STATIC 1
# | /* end confdefs.h. */
# |
# | #include
# | #include
# |
# |
# | #include
# configure:4626: result: no
# configure:4634: error: Appropriate version of Linux kernel headers not found.
#
# ## ---------------- ##
# ## Cache variables. ##
# ## ---------------- ##
#
# ac_cv_build=x86_64-unknown-linux-gnu
# ac_cv_c_compiler_gnu=yes
# ac_cv_env_BISON_set=
# ac_cv_env_BISON_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_FLEX_set=
# ac_cv_env_FLEX_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_M4_set=
# ac_cv_env_M4_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_linux_rtnetlink_h=no
# ac_cv_host=x86_64-unknown-linux-gnu
# ac_cv_objext=o
# ac_cv_path_install='/usr/bin/install -c'
# ac_cv_prog_BISON=bison
# ac_cv_prog_CC=clang
# ac_cv_prog_CPP='clang -E'
# ac_cv_prog_FLEX=flex
# ac_cv_prog_M4=m4
# ac_cv_prog_ac_ct_RANLIB=ranlib
# ac_cv_prog_cc_c89=
# ac_cv_prog_cc_g=yes
# ac_cv_search_clock_gettime='none required'
# bird_cv_lib_pthreads=yes
#
# ## ----------------- ##
# ## Output variables. ##
# ## ----------------- ##
#
# BISON='bison'
# CC='clang'
# CFLAGS=' -pthread'
# CLIENT=''
# CLIENT_LIBS=''
# CONFIG_FILE='$(sysconfdir)/bird.conf'
# CONTROL_SOCKET='$(localstatedir)/run/bird.ctl'
# CPP='clang -E'
# CPPFLAGS=''
# DEFS=''
# ECHO_C=''
# ECHO_N='-n'
# ECHO_T=''
# EGREP=''
# EXEEXT=''
# FLEX='flex'
# GREP=''
# INSTALL_DATA='${INSTALL} -m 644'
# INSTALL_PROGRAM='${INSTALL}'
# INSTALL_SCRIPT='${INSTALL}'
# LDFLAGS=' -pthread'
# LIBOBJS=''
# LIBS=''
# LTLIBOBJS=''
# M4='m4'
# OBJEXT='o'
# PACKAGE_BUGREPORT=''
# PACKAGE_NAME=''
# PACKAGE_STRING=''
# PACKAGE_TARNAME=''
# PACKAGE_URL=''
# PACKAGE_VERSION=''
# PATH_SEPARATOR=':'
# RANLIB='ranlib'
# SHELL='/bin/sh'
# SUFFIX=''
# ac_ct_CC=''
# 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='/usr/share/doc/bird'
# dvidir='${docdir}'
# exec_prefix='NONE'
# exedir='.'
# 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'
# iproutedir='/etc/iproute2'
# libdir='${exec_prefix}/lib'
# libexecdir='${exec_prefix}/libexec'
# localedir='${datarootdir}/locale'
# localstatedir='/var'
# mandir='${datarootdir}/man'
# objdir='.'
# oldincludedir='/usr/include'
# pdfdir='${docdir}'
# prefix='/usr'
# program_transform_name='s,x,x,'
# protocols='bfd bgp ospf pipe rip static'
# psdir='${docdir}'
# runtimedir='$(localstatedir)/run'
# sbindir='/usr/bin'
# sharedstatedir='${prefix}/com'
# srcdir_rel_mf='$(root-rel)..'
# sysconfdir='/etc'
# sysdep_dirs='sysdep/linux sysdep/unix lib'
# target_alias=''
#
# ## ----------- ##
# ## confdefs.h. ##
# ## ----------- ##
#
# /* confdefs.h */
# #define PACKAGE_NAME ""
# #define PACKAGE_TARNAME ""
# #define PACKAGE_VERSION ""
# #define PACKAGE_STRING ""
# #define PACKAGE_BUGREPORT ""
# #define PACKAGE_URL ""
# #define USE_PTHREADS 1
# #define SYSCONF_INCLUDE "../sysdep/cf/linux.h"
# #define CONFIG_BFD 1
# #define CONFIG_BGP 1
# #define CONFIG_OSPF 1
# #define CONFIG_PIPE 1
# #define CONFIG_RIP 1
# #define CONFIG_STATIC 1
#
# configure: exit 1