AUR package build aborts

When I try to build jpilot from the AUR, using the pamac GUI, the build aborts. I suspect I’m just missing something in my build environment, since this worked before in a regular XFCE installation, whereas this time I’m trying after just reinstalling Manjaro XFCE from the minimal installation. But that’s just a guess.

I’m providing config.log below and would be happy to provide any more information needed:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.65.  Invocation command line was

  $ ./configure --prefix=/usr --enable-conduits --enable-libusb --with-libiconv --with-libpng

## --------- ##
## Platform. ##
## --------- ##

hostname = optiplex380
uname -m = x86_64
uname -r = 5.14.0-0-MANJARO
uname -s = Linux
uname -v = #1 SMP PREEMPT Mon Aug 30 10:49:07 UTC 2021

/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: /home/barry/.local/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/local/sbin
PATH: /usr/bin/site_perl
PATH: /usr/bin/vendor_perl
PATH: /usr/bin/core_perl


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2546: checking whether to enable maintainer-specific portions of Makefiles
configure:2555: result: no
configure:2642: checking build system type
configure:2656: result: x86_64-pc-linux-gnu
configure:2676: checking host system type
configure:2689: result: x86_64-pc-linux-gnu
configure:2709: checking target system type
configure:2722: result: x86_64-pc-linux-gnu
configure:2771: checking for a BSD-compatible install
configure:2839: result: /usr/bin/install -c
configure:2850: checking whether build environment is sane
configure:2900: result: yes
configure:3041: checking for a thread-safe mkdir -p
configure:3080: result: /usr/bin/mkdir -p
configure:3093: checking for gawk
configure:3109: found /usr/bin/gawk
configure:3120: result: gawk
configure:3131: checking whether make sets $(MAKE)
configure:3153: result: yes
configure:3283: checking for gcc
configure:3299: found /usr/bin/gcc
configure:3310: result: gcc
configure:3539: checking for C compiler version
configure:3548: gcc --version >&5
gcc (GCC) 11.1.0
Copyright (C) 2021 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:3559: $? = 0
configure:3548: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++,d --with-isl --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-install-libiberty --enable-linker-build-id --enable-lto --enable-multilib --enable-plugin --enable-shared --enable-threads=posix --disable-libssp --disable-libstdcxx-pch --disable-libunwind-exceptions --disable-werror gdc_include_dir=/usr/include/dlang/gdc
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.1.0 (GCC) 
configure:3559: $? = 0
configure:3548: gcc -V >&5
gcc: error: unrecognized command-line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3559: $? = 1
configure:3548: gcc -qversion >&5
gcc: error: unrecognized command-line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
configure:3559: $? = 1
configure:3579: checking whether the C compiler works
configure:3601: gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat =format-security -fstack-clash-protection -fcf-protection  -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now conftest.c  >&5
/usr/bin/ld: cannot find format-security: No such file or directory
collect2: error: ld returned 1 exit status
configure:3605: $? = 1
configure:3643: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define HOST_OS "x86_64-pc-linux-gnu"
| #define PACKAGE "pilot-link"
| #define VERSION "0.12.5"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3648: error: in `/var/tmp/pamac-build-barry/pilot-link/src/pilot-link-0.12.5':
configure:3652: 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_BLUEZ_CFLAGS_set=
ac_cv_env_BLUEZ_CFLAGS_value=
ac_cv_env_BLUEZ_LIBS_set=
ac_cv_env_BLUEZ_LIBS_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_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now
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_YACC_set=
ac_cv_env_YACC_value=
ac_cv_env_YFLAGS_set=
ac_cv_env_YFLAGS_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_CC=gcc
ac_cv_prog_make_make_set=yes
ac_cv_target=x86_64-pc-linux-gnu

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /var/tmp/pamac-build-barry/pilot-link/src/pilot-link-0.12.5/missing --run aclocal-1.11'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /var/tmp/pamac-build-barry/pilot-link/src/pilot-link-0.12.5/missing --run tar'
AR=''
AUTOCONF='${SHELL} /var/tmp/pamac-build-barry/pilot-link/src/pilot-link-0.12.5/missing --run autoconf'
AUTOHEADER='${SHELL} /var/tmp/pamac-build-barry/pilot-link/src/pilot-link-0.12.5/missing --run autoheader'
AUTOMAKE='${SHELL} /var/tmp/pamac-build-barry/pilot-link/src/pilot-link-0.12.5/missing --run automake-1.11'
AWK='gawk'
BLUEZ_CFLAGS=''
BLUEZ_LIBS=''
BUILD_XML_FALSE=''
BUILD_XML_TRUE=''
CAT_ENTRY_END=''
CAT_ENTRY_START=''
CC='gcc'
CCDEPMODE=''
CFLAGS='-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat =format-security -fstack-clash-protection -fcf-protection'
CPP=''
CPPFLAGS=''
CVS_BUILD_FALSE=''
CVS_BUILD_TRUE=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DOCBOOK_ROOT=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ENABLE_CONDUITS_FALSE=''
ENABLE_CONDUITS_TRUE=''
ENABLE_XSLTPROC_FALSE=''
ENABLE_XSLTPROC_TRUE=''
EXEEXT=''
F77=''
FFLAGS=''
FGREP=''
GREP=''
ICONV_CFLAGS=''
ICONV_LIBS=''
INCLUDED_POPT_FALSE=''
INCLUDED_POPT_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
JAR=''
JAVA=''
JAVABASE=''
JAVAC=''
JAVA_VERSION=''
LD=''
LDFLAGS='-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now'
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /var/tmp/pamac-build-barry/pilot-link/src/pilot-link-0.12.5/missing --run makeinfo'
MKDIR_P='/usr/bin/mkdir -p'
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='pilot-link'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PERL=''
PIC_LIBS=''
PILOT_LINK_MAJOR='12'
PILOT_LINK_MINOR='5'
PILOT_LINK_PATCH=''
PILOT_LINK_VERS='0'
PISOCK_AGE='0'
PISOCK_CURRENT='9'
PISOCK_REVISION='2'
PISYNC_AGE='0'
PISYNC_CURRENT='1'
PISYNC_REVISION='3'
PKG_CONFIG=''
PNG_CFLAGS=''
PNG_LIBS=''
POPT_INCLUDES=''
POPT_LIBS=''
PTHREAD_CC=''
PTHREAD_CFLAGS=''
PTHREAD_LIBS=''
PYTHON=''
PYTHON_CFLAGS=''
PYTHON_H=''
PYTHON_LIBS=''
PYTHON_VERSION=''
RANLIB=''
RL_LIBS=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
TCLSH_PROG=''
TCL_BIN_DIR=''
TCL_DEFS=''
TCL_EXTRA_CFLAGS=''
TCL_INCLUDES=''
TCL_LD_FLAGS=''
TCL_LIBS=''
TCL_LIB_FILE=''
TCL_LIB_FLAG=''
TCL_LIB_SPEC=''
TCL_SHLIB_LD_LIBS=''
TCL_SRC_DIR=''
TCL_STUB_LIB_FILE=''
TCL_STUB_LIB_FLAG=''
TCL_STUB_LIB_SPEC=''
TCL_VERSION=''
VERSION='0.12.5'
WISH_PROG=''
WITH_BLUEZ_FALSE=''
WITH_BLUEZ_TRUE=''
WITH_DARWINUSB_FALSE=''
WITH_DARWINUSB_TRUE=''
WITH_FREEBSDUSB_FALSE=''
WITH_FREEBSDUSB_TRUE=''
WITH_JAVA_FALSE=''
WITH_JAVA_TRUE=''
WITH_LIBUSB_FALSE=''
WITH_LIBUSB_TRUE=''
WITH_LINUXUSB_FALSE=''
WITH_LINUXUSB_TRUE=''
WITH_PERL_FALSE=''
WITH_PERL_TRUE=''
WITH_PYTHON_FALSE=''
WITH_PYTHON_TRUE=''
WITH_TCL_FALSE=''
WITH_TCL_TRUE=''
WITH_USB_FALSE=''
WITH_USB_TRUE=''
XML_CATALOG=''
XSLTPROC=''
XSLTPROC_FLAGS=''
YACC=''
YFLAGS=''
ac_ct_CC='gcc'
ac_ct_DUMPBIN=''
ac_ct_F77=''
acx_pthread_config=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} 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}'
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} /var/tmp/pamac-build-barry/pilot-link/src/pilot-link-0.12.5/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
lt_ECHO='echo'
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='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='x86_64-pc-linux-gnu'
target_alias=''
target_cpu='x86_64'
target_os='linux-gnu'
target_vendor='pc'
usb_libs=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define HOST_OS "x86_64-pc-linux-gnu"
#define PACKAGE "pilot-link"
#define VERSION "0.12.5"

