Build of ethtool with musl toolchain

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

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

SLOCLanguage
18,052 ansic
1,622 makefile
1,324 sh
20,998 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: ethtool 1:4.6-1 (Wed Apr 5 00:34:32 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 whether to enable maintainer-specific portions of Makefiles... no
# 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 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 whether clang needs -traditional... no
# checking whether defines big-endian types... no
# checking for ANSI C header files... yes
# checking for socket... yes
# checking for strtol... yes
# checking that generated files are newer than configure... done
# configure: creating ./config.status
# config.status: creating Makefile
# config.status: creating ethtool.spec
# config.status: creating ethtool.8
# config.status: creating ethtool-config.h
# config.status: executing depfiles commands
# make all-am
# make[1]: Entering directory '/tmp/ethtool/src/ethtool-4.6'
# clang -DHAVE_CONFIG_H -I. -Wall -MT ethtool.o -MD -MP -MF .deps/ethtool.Tpo -c -o ethtool.o ethtool.c
# clang -DHAVE_CONFIG_H -I. -Wall -MT rxclass.o -MD -MP -MF .deps/rxclass.Tpo -c -o rxclass.o rxclass.c
# clang -DHAVE_CONFIG_H -I. -Wall -MT amd8111e.o -MD -MP -MF .deps/amd8111e.Tpo -c -o amd8111e.o amd8111e.c
# clang -DHAVE_CONFIG_H -I. -Wall -MT de2104x.o -MD -MP -MF .deps/de2104x.Tpo -c -o de2104x.o de2104x.c
# rxclass.c:11:10: fatal error: 'linux/sockios.h' file not found
# #include
# ^
# In file included from ethtool.c:31:
# ./internal.h:40:10: fatal error: 'linux/kernel.h' file not found
# #include
# ^
# In file included from amd8111e.c:4:
# ./internal.h:40:10: fatal error: 'linux/kernel.h' file not found
# #include
# ^
# In file included from de2104x.c:3:
# ./internal.h:40:10: fatal error: 'linux/kernel.h' file not found
# #include
# ^
# 1 error generated.
# make[1]: *** [Makefile:828: amd8111e.o] Error 1
# make[1]: *** Waiting for unfinished jobs....
# 1 error generated.
# make[1]: *** [Makefile:828: rxclass.o] Error 1
# 1 error generated.
# make[1]: *** [Makefile:828: de2104x.o] Error 1
# 1 error generated.
# make[1]: *** [Makefile:828: ethtool.o] Error 1
# make[1]: Leaving directory '/tmp/ethtool/src/ethtool-4.6'
# make: *** [Makefile:621: all] Error 2
# ==> ERROR: A failure occurred in build().
# Aborting...

Printing config logfiles

CMD: config logfiles '/tmp/ethtool/src/ethtool-4.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 ethtool configure 4.6, which was
# generated by GNU Autoconf 2.69. Invocation command line was
#
# $ ./configure --host=x86_64-unknown-linux --prefix=/usr --mandir=/usr/share/man --sbindir=/usr/bin
#
# ## --------- ##
# ## Platform. ##
# ## --------- ##
#
# hostname = 5aaa51d4c70c
# 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:2055: checking for a BSD-compatible install
# configure:2123: result: /usr/bin/install -c
# configure:2134: checking whether build environment is sane
# configure:2189: result: yes
# configure:2248: checking for x86_64-unknown-linux-strip
# configure:2278: result: no
# configure:2288: checking for strip
# configure:2304: found /sysroot/bin/strip
# configure:2315: result: strip
# configure:2340: checking for a thread-safe mkdir -p
# configure:2379: result: /usr/sbin/mkdir -p
# configure:2386: checking for gawk
# configure:2402: found /usr/sbin/gawk
# configure:2413: result: gawk
# configure:2424: checking whether make sets $(MAKE)
# configure:2446: result: yes
# configure:2475: checking whether make supports nested variables
# configure:2492: result: yes
# configure:2622: checking whether to enable maintainer-specific portions of Makefiles
# configure:2631: result: no
# configure:2653: checking for x86_64-unknown-linux-gcc
# configure:2680: result: clang
# configure:2949: checking for C compiler version
# configure:2958: clang --version >&5
# clang version 3.8.1
# Target: x86_64-unknown-linux-gnu
# Thread model: posix
# InstalledDir: /
# configure:2969: $? = 0
# configure:2958: 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:2969: $? = 0
# configure:2958: clang -V >&5
# clang-3.8: error: argument to '-V' is missing (expected 1 value)
# clang-3.8: error: no input files
# configure:2969: $? = 1
# configure:2958: clang -qversion >&5
# clang-3.8: error: unknown argument: '-qversion'
# clang-3.8: error: no input files
# configure:2969: $? = 1
# configure:2989: checking whether the C compiler works
# configure:3011: clang conftest.c >&5
# configure:3015: $? = 0
# configure:3063: result: yes
# configure:3066: checking for C compiler default output file name
# configure:3068: result: a.out
# configure:3074: checking for suffix of executables
# configure:3081: clang -o conftest conftest.c >&5
# configure:3085: $? = 0
# configure:3107: result:
# configure:3129: checking whether we are cross compiling
# configure:3137: clang -o conftest conftest.c >&5
# configure:3141: $? = 0
# configure:3148: ./conftest
# ./conftest: error while loading shared libraries: /usr/lib/libc.so: invalid ELF header
# configure:3152: $? = 127
# configure:3167: result: yes
# configure:3172: checking for suffix of object files
# configure:3194: clang -c conftest.c >&5
# configure:3198: $? = 0
# configure:3219: result: o
# configure:3223: checking whether we are using the GNU C compiler
# configure:3242: clang -c conftest.c >&5
# configure:3242: $? = 0
# configure:3251: result: yes
# configure:3260: checking whether clang accepts -g
# configure:3280: clang -c -g conftest.c >&5
# configure:3280: $? = 0
# configure:3321: result: yes
# configure:3338: checking for clang option to accept ISO C89
# configure:3401: clang -c conftest.c >&5
# configure:3401: $? = 0
# configure:3414: result: none needed
# configure:3439: checking whether clang understands -c and -o together
# configure:3461: clang -c conftest.c -o conftest2.o
# configure:3464: $? = 0
# configure:3461: clang -c conftest.c -o conftest2.o
# configure:3464: $? = 0
# configure:3476: result: yes
# configure:3504: checking for style of include used by make
# configure:3532: result: GNU
# configure:3558: checking dependency style of clang
# configure:3669: result: gcc3
# configure:3690: checking how to run the C preprocessor
# configure:3721: clang -E conftest.c
# configure:3721: $? = 0
# configure:3735: clang -E conftest.c
# conftest.c:11:10: fatal error: 'ac_nonexistent.h' file not found
# #include
# ^
# 1 error generated.
# configure:3735: $? = 1
# configure: failed program was:
# | /* confdefs.h */
# | #define PACKAGE_NAME "ethtool"
# | #define PACKAGE_TARNAME "ethtool"
# | #define PACKAGE_VERSION "4.6"
# | #define PACKAGE_STRING "ethtool 4.6"
# | #define PACKAGE_BUGREPORT "netdev@vger.kernel.org"
# | #define PACKAGE_URL ""
# | #define PACKAGE "ethtool"
# | #define VERSION "4.6"
# | /* end confdefs.h. */
# | #include
# configure:3760: result: clang -E
# configure:3780: clang -E conftest.c
# configure:3780: $? = 0
# configure:3794: clang -E conftest.c
# conftest.c:11:10: fatal error: 'ac_nonexistent.h' file not found
# #include
# ^
# 1 error generated.
# configure:3794: $? = 1
# configure: failed program was:
# | /* confdefs.h */
# | #define PACKAGE_NAME "ethtool"
# | #define PACKAGE_TARNAME "ethtool"
# | #define PACKAGE_VERSION "4.6"
# | #define PACKAGE_STRING "ethtool 4.6"
# | #define PACKAGE_BUGREPORT "netdev@vger.kernel.org"
# | #define PACKAGE_URL ""
# | #define PACKAGE "ethtool"
# | #define VERSION "4.6"
# | /* end confdefs.h. */
# | #include
# configure:3823: checking for grep that handles long lines and -e
# configure:3881: result: /usr/sbin/grep
# configure:3886: checking for egrep
# configure:3948: result: /usr/sbin/grep -E
# configure:3954: checking whether clang needs -traditional
# conftest.c:11:10: fatal error: 'sgtty.h' file not found
# #include
# ^
# 1 error generated.
# conftest.c:11:10: fatal error: 'termio.h' file not found
# #include
# ^
# 1 error generated.
# configure:3988: result: no
# configure:3999: checking whether defines big-endian types
# configure:4012: clang -c conftest.c >&5
# conftest.c:11:10: fatal error: 'linux/types.h' file not found
# #include
# ^
# 1 error generated.
# configure:4012: $? = 1
# configure: failed program was:
# | /* confdefs.h */
# | #define PACKAGE_NAME "ethtool"
# | #define PACKAGE_TARNAME "ethtool"
# | #define PACKAGE_VERSION "4.6"
# | #define PACKAGE_STRING "ethtool 4.6"
# | #define PACKAGE_BUGREPORT "netdev@vger.kernel.org"
# | #define PACKAGE_URL ""
# | #define PACKAGE "ethtool"
# | #define VERSION "4.6"
# | /* end confdefs.h. */
# | #include
# | int
# | main ()
# | {
# | __be16 foo;__be32 bar;
# | ;
# | return 0;
# | }
# configure:4019: result: no
# configure:4024: checking for ANSI C header files
# configure:4044: clang -c conftest.c >&5
# configure:4044: $? = 0
# configure:4128: result: yes
# configure:4139: checking for socket
# configure:4139: clang -o conftest conftest.c >&5
# configure:4139: $? = 0
# configure:4139: result: yes
# configure:4139: checking for strtol
# configure:4139: clang -o conftest conftest.c >&5
# configure:4139: $? = 0
# configure:4139: result: yes
# configure:4281: checking that generated files are newer than configure
# configure:4287: result: done
# configure:4318: creating ./config.status
#
# ## ---------------------- ##
# ## Running config.status. ##
# ## ---------------------- ##
#
# This file was extended by ethtool config.status 4.6, which was
# generated by GNU Autoconf 2.69. Invocation command line was
#
# CONFIG_FILES =
# CONFIG_HEADERS =
# CONFIG_LINKS =
# CONFIG_COMMANDS =
# $ ./config.status
#
# on 5aaa51d4c70c
#
# config.status:854: creating Makefile
# config.status:854: creating ethtool.spec
# config.status:854: creating ethtool.8
# config.status:854: creating ethtool-config.h
# config.status:1083: executing depfiles commands
#
# ## ---------------- ##
# ## 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_func_socket=yes
# ac_cv_func_strtol=yes
# ac_cv_header_stdc=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_path_mkdir=/usr/sbin/mkdir
# ac_cv_prog_AWK=gawk
# ac_cv_prog_CC=clang
# ac_cv_prog_CPP='clang -E'
# ac_cv_prog_ac_ct_STRIP=strip
# ac_cv_prog_cc_c89=
# ac_cv_prog_cc_g=yes
# ac_cv_prog_gcc_traditional=no
# ac_cv_prog_make_make_set=yes
# am_cv_CC_dependencies_compiler_type=gcc3
# am_cv_make_support_nested_variables=yes
# am_cv_prog_cc_c_o=yes
#
# ## ----------------- ##
# ## Output variables. ##
# ## ----------------- ##
#
# ACLOCAL='${SHELL} /tmp/ethtool/src/ethtool-4.6/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)'
# AUTOCONF='${SHELL} /tmp/ethtool/src/ethtool-4.6/missing autoconf'
# AUTOHEADER='${SHELL} /tmp/ethtool/src/ethtool-4.6/missing autoheader'
# AUTOMAKE='${SHELL} /tmp/ethtool/src/ethtool-4.6/missing automake-1.15'
# AWK='gawk'
# CC='clang'
# CCDEPMODE='depmode=gcc3'
# CFLAGS=''
# CPP='clang -E'
# CPPFLAGS=''
# CYGPATH_W='echo'
# DEFS='-DHAVE_CONFIG_H'
# DEPDIR='.deps'
# ECHO_C=''
# ECHO_N='-n'
# ECHO_T=''
# EGREP='/usr/sbin/grep -E'
# ETHTOOL_ENABLE_PRETTY_DUMP_FALSE='#'
# ETHTOOL_ENABLE_PRETTY_DUMP_TRUE=''
# EXEEXT=''
# GREP='/usr/sbin/grep'
# INSTALL_DATA='${INSTALL} -m 644'
# INSTALL_PROGRAM='${INSTALL}'
# INSTALL_SCRIPT='${INSTALL}'
# INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
# LDFLAGS=''
# LIBOBJS=''
# LIBS=''
# LTLIBOBJS=''
# MAINT='#'
# MAINTAINER_MODE_FALSE=''
# MAINTAINER_MODE_TRUE='#'
# MAKEINFO='${SHELL} /tmp/ethtool/src/ethtool-4.6/missing makeinfo'
# MKDIR_P='/usr/sbin/mkdir -p'
# OBJEXT='o'
# PACKAGE='ethtool'
# PACKAGE_BUGREPORT='netdev@vger.kernel.org'
# PACKAGE_NAME='ethtool'
# PACKAGE_STRING='ethtool 4.6'
# PACKAGE_TARNAME='ethtool'
# PACKAGE_URL=''
# PACKAGE_VERSION='4.6'
# PATH_SEPARATOR=':'
# SET_MAKE=''
# SHELL='/bin/sh'
# STRIP='strip'
# VERSION='4.6'
# ac_ct_CC=''
# 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_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'
# install_sh='${SHELL} /tmp/ethtool/src/ethtool-4.6/install-sh'
# libdir='${exec_prefix}/lib'
# libexecdir='${exec_prefix}/libexec'
# localedir='${datarootdir}/locale'
# localstatedir='${prefix}/var'
# mandir='/usr/share/man'
# mkdir_p='$(MKDIR_P)'
# oldincludedir='/usr/include'
# pdfdir='${docdir}'
# prefix='/usr'
# program_transform_name='s,x,x,'
# psdir='${docdir}'
# runstatedir='${localstatedir}/run'
# sbindir='/usr/bin'
# sharedstatedir='${prefix}/com'
# sysconfdir='${prefix}/etc'
# target_alias=''
#
# ## ----------- ##
# ## confdefs.h. ##
# ## ----------- ##
#
# /* confdefs.h */
# #define PACKAGE_NAME "ethtool"
# #define PACKAGE_TARNAME "ethtool"
# #define PACKAGE_VERSION "4.6"
# #define PACKAGE_STRING "ethtool 4.6"
# #define PACKAGE_BUGREPORT "netdev@vger.kernel.org"
# #define PACKAGE_URL ""
# #define PACKAGE "ethtool"
# #define VERSION "4.6"
# #define STDC_HEADERS 1
# #define HAVE_SOCKET 1
# #define HAVE_STRTOL 1
# #define ETHTOOL_ENABLE_PRETTY_DUMP 1
#
# configure: exit 0