Build of pm-utils with musl toolchain

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

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

SLOCLanguage
3,297 sh
3,187 makefile
173 ansic
6,657 total

The process tree of the build process is here.

Several sub-process invocations were improper; see the process tree for details. Summary:

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: pm-utils 1.4.1-6 (Wed Apr 5 02:00:34 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Installing missing dependencies...
# resolving dependencies...
# looking for conflicting packages...
#
# Packages (1) pm-quirks-0.20100619-4
#
# Total Installed Size: 0.06 MiB
#
# :: Proceed with installation? [Y/n]
# checking keyring...
# checking package integrity...
# loading package files...
# checking for file conflicts...
# checking available disk space...
# :: Processing package changes...
# installing pm-quirks...
# ==> Checking buildtime dependencies...
# ==> Installing missing dependencies...
# resolving dependencies...
# looking for conflicting packages...
#
# Packages (1) xmlto-0.0.28-1
#
# Total Installed Size: 0.12 MiB
#
# :: Proceed with installation? [Y/n]
# checking keyring...
# checking package integrity...
# loading package files...
# checking for file conflicts...
# checking available disk space...
# :: Processing package changes...
# installing xmlto...
# :: Running post-transaction hooks...
# (1/1) Updating manpage index...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# patching file pm/pm-functions.in
# patching file pm/power.d/intel-audio-powersave
# patching file pm/sleep.d/49bluetooth
# patching file pm/power.d/sata_alpm
# configure: WARNING: if you wanted to set the --build type, don't use --host.
# If a cross compiler is detected then cross compile mode will be used
# 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/bin/mkdir -p
# checking for gawk... gawk
# checking whether make sets $(MAKE)... yes
# 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... no
# 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 style of include used by make... GNU
# checking dependency style of clang... gcc3
# checking whether ln -s works... yes
# checking for xmlto... /usr/bin/xmlto
# checking whether to build manpages... yes
# configure: creating ./config.status
# config.status: creating Makefile
# config.status: creating pm-utils.pc
# config.status: creating man/Makefile
# config.status: creating src/Makefile
# config.status: creating pm/Makefile
# config.status: creating pm/sleep.d/Makefile
# config.status: creating pm/power.d/Makefile
# config.status: creating pm/module.d/Makefile
# config.status: creating config.h
# config.status: executing depfiles commands
#
# pm-utils 1.4.1
# ==================
#
# prefix: /usr
# compiler: clang
# cflags:
#
# make all-recursive
# make[1]: Entering directory '/tmp/pm-utils/src/pm-utils-1.4.1'
# Making all in pm
# make[2]: Entering directory '/tmp/pm-utils/src/pm-utils-1.4.1/pm'
# Making all in sleep.d
# make[3]: Entering directory '/tmp/pm-utils/src/pm-utils-1.4.1/pm/sleep.d'
# make[3]: Nothing to be done for 'all'.
# make[3]: Leaving directory '/tmp/pm-utils/src/pm-utils-1.4.1/pm/sleep.d'
# Making all in power.d
# make[3]: Entering directory '/tmp/pm-utils/src/pm-utils-1.4.1/pm/power.d'
# make[3]: Nothing to be done for 'all'.
# make[3]: Leaving directory '/tmp/pm-utils/src/pm-utils-1.4.1/pm/power.d'
# Making all in module.d
# make[3]: Entering directory '/tmp/pm-utils/src/pm-utils-1.4.1/pm/module.d'
# make[3]: Nothing to be done for 'all'.
# make[3]: Leaving directory '/tmp/pm-utils/src/pm-utils-1.4.1/pm/module.d'
# make[3]: Entering directory '/tmp/pm-utils/src/pm-utils-1.4.1/pm'
# sed -e 's,[@]PM-UTILS-LIBDIR[@],/usr/lib/pm-utils,g' -e 's,[@]PM-UTILS-SYSCONFDIR[@],/etc/pm,g' functions.in >functions
# sed -e 's,[@]PM-UTILS-LIBDIR[@],/usr/lib/pm-utils,g' -e 's,[@]PM-UTILS-SYSCONFDIR[@],/etc/pm,g' pm-functions.in >pm-functions
# chmod +x functions
# chmod +x pm-functions
# make[3]: Leaving directory '/tmp/pm-utils/src/pm-utils-1.4.1/pm'
# make[2]: Leaving directory '/tmp/pm-utils/src/pm-utils-1.4.1/pm'
# Making all in man
# make[2]: Entering directory '/tmp/pm-utils/src/pm-utils-1.4.1/man'
# make[2]: Nothing to be done for 'all'.
# make[2]: Leaving directory '/tmp/pm-utils/src/pm-utils-1.4.1/man'
# Making all in src
# make[2]: Entering directory '/tmp/pm-utils/src/pm-utils-1.4.1/src'
# clang -DHAVE_CONFIG_H -I. -I.. -MT pm-pmu.o -MD -MP -MF .deps/pm-pmu.Tpo -c -o pm-pmu.o pm-pmu.c
# clang -DHAVE_CONFIG_H -I. -I.. -MT pm-reset-swap.o -MD -MP -MF .deps/pm-reset-swap.Tpo -c -o pm-reset-swap.o pm-reset-swap.c
# sed -e 's,[@]PM-UTILS-LIBDIR[@],/usr/lib/pm-utils,g' -e 's,[@]PM-UTILS-SYSCONFDIR[@],/etc/pm,g' pm-is-supported.in >pm-is-supported
# sed -e 's,[@]PM-UTILS-LIBDIR[@],/usr/lib/pm-utils,g' -e 's,[@]PM-UTILS-SYSCONFDIR[@],/etc/pm,g' pm-action.in >pm-action
# chmod +x pm-is-supported
# chmod +x pm-action
# sed -e 's,[@]PM-UTILS-LIBDIR[@],/usr/lib/pm-utils,g' -e 's,[@]PM-UTILS-SYSCONFDIR[@],/etc/pm,g' pm-powersave.in >pm-powersave
# chmod +x pm-powersave
# pm-reset-swap.c:37:10: fatal error: 'linux/pmu.h' file not found
# #include
# ^
# pm-pmu.c:37:10: fatal error: 'linux/pmu.h' file not found
# #include
# ^
# 1 error generated.
# 1 error generated.
# make[2]: *** [Makefile:419: pm-reset-swap.o] Error 1
# make[2]: *** Waiting for unfinished jobs....
# make[2]: *** [Makefile:419: pm-pmu.o] Error 1
# make[2]: Leaving directory '/tmp/pm-utils/src/pm-utils-1.4.1/src'
# make[1]: *** [Makefile:326: all-recursive] Error 1
# make[1]: Leaving directory '/tmp/pm-utils/src/pm-utils-1.4.1'
# make: *** [Makefile:222: all] Error 2
# ==> ERROR: A failure occurred in build().
# Aborting...

Printing config logfiles

CMD: config logfiles '/tmp/pm-utils/src/pm-utils-1.4.1/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 pm-utils configure 1.4.1, which was
# generated by GNU Autoconf 2.66. Invocation command line was
#
# $ ./configure --host=x86_64-unknown-linux --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin --localstatedir=/var
#
# ## --------- ##
# ## Platform. ##
# ## --------- ##
#
# hostname = 2d3ddd7606b1
# 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/bin
# PATH: /usr/lib/jvm/default/bin
# PATH: /usr/bin/site_perl
# PATH: /usr/bin/vendor_perl
# PATH: /usr/bin/core_perl
#
#
# ## ----------- ##
# ## Core tests. ##
# ## ----------- ##
#
# configure:1800: checking for a BSD-compatible install
# configure:1868: result: /usr/bin/install -c
# configure:1879: checking whether build environment is sane
# configure:1929: result: yes
# configure:1978: checking for x86_64-unknown-linux-strip
# configure:2008: result: no
# configure:2018: checking for strip
# configure:2034: found /sysroot/bin/strip
# configure:2045: result: strip
# configure:2070: checking for a thread-safe mkdir -p
# configure:2109: result: /usr/bin/mkdir -p
# configure:2122: checking for gawk
# configure:2138: found /usr/bin/gawk
# configure:2149: result: gawk
# configure:2160: checking whether make sets $(MAKE)
# configure:2182: result: yes
# configure:2273: checking for x86_64-unknown-linux-gcc
# configure:2300: result: clang
# configure:2569: checking for C compiler version
# configure:2578: clang --version >&5
# clang version 3.8.1
# Target: x86_64-unknown-linux-gnu
# Thread model: posix
# InstalledDir: /
# configure:2589: $? = 0
# configure:2578: 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:2589: $? = 0
# configure:2578: clang -V >&5
# clang-3.8: error: argument to '-V' is missing (expected 1 value)
# clang-3.8: error: no input files
# configure:2589: $? = 1
# configure:2578: clang -qversion >&5
# clang-3.8: error: unknown argument: '-qversion'
# clang-3.8: error: no input files
# configure:2589: $? = 1
# configure:2609: checking whether the C compiler works
# configure:2631: clang conftest.c >&5
# configure:2635: $? = 0
# configure:2683: result: yes
# configure:2686: checking for C compiler default output file name
# configure:2688: result: a.out
# configure:2694: checking for suffix of executables
# configure:2701: clang -o conftest conftest.c >&5
# configure:2705: $? = 0
# configure:2727: result:
# configure:2749: checking whether we are cross compiling
# configure:2757: clang -o conftest conftest.c >&5
# configure:2761: $? = 0
# configure:2768: ./conftest
# configure:2772: $? = 0
# configure:2787: result: no
# configure:2792: checking for suffix of object files
# configure:2814: clang -c conftest.c >&5
# configure:2818: $? = 0
# configure:2839: result: o
# configure:2843: checking whether we are using the GNU C compiler
# configure:2862: clang -c conftest.c >&5
# configure:2862: $? = 0
# configure:2871: result: yes
# configure:2880: checking whether clang accepts -g
# configure:2900: clang -c -g conftest.c >&5
# configure:2900: $? = 0
# configure:2941: result: yes
# configure:2958: checking for clang option to accept ISO C89
# configure:3022: clang -c conftest.c >&5
# configure:3022: $? = 0
# configure:3035: result: none needed
# configure:3066: checking for style of include used by make
# configure:3094: result: GNU
# configure:3119: checking dependency style of clang
# configure:3229: result: gcc3
# configure:3244: checking whether ln -s works
# configure:3248: result: yes
# configure:3265: checking for xmlto
# configure:3283: found /usr/bin/xmlto
# configure:3296: result: /usr/bin/xmlto
# configure:3328: result: checking whether to build manpages... yes
# configure:3456: creating ./config.status
#
# ## ---------------------- ##
# ## Running config.status. ##
# ## ---------------------- ##
#
# This file was extended by pm-utils config.status 1.4.1, which was
# generated by GNU Autoconf 2.66. Invocation command line was
#
# CONFIG_FILES =
# CONFIG_HEADERS =
# CONFIG_LINKS =
# CONFIG_COMMANDS =
# $ ./config.status
#
# on 2d3ddd7606b1
#
# config.status:848: creating Makefile
# config.status:848: creating pm-utils.pc
# config.status:848: creating man/Makefile
# config.status:848: creating src/Makefile
# config.status:848: creating pm/Makefile
# config.status:848: creating pm/sleep.d/Makefile
# config.status:848: creating pm/power.d/Makefile
# config.status:848: creating pm/module.d/Makefile
# config.status:848: creating config.h
# config.status:1076: 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_XMLTO=/usr/bin/xmlto
# ac_cv_path_install='/usr/bin/install -c'
# ac_cv_path_mkdir=/usr/bin/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
#
# ## ----------------- ##
# ## Output variables. ##
# ## ----------------- ##
#
# ACLOCAL='${SHELL} /tmp/pm-utils/src/pm-utils-1.4.1/missing --run aclocal-1.11'
# AMDEPBACKSLASH='\'
# AMDEP_FALSE='#'
# AMDEP_TRUE=''
# AMTAR='${SHELL} /tmp/pm-utils/src/pm-utils-1.4.1/missing --run tar'
# AUTOCONF='${SHELL} /tmp/pm-utils/src/pm-utils-1.4.1/missing --run autoconf'
# AUTOHEADER='${SHELL} /tmp/pm-utils/src/pm-utils-1.4.1/missing --run autoheader'
# AUTOMAKE='${SHELL} /tmp/pm-utils/src/pm-utils-1.4.1/missing --run automake-1.11'
# 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=''
# HAVE_XMLTO_FALSE='#'
# HAVE_XMLTO_TRUE=''
# INSTALL_DATA='${INSTALL} -m 644'
# INSTALL_PROGRAM='${INSTALL}'
# INSTALL_SCRIPT='${INSTALL}'
# INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
# LDFLAGS=''
# LIBOBJS=''
# LIBS=''
# LN_S='ln -s'
# LTLIBOBJS=''
# MAKEINFO='${SHELL} /tmp/pm-utils/src/pm-utils-1.4.1/missing --run makeinfo'
# MKDIR_P='/usr/bin/mkdir -p'
# OBJEXT='o'
# PACKAGE='pm-utils'
# PACKAGE_BUGREPORT=''
# PACKAGE_NAME='pm-utils'
# PACKAGE_STRING='pm-utils 1.4.1'
# PACKAGE_TARNAME='pm-utils'
# PACKAGE_URL=''
# PACKAGE_VERSION='1.4.1'
# PATH_SEPARATOR=':'
# SET_MAKE=''
# SHELL='/bin/sh'
# STRIP='strip'
# VERSION='1.4.1'
# XMLTO='/usr/bin/xmlto'
# ac_ct_CC=''
# am__EXEEXT_FALSE=''
# am__EXEEXT_TRUE='#'
# am__fastdepCC_FALSE='#'
# am__fastdepCC_TRUE=''
# am__include='include'
# am__isrc=''
# am__leading_dot='.'
# am__quote=''
# am__tar='${AMTAR} chof - "$$tardir"'
# am__untar='${AMTAR} 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/pm-utils/src/pm-utils-1.4.1/install-sh'
# libdir='${exec_prefix}/lib'
# libexecdir='${exec_prefix}/libexec'
# localedir='${datarootdir}/locale'
# localstatedir='/var'
# mandir='${datarootdir}/man'
# mkdir_p='/usr/bin/mkdir -p'
# oldincludedir='/usr/include'
# pdfdir='${docdir}'
# prefix='/usr'
# program_transform_name='s,x,x,'
# psdir='${docdir}'
# sbindir='/usr/bin'
# sharedstatedir='${prefix}/com'
# sysconfdir='/etc'
# target_alias=''
#
# ## ----------- ##
# ## confdefs.h. ##
# ## ----------- ##
#
# /* confdefs.h */
# #define PACKAGE_NAME "pm-utils"
# #define PACKAGE_TARNAME "pm-utils"
# #define PACKAGE_VERSION "1.4.1"
# #define PACKAGE_STRING "pm-utils 1.4.1"
# #define PACKAGE_BUGREPORT ""
# #define PACKAGE_URL ""
# #define PACKAGE "pm-utils"
# #define VERSION "1.4.1"
#
# configure: exit 0