configure: exit 77

See Arch User Repository - Manjaro as well as the recent comments on the AUR page.

Tip: When pasting terminal output on Discourse forums, one can either…

  • Highlight it and use the Preformatted text </> toolbar button.

  • Add three backticks ` above and below the text (Markdown):

    ```
    text
    ```

  • Use HTML:

    <pre><code>
    text
    </pre></code>

Please edit your post accordingly.

2 Likes

It would be meaningful to also provide the build errors.

Sorry about the messy terminal output. I’ve edited it, following your instructions.

Thanks for prompting me to take another look at the comments on the AUR page for jpilot. Unfortunately, doing what worked for “bitreactor” produced the same result as before for me.

If you mean listing them from the config.log file, for easier viewing, they are as follows:

gcc: error: unrecognized command-line option '-V'
gcc: fatal error: no input files
gcc: error: unrecognized command-line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
/usr/bin/ld: cannot find format-security: No such file or directory
collect2: error: ld returned 1 exit status
configure:3648: error: in `/var/tmp/pamac-build-barry/pilot-link/src/pilot-link-0.12.5':
configure:3652: error: C compiler cannot create executables

Being somewhat less frazzled than I was last night, I can see that I can also take this matter up with the maintainer of the AUR package for jpilot, in the comments. When a Manjaro user runs into a problem like this, as opposed to an Arch user, where do they usually go for advice - a forum like this, or the AUR package maintainer?

