You are not logged in.
I am trying to build the Butt package from the AUR which builds and runs fine on my native Arch install on an AMD Ryzen 7 system. I am trying to build it inside a QEMU VM of Arch. Both OSes I installed the x86_64 version of Arch, and both installed base-devel. The makepkg fails and says something about GCC not being able to create an executable. The config.log output is massive and inscrutable to me. Any ideas? Thanks.
makepkg output
==> Making package: butt 0.1.37-1 (Tue 16 May 2023 11:17:07 PM CDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found butt-0.1.37.tar.gz
==> Validating source files with b2sums...
butt-0.1.37.tar.gz ... Passed
==> Extracting sources...
-> Extracting butt-0.1.37.tar.gz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
dirname: missing operand
Try 'dirname --help' for more information.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for g++... g++
checking whether the C++ compiler works... no
configure: error: in `/home/wil/Downloads/butt/src/butt-0.1.37':
configure: error: C++ compiler cannot create executables
See `config.log' for more details
==> ERROR: A failure occurred in build().
Aborting...
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 butt configure 0.1.37, which was
generated by GNU Autoconf 2.71. Invocation command line was
$ ./configure --prefix=/usr LDFLAGS=-L
## --------- ##
## Platform. ##
## --------- ##
hostname = pLAN9-MusicVM
uname -m = x86_64
uname -r = 6.3.2-arch1-1
uname -s = Linux
uname -v = #1 SMP PREEMPT_DYNAMIC Thu, 11 May 2023 16:40:42 +0000
/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: /usr/local/sbin/
PATH: /usr/local/bin/
PATH: /usr/bin/
PATH: /usr/bin/site_perl/
PATH: /usr/bin/vendor_perl/
PATH: /usr/bin/core_perl/
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2837: looking for aux files: config.rpath compile config.guess config.sub missing install-sh
configure:2850: trying ./
configure:2879: ./config.rpath found
configure:2879: ./compile found
configure:2879: ./config.guess found
configure:2879: ./config.sub found
configure:2879: ./missing found
configure:2861: ./install-sh found
configure:3008: checking for a BSD-compatible install
configure:3081: result: /usr/bin/install -c
configure:3092: checking whether build environment is sane
configure:3147: result: yes
configure:3306: checking for a race-free mkdir -p
configure:3350: result: /usr/bin/mkdir -p
configure:3357: checking for gawk
configure:3378: found /usr/bin/gawk
configure:3389: result: gawk
configure:3400: checking whether make sets $(MAKE)
configure:3423: result: yes
configure:3453: checking whether make supports nested variables
configure:3471: result: yes
configure:3613: checking build system type
configure:3628: result: x86_64-pc-linux-gnu
configure:3648: checking host system type
configure:3662: result: x86_64-pc-linux-gnu
configure:3763: checking for g++
configure:3784: found /usr/bin/g++
configure:3795: result: g++
configure:3822: checking for C++ compiler version
configure:3831: g++ --version >&5
g++ (GCC) 13.1.1 20230429
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:3842: $? = 0
configure:3831: g++ -v >&5
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --enable-languages=ada,c,c++,d,fortran,go,lto,objc,obj-c++ --enable-bootstrap --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --with-build-config=bootstrap-lto --with-linker-hash-style=gnu --with-system-zlib --enable-__cxa_atexit --enable-cet=auto --enable-checking=release --enable-clocale=gnu --enable-default-pie --enable-default-ssp --enable-gnu-indirect-function --enable-gnu-unique-object --enable-libstdcxx-backtrace --enable-link-serialization=1 --enable-linker-build-id --enable-lto --enable-multilib --enable-plugin --enable-shared --enable-threads=posix --disable-libssp --disable-libstdcxx-pch --disable-werror
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.1.1 20230429 (GCC)
configure:3842: $? = 0
configure:3831: g++ -V >&5
g++: error: unrecognized command-line option '-V'
g++: fatal error: no input files
compilation terminated.
configure:3842: $? = 1
configure:3831: g++ -qversion >&5
g++: error: unrecognized command-line option '-qversion'; did you mean '--version'?
g++: fatal error: no input files
compilation terminated.
configure:3842: $? = 1
configure:3862: checking whether the C++ compiler works
configure:3884: g++ -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -O2 -L conftest.cpp >&5
g++: fatal error: no input files
compilation terminated.
configure:3888: $? = 1
configure:3928: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "butt"
| #define PACKAGE_TARNAME "butt"
| #define PACKAGE_VERSION "0.1.37"
| #define PACKAGE_STRING "butt 0.1.37"
| #define PACKAGE_BUGREPORT "BUG-REPORT-ADDRESS"
| #define PACKAGE_URL ""
| #define PACKAGE "butt"
| #define VERSION "0.1.37"
| /* end confdefs.h. */
|
| int
| main (void)
| {
|
| ;
| return 0;
| }
configure:3933: error: in `/home/wil/Downloads/butt/src/butt-0.1.37':
configure:3935: error: C++ compiler cannot create executables
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=x86_64-pc-linux-gnu
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS'
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_DBUS_CFLAGS_set=
ac_cv_env_DBUS_CFLAGS_value=
ac_cv_env_DBUS_LIBS_set=
ac_cv_env_DBUS_LIBS_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=-L
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_OBJCFLAGS_set=
ac_cv_env_OBJCFLAGS_value=
ac_cv_env_OBJC_set=
ac_cv_env_OBJC_value=
ac_cv_env_PKG_CONFIG_LIBDIR_set=
ac_cv_env_PKG_CONFIG_LIBDIR_value=
ac_cv_env_PKG_CONFIG_PATH_set=
ac_cv_env_PKG_CONFIG_PATH_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_XMKMF_set=
ac_cv_env_XMKMF_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-pc-linux-gnu
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/usr/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_make_make_set=yes
am_cv_make_support_nested_variables=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} '\''/home/wil/Downloads/butt/src/butt-0.1.37/missing'\'' aclocal-1.16'
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} '\''/home/wil/Downloads/butt/src/butt-0.1.37/missing'\'' autoconf'
AUTOHEADER='${SHELL} '\''/home/wil/Downloads/butt/src/butt-0.1.37/missing'\'' autoheader'
AUTOMAKE='${SHELL} '\''/home/wil/Downloads/butt/src/butt-0.1.37/missing'\'' automake-1.16'
AWK='gawk'
CC=''
CCDEPMODE=''
CFLAGS='-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection'
CLIENT_ONLY_FALSE=''
CLIENT_ONLY_TRUE=''
CPP=''
CPPFLAGS=''
CSCOPE='cscope'
CTAGS='ctags'
CXX='g++'
CXXDEPMODE=''
CXXFLAGS='-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -O2'
CYGPATH_W='echo'
DBUS_CFLAGS=''
DBUS_LIBS=''
DEFS=''
DEPDIR=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ETAGS='etags'
EXEEXT=''
FLTKCONFIG=''
FREEBSD_FALSE=''
FREEBSD_TRUE=''
GETTEXT_MACRO_VERSION=''
GMSGFMT=''
GMSGFMT_015=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
INTLLIBS=''
INTL_MACOSX_LIBS=''
LDFLAGS='-L'
LIBICONV=''
LIBINTL=''
LIBOBJS=''
LIBS=''
LINUX_FALSE=''
LINUX_TRUE=''
LTLIBICONV=''
LTLIBINTL=''
LTLIBOBJS=''
MAKEINFO='${SHELL} '\''/home/wil/Downloads/butt/src/butt-0.1.37/missing'\'' makeinfo'
MKDIR_P='/usr/bin/mkdir -p'
MSGFMT=''
MSGFMT_015=''
MSGMERGE=''
OBJC=''
OBJCDEPMODE=''
OBJCFLAGS=''
OBJEXT=''
OSX_FALSE=''
OSX_TRUE=''
PACKAGE='butt'
PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS'
PACKAGE_NAME='butt'
PACKAGE_STRING='butt 0.1.37'
PACKAGE_TARNAME='butt'
PACKAGE_URL=''
PACKAGE_VERSION='0.1.37'
PATH_SEPARATOR=':'
PKG_CONFIG=''
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH=''
POSUB=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
USE_NLS=''
VERSION='0.1.37'
WINDOWS_FALSE=''
WINDOWS_TRUE=''
WITH_CLIENT_FALSE=''
WITH_CLIENT_TRUE=''
WITH_RADIOCO_FALSE=''
WITH_RADIOCO_TRUE=''
XGETTEXT=''
XGETTEXT_015=''
XGETTEXT_EXTRA_OPTIONS=''
XMKMF=''
ac_ct_CC=''
ac_ct_CXX='g++'
ac_ct_OBJC=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__fastdepOBJC_FALSE=''
am__fastdepOBJC_TRUE=''
am__include=''
am__isrc=''
am__leading_dot='.'
am__nodep=''
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build='x86_64-pc-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='x86_64-pc-linux-gnu'
host_alias=''
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /home/wil/Downloads/butt/src/butt-0.1.37/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}'
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "butt"
#define PACKAGE_TARNAME "butt"
#define PACKAGE_VERSION "0.1.37"
#define PACKAGE_STRING "butt 0.1.37"
#define PACKAGE_BUGREPORT "BUG-REPORT-ADDRESS"
#define PACKAGE_URL ""
#define PACKAGE "butt"
#define VERSION "0.1.37"
configure: exit 77
Offline
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=-L
This seems to be the problem. Bad makepkg.conf?
Edit: or no, " $ ./configure --prefix=/usr LDFLAGS=-L" WTF, why are you setting that?
Edit2: " ./configure --prefix=/usr LDFLAGS="-L$(dirname $(fltk-config --libs))""
So $(dirname $(fltk-config --libs)) is coming back empty. Missing dep/makedep?
Last edited by Scimmia (2023-05-17 04:33:55)
Offline
No idea, I didn't change anything in makepkg.conf, either on the native system or the VM. What should the file look like?
Offline
Edit: or no, " $ ./configure --prefix=/usr LDFLAGS=-L" WTF, why are you setting that?
Uh i'm not, idk what you mean....
Offline
Edit2: " ./configure --prefix=/usr LDFLAGS="-L$(dirname $(fltk-config --libs))""
So $(dirname $(fltk-config --libs)) is coming back empty. Missing dep/makedep?
If you are asking if there are any missing dependencies, I checked and all 10 listed dependencies for the package are installed.
Offline
No, I'm saying that for one reason or another, dirname $(fltk-config --libs) is coming back empty. It could be a missing (as in non-listed) dep.
Offline
What is the output of
$ pacman -Qs fltk
$ fltk-config --libs
?
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline