Build of lsscsi with musl toolchain

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

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

SLOCLanguage
3,642 sh
3,116 ansic
1,520 makefile
8,278 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: lsscsi 0.28-1 (Tue Apr 4 23:49:36 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
# /tmp/lsscsi/src/lsscsi-0.28/missing: Unknown `--is-lightweight' option
# Try `/tmp/lsscsi/src/lsscsi-0.28/missing --help' for more information
# configure: WARNING: 'missing' script is too old or missing
# 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 that generated files are newer than configure... done
# configure: creating ./config.status
# config.status: creating Makefile
# config.status: creating src/Makefile
# config.status: creating doc/Makefile
# config.status: creating config.h
# config.status: executing depfiles commands
# make all-recursive
# make[1]: Entering directory '/tmp/lsscsi/src/lsscsi-0.28'
# Making all in src
# make[2]: Entering directory '/tmp/lsscsi/src/lsscsi-0.28/src'
# clang -DHAVE_CONFIG_H -I. -I.. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -W -MT lsscsi.o -MD -MP -MF .deps/lsscsi.Tpo -c -o lsscsi.o lsscsi.c
# lsscsi.c:30:10: fatal error: 'linux/major.h' file not found
# #include
# ^
# 1 error generated.
# make[2]: *** [Makefile:336: lsscsi.o] Error 1
# make[2]: Leaving directory '/tmp/lsscsi/src/lsscsi-0.28/src'
# make[1]: *** [Makefile:341: all-recursive] Error 1
# make[1]: Leaving directory '/tmp/lsscsi/src/lsscsi-0.28'
# make: *** [Makefile:281: all] Error 2
# ==> ERROR: A failure occurred in build().
# Aborting...

Printing config logfiles

CMD: config logfiles '/tmp/lsscsi/src/lsscsi-0.28/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 lsscsi configure 0.28, which was
# generated by GNU Autoconf 2.69. Invocation command line was
#
# $ ./configure --host=x86_64-unknown-linux --prefix=/usr
#
# ## --------- ##
# ## Platform. ##
# ## --------- ##
#
# hostname = e2098872a4db
# 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:1839: checking for a BSD-compatible install
# configure:1907: result: /usr/bin/install -c
# configure:1918: checking whether build environment is sane
# configure:1973: result: yes
# configure:2011: WARNING: 'missing' script is too old or missing
# configure:2032: checking for x86_64-unknown-linux-strip
# configure:2062: result: no
# configure:2072: checking for strip
# configure:2088: found /sysroot/bin/strip
# configure:2099: result: strip
# configure:2124: checking for a thread-safe mkdir -p
# configure:2163: result: /usr/sbin/mkdir -p
# configure:2170: checking for gawk
# configure:2186: found /usr/sbin/gawk
# configure:2197: result: gawk
# configure:2208: checking whether make sets $(MAKE)
# configure:2230: result: yes
# configure:2259: checking whether make supports nested variables
# configure:2276: result: yes
# configure:2402: checking whether to enable maintainer-specific portions of Makefiles
# configure:2411: result: no
# configure:2435: checking for x86_64-unknown-linux-gcc
# configure:2462: result: clang
# configure:2731: checking for C compiler version
# configure:2740: clang --version >&5
# clang version 3.8.1
# Target: x86_64-unknown-linux-gnu
# Thread model: posix
# InstalledDir: /
# configure:2751: $? = 0
# configure:2740: 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:2751: $? = 0
# configure:2740: clang -V >&5
# clang-3.8: error: argument to '-V' is missing (expected 1 value)
# clang-3.8: error: no input files
# configure:2751: $? = 1
# configure:2740: clang -qversion >&5
# clang-3.8: error: unknown argument: '-qversion'
# clang-3.8: error: no input files
# configure:2751: $? = 1
# configure:2771: checking whether the C compiler works
# configure:2793: clang conftest.c >&5
# configure:2797: $? = 0
# configure:2845: result: yes
# configure:2848: checking for C compiler default output file name
# configure:2850: result: a.out
# configure:2856: checking for suffix of executables
# configure:2863: clang -o conftest conftest.c >&5
# configure:2867: $? = 0
# configure:2889: result:
# configure:2911: checking whether we are cross compiling
# configure:2919: clang -o conftest conftest.c >&5
# configure:2923: $? = 0
# configure:2930: ./conftest
# ./conftest: error while loading shared libraries: /usr/lib/libc.so: invalid ELF header
# configure:2934: $? = 127
# configure:2949: result: yes
# configure:2954: checking for suffix of object files
# configure:2976: clang -c conftest.c >&5
# configure:2980: $? = 0
# configure:3001: result: o
# configure:3005: checking whether we are using the GNU C compiler
# configure:3024: clang -c conftest.c >&5
# configure:3024: $? = 0
# configure:3033: result: yes
# configure:3042: checking whether clang accepts -g
# configure:3062: clang -c -g conftest.c >&5
# configure:3062: $? = 0
# configure:3103: result: yes
# configure:3120: checking for clang option to accept ISO C89
# configure:3183: clang -c conftest.c >&5
# configure:3183: $? = 0
# configure:3196: result: none needed
# configure:3221: checking whether clang understands -c and -o together
# configure:3243: clang -c conftest.c -o conftest2.o
# configure:3246: $? = 0
# configure:3243: clang -c conftest.c -o conftest2.o
# configure:3246: $? = 0
# configure:3258: result: yes
# configure:3286: checking for style of include used by make
# configure:3314: result: GNU
# configure:3340: checking dependency style of clang
# configure:3451: result: gcc3
# configure:3578: checking that generated files are newer than configure
# configure:3584: result: done
# configure:3611: creating ./config.status
#
# ## ---------------------- ##
# ## Running config.status. ##
# ## ---------------------- ##
#
# This file was extended by lsscsi config.status 0.28, which was
# generated by GNU Autoconf 2.69. Invocation command line was
#
# CONFIG_FILES =
# CONFIG_HEADERS =
# CONFIG_LINKS =
# CONFIG_COMMANDS =
# $ ./config.status
#
# on e2098872a4db
#
# config.status:844: creating Makefile
# config.status:844: creating src/Makefile
# config.status:844: creating doc/Makefile
# config.status:844: creating config.h
# config.status:1073: 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_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_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
# am_cv_CC_dependencies_compiler_type=gcc3
# am_cv_make_support_nested_variables=yes
# am_cv_prog_cc_c_o=yes
#
# ## ----------------- ##
# ## Output variables. ##
# ## ----------------- ##
#
# ACLOCAL='aclocal-1.14'
# AMDEPBACKSLASH='\'
# AMDEP_FALSE='#'
# AMDEP_TRUE=''
# AMTAR='$${TAR-tar}'
# AM_BACKSLASH='\'
# AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
# AM_DEFAULT_VERBOSITY='1'
# AM_V='$(V)'
# AUTOCONF='autoconf'
# AUTOHEADER='autoheader'
# AUTOMAKE='automake-1.14'
# AWK='gawk'
# CC='clang'
# CCDEPMODE='depmode=gcc3'
# CFLAGS=''
# CPPFLAGS=''
# CYGPATH_W='echo'
# DEFS='-DHAVE_CONFIG_H'
# DEPDIR='.deps'
# ECHO_C=''
# ECHO_N='-n'
# ECHO_T=''
# EXEEXT=''
# 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='makeinfo'
# MKDIR_P='/usr/sbin/mkdir -p'
# OBJEXT='o'
# PACKAGE='lsscsi'
# PACKAGE_BUGREPORT='dgilbert@interlog.com'
# PACKAGE_NAME='lsscsi'
# PACKAGE_STRING='lsscsi 0.28'
# PACKAGE_TARNAME='lsscsi'
# PACKAGE_URL=''
# PACKAGE_VERSION='0.28'
# PATH_SEPARATOR=':'
# SET_MAKE=''
# SHELL='/bin/sh'
# STRIP='strip'
# VERSION='0.28'
# 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/lsscsi/src/lsscsi-0.28/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 "lsscsi"
# #define PACKAGE_TARNAME "lsscsi"
# #define PACKAGE_VERSION "0.28"
# #define PACKAGE_STRING "lsscsi 0.28"
# #define PACKAGE_BUGREPORT "dgilbert@interlog.com"
# #define PACKAGE_URL ""
# #define PACKAGE "lsscsi"
# #define VERSION "0.28"
#
# configure: exit 0