Sorry, i thought that was a log for something else.

Regarding support, AUR helpers such as pamac are not officially supported by Arch. But if you find similar error messages in the comments on the AUR page, it may still be relevant. Which is the case here: AUR (en) - jpilot

Both pilot-link and jpilot builded fine here; both dirty builds and in chroot

Have you base-devel installed?

sudo pacman -S --needed base-devel

1 Like

Yes, I have.

tha packages also builds using buildpkg so likely there is something borked on your system

Any ideas as to what might be borked? I could try to recreate my success in installing jpilot earlier this year by reinstalling Manjaro using the full XFCE installation, rather than the minimal one I just used. But obviously, I’d prefer to just install or tweak whatever’s wrong. Unless the minimal Manjaro installation is just known not to be as reliable.

Post the complete output of makepkg

cd /var/tmp/pamac-build-barry/pilot-link
makepkg

==> Making package: pilot-link 0.12.5-2 (Fri 17 Sep 2021 03:16:50 PM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found pilot-link-0.12.5.tar.bz2
  -> Found pilot-link-png14.patch
  -> Found config.guess
  -> Found config.sub
==> Validating source files with md5sums...
    pilot-link-0.12.5.tar.bz2 ... Passed
    pilot-link-png14.patch ... Passed
    config.guess ... Passed
    config.sub ... Passed
==> Extracting sources...
  -> Extracting pilot-link-0.12.5.tar.bz2 with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
patching file src/pilot-read-notepad.c
patching file src/pilot-read-palmpix.c
patching file src/pilot-read-screenshot.c
patching file src/pilot-read-veo.c
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/var/tmp/pamac-build-barry/pilot-link/src/pilot-link-0.12.5':
configure: error: C compiler cannot create executables
See `config.log' for more details.
==> ERROR: A failure occurred in build().
    Aborting...

What version of gcc do you have installed? Please post the output of:

pacman -Qs gcc
local/gcc 11.1.0-1 (base-devel)
    The GNU Compiler Collection - C and C++ frontends
local/gcc-libs 11.1.0-1
    Runtime libraries shipped by GCC
local/lib32-gcc-libs 11.1.0-1 (multilib-devel)
    32-bit runtime libraries shipped by GCC

I resolved the problem, at least for myself, by installing JPilot in Fedora. Since my intention was to export data from JPilot and use it with Android and other Linux PIM software, I no longer need JPilot.

Before doing this in Fedora, I reinstalled Manjaro, using the full, rather than minimal, installation. The same problem occurred.

I no longer have Manjaro installed, so I can’t easily do any more testing for anyone wanting to investigate this further. But I thank everyone who tried to help me resolve this.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.