Build of drbd-utils with musl toolchain

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

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

SLOCLanguage
41,977 ansic
2,427 sh
1,010 makefile
351 perl
45,765 total

The process tree of the build process is here.

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: drbd-utils 8.9.6-1 (Wed Apr 5 01:27:58 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# 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
# Using systemd unit directory: /usr/lib/systemd/system
# Using udev rules directory: /usr/lib/udev
# 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 ln -s works... yes
# checking for sed... /usr/sbin/sed
# checking for grep... /usr/sbin/grep
# checking for flex... /usr/sbin/flex
# checking for rpmbuild... no
# checking for xsltproc... /usr/sbin/xsltproc
# checking for tar... /usr/sbin/tar
# checking for git... /usr/sbin/git
# checking for dpkg-buildpackage... no
# checking for udevadm... /sbin/udevadm
# checking for udevinfo... false
# configure: WARNING: No rpmbuild found, building RPM packages is disabled.
# configure: WARNING: No dpkg-buildpackage found, building Debian packages is disabled.
# configure: creating ./config.status
# config.status: creating Makefile
# config.status: creating user/shared/Makefile
# config.status: creating user/v9/Makefile
# config.status: creating user/v83/Makefile
# config.status: creating user/v84/Makefile
# config.status: creating scripts/Makefile
# config.status: creating documentation/v9/Makefile
# config.status: creating documentation/v83/Makefile
# config.status: creating documentation/v84/Makefile
# config.status: creating scripts/drbd.rules
# config.status: creating user/shared/config.h
# make[1]: Entering directory '/tmp/drbd-utils/src/drbd-utils-8.9.6/user/shared'
# flex -s -odrbdmeta_scanner.c drbdmeta_scanner.fl
# make[1]: *** [Makefile:90: drbdmeta_scanner.c] Error 1
# make[1]: Leaving directory '/tmp/drbd-utils/src/drbd-utils-8.9.6/user/shared'
# make: *** [Makefile:77: tools] Error 2
# ==> ERROR: A failure occurred in build().
# Aborting...

Printing config logfiles

CMD: config logfiles '/tmp/drbd-utils/src/drbd-utils-8.9.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 DRBD configure 8.9.6, which was
# generated by GNU Autoconf 2.69. Invocation command line was
#
# $ ./configure --host=x86_64-unknown-linux --prefix=/usr --localstatedir=/var --sysconfdir=/etc --sbindir=/usr/bin --libdir=/usr/lib --with-distro=generic --with-bashcompletion --with-udev --without-rgmanager --without-pacemaker --without-heartbeat --with-initscripttype=systemd --without-xen
#
# ## --------- ##
# ## Platform. ##
# ## --------- ##
#
# hostname = 40143c7189a2
# 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:1968: checking for x86_64-unknown-linux-pkg-config
# configure:2001: result: no
# configure:2011: checking for pkg-config
# configure:2029: found /usr/sbin/pkg-config
# configure:2041: result: /usr/sbin/pkg-config
# configure:2066: checking pkg-config is at least version 0.9.0
# configure:2069: result: yes
# configure:2097: result: Using systemd unit directory: /usr/lib/systemd/system
# configure:2122: result: Using udev rules directory: /usr/lib/udev
# configure:2159: checking for x86_64-unknown-linux-gcc
# configure:2186: result: clang
# configure:2455: checking for C compiler version
# configure:2464: clang --version >&5
# clang version 3.8.1
# Target: x86_64-unknown-linux-gnu
# Thread model: posix
# InstalledDir: /
# configure:2475: $? = 0
# configure:2464: 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:2475: $? = 0
# configure:2464: clang -V >&5
# clang-3.8: error: argument to '-V' is missing (expected 1 value)
# clang-3.8: error: no input files
# configure:2475: $? = 1
# configure:2464: clang -qversion >&5
# clang-3.8: error: unknown argument: '-qversion'
# clang-3.8: error: no input files
# configure:2475: $? = 1
# configure:2495: checking whether the C compiler works
# configure:2517: clang conftest.c >&5
# configure:2521: $? = 0
# configure:2569: result: yes
# configure:2572: checking for C compiler default output file name
# configure:2574: result: a.out
# configure:2580: checking for suffix of executables
# configure:2587: clang -o conftest conftest.c >&5
# configure:2591: $? = 0
# configure:2613: result:
# configure:2635: checking whether we are cross compiling
# configure:2643: clang -o conftest conftest.c >&5
# configure:2647: $? = 0
# configure:2654: ./conftest
# ./conftest: error while loading shared libraries: /usr/lib/libc.so: invalid ELF header
# configure:2658: $? = 127
# configure:2673: result: yes
# configure:2678: checking for suffix of object files
# configure:2700: clang -c conftest.c >&5
# configure:2704: $? = 0
# configure:2725: result: o
# configure:2729: checking whether we are using the GNU C compiler
# configure:2748: clang -c conftest.c >&5
# configure:2748: $? = 0
# configure:2757: result: yes
# configure:2766: checking whether clang accepts -g
# configure:2786: clang -c -g conftest.c >&5
# configure:2786: $? = 0
# configure:2827: result: yes
# configure:2844: checking for clang option to accept ISO C89
# configure:2907: clang -c conftest.c >&5
# configure:2907: $? = 0
# configure:2920: result: none needed
# configure:2940: checking whether ln -s works
# configure:2944: result: yes
# configure:2953: checking for sed
# configure:2971: found /usr/sbin/sed
# configure:2983: result: /usr/sbin/sed
# configure:2993: checking for grep
# configure:3011: found /usr/sbin/grep
# configure:3023: result: /usr/sbin/grep
# configure:3033: checking for flex
# configure:3051: found /usr/sbin/flex
# configure:3063: result: /usr/sbin/flex
# configure:3073: checking for rpmbuild
# configure:3106: result: no
# configure:3113: checking for xsltproc
# configure:3131: found /usr/sbin/xsltproc
# configure:3143: result: /usr/sbin/xsltproc
# configure:3153: checking for tar
# configure:3171: found /usr/sbin/tar
# configure:3183: result: /usr/sbin/tar
# configure:3193: checking for git
# configure:3211: found /usr/sbin/git
# configure:3223: result: /usr/sbin/git
# configure:3233: checking for dpkg-buildpackage
# configure:3266: result: no
# configure:3273: checking for udevadm
# configure:3291: found /sbin/udevadm
# configure:3304: result: /sbin/udevadm
# configure:3314: checking for udevinfo
# configure:3345: result: false
# configure:3363: WARNING: No rpmbuild found, building RPM packages is disabled.
# configure:3368: WARNING: No dpkg-buildpackage found, building Debian packages is disabled.
# configure:3405: clang -c conftest.c >&5
# conftest.c:10:10: fatal error: 'linux/genetlink.h' file not found
# #include
# ^
# 1 error generated.
# configure:3405: $? = 1
# configure: failed program was:
# | /* confdefs.h */
# | #define PACKAGE_NAME "DRBD"
# | #define PACKAGE_TARNAME "drbd"
# | #define PACKAGE_VERSION "8.9.6"
# | #define PACKAGE_STRING "DRBD 8.9.6"
# | #define PACKAGE_BUGREPORT "drbd-dev@lists.linbit.com"
# | #define PACKAGE_URL ""
# | /* end confdefs.h. */
# |
# | #include
# | static unsigned int dummy = CTRL_CMD_DELMCAST_GRP;
# |
# configure:3792: creating ./config.status
#
# ## ---------------------- ##
# ## Running config.status. ##
# ## ---------------------- ##
#
# This file was extended by DRBD config.status 8.9.6, which was
# generated by GNU Autoconf 2.69. Invocation command line was
#
# CONFIG_FILES =
# CONFIG_HEADERS =
# CONFIG_LINKS =
# CONFIG_COMMANDS =
# $ ./config.status
#
# on 40143c7189a2
#
# config.status:844: creating Makefile
# config.status:844: creating user/shared/Makefile
# config.status:844: creating user/v9/Makefile
# config.status:844: creating user/v83/Makefile
# config.status:844: creating user/v84/Makefile
# config.status:844: creating scripts/Makefile
# config.status:844: creating documentation/v9/Makefile
# config.status:844: creating documentation/v83/Makefile
# config.status:844: creating documentation/v84/Makefile
# config.status:844: creating scripts/drbd.rules
# config.status:844: creating user/shared/config.h
#
# ## ---------------- ##
# ## 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_LDFLAGS_set=set
# ac_cv_env_LDFLAGS_value=
# ac_cv_env_LIBS_set=
# ac_cv_env_LIBS_value=
# ac_cv_env_PKG_CONFIG_set=
# ac_cv_env_PKG_CONFIG_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_objext=o
# ac_cv_path_FLEX=/usr/sbin/flex
# ac_cv_path_GIT=/usr/sbin/git
# ac_cv_path_GREP=/usr/sbin/grep
# ac_cv_path_SED=/usr/sbin/sed
# ac_cv_path_TAR=/usr/sbin/tar
# ac_cv_path_UDEVADM=/sbin/udevadm
# ac_cv_path_UDEVINFO=false
# ac_cv_path_XSLTPROC=/usr/sbin/xsltproc
# ac_cv_path_ac_pt_PKG_CONFIG=/usr/sbin/pkg-config
# ac_cv_prog_CC=clang
# ac_cv_prog_cc_c89=
# ac_cv_prog_cc_g=yes
#
# ## ----------------- ##
# ## Output variables. ##
# ## ----------------- ##
#
# BASH_COMPLETION_SUFFIX=''
# CC='clang'
# CFLAGS=''
# CPPFLAGS=''
# DEFS='-DHAVE_CONFIG_H'
# DISTRO='generic'
# DPKG_BUILDPACKAGE=''
# DRBD_CONFIG_DIR='/etc'
# DRBD_LIB_DIR='/var/lib/drbd'
# DRBD_LOCK_DIR='/var/lock'
# DRBD_RUN_DIR='/var/run/drbd'
# ECHO_C=''
# ECHO_N='-n'
# ECHO_T=''
# EXEEXT=''
# FLEX='/usr/sbin/flex'
# GIT='/usr/sbin/git'
# GREP='/usr/sbin/grep'
# INITDIR='/etc/init.d'
# LDFLAGS=''
# LIBOBJS=''
# LIBS=''
# LN_S='ln -s'
# LTLIBOBJS=''
# OBJEXT='o'
# PACKAGE_BUGREPORT='drbd-dev@lists.linbit.com'
# PACKAGE_NAME='DRBD'
# PACKAGE_STRING='DRBD 8.9.6'
# PACKAGE_TARNAME='drbd'
# PACKAGE_URL=''
# PACKAGE_VERSION='8.9.6'
# PATH_SEPARATOR=':'
# PKG_CONFIG='/usr/sbin/pkg-config'
# RPMBUILD=''
# RPM_BUILDREQ_DEFAULT='gcc flex glibc-devel make'
# RPM_DIST_TAG=''
# RPM_REQ_BASH_COMPLETION=''
# RPM_REQ_CHKCONFIG_POST=''
# RPM_REQ_CHKCONFIG_PREUN=''
# RPM_REQ_HEARTBEAT=''
# RPM_REQ_PACEMAKER=''
# RPM_REQ_XEN=''
# RPM_SUBPACKAGE_NOARCH=''
# SED='/usr/sbin/sed'
# SHELL='/bin/sh'
# TAR='/usr/sbin/tar'
# UDEVADM='/sbin/udevadm'
# UDEVINFO='false'
# UDEV_RULE_SUFFIX=''
# WITH_83_SUPPORT='yes'
# WITH_84_SUPPORT='yes'
# WITH_BASHCOMPLETION='yes'
# WITH_HEARTBEAT='no'
# WITH_MANUAL='yes'
# WITH_PACEMAKER='no'
# WITH_RGMANAGER='no'
# WITH_UDEV='yes'
# WITH_XEN='no'
# XSLTPROC='/usr/sbin/xsltproc'
# ac_ct_CC=''
# bindir='/usr/bin'
# build_alias=''
# datadir='/usr/share'
# datarootdir='/usr/share'
# docdir='/usr/share/doc/drbd'
# dvidir='${docdir}'
# exec_prefix='/usr'
# host_alias='x86_64-unknown-linux'
# htmldir='${docdir}'
# includedir='/usr/include'
# infodir='/usr/share/info'
# initscripttype='systemd'
# libdir='/usr/lib'
# libexecdir='/usr/libexec'
# localedir='${datarootdir}/locale'
# localstatedir='/var'
# mandir='/usr/share/man'
# oldincludedir='/usr/include'
# pdfdir='${docdir}'
# prefix='/usr'
# program_transform_name='s,x,x,'
# psdir='${docdir}'
# runstatedir='${localstatedir}/run'
# sbindir='/usr/bin'
# sharedstatedir='/usr/com'
# sysconfdir='/etc'
# systemdunitdir='/usr/lib/systemd/system'
# target_alias=''
# tmpfilesdir='${prefix}/lib/tmpfiles.d'
# udevdir='/usr/lib/udev'
# udevrulesdir='/usr/lib/udev/rules.d'
#
# ## ----------- ##
# ## confdefs.h. ##
# ## ----------- ##
#
# /* confdefs.h */
# #define PACKAGE_NAME "DRBD"
# #define PACKAGE_TARNAME "drbd"
# #define PACKAGE_VERSION "8.9.6"
# #define PACKAGE_STRING "DRBD 8.9.6"
# #define PACKAGE_BUGREPORT "drbd-dev@lists.linbit.com"
# #define PACKAGE_URL ""
# #define DRBD_LIB_DIR "/var/lib/drbd"
# #define DRBD_RUN_DIR "/var/run/drbd"
# #define DRBD_LOCK_DIR "/var/lock"
# #define DRBD_CONFIG_DIR "/etc"
# #define DRBD_LEGACY_83 1
# #define DRBD_LEGACY_84 1
#
# configure: exit 0