Skip to content

Fails to compile with GCC 15 #199

@JamieMagee

Description

@JamieMagee

It looks like libgpg-error is causing the Ruby gem installation to fail:

t-printf.c:452:18: error: expected identifier or ‘(’ before ‘nullptr’
  452 |   volatile char *nullptr = NULL; /* Avoid compiler warning.  */
      |                  ^~~~~~~

Here's the code upstream: https://github.com/gpg/libgpg-error/blob/99381397a06564fd8ae1c623c11036a5da099a4f/tests/t-printf.c#L452

Full Build Output
current directory: /home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ext/gpgme
/home/jamie/.local/share/mise/installs/ruby/3.3.8/bin/ruby extconf.rb
************************************************************************
IMPORTANT!  gpgme gem uses locally built versions of required C libraries,
namely libgpg-error, libassuan, and gpgme.

If this is a concern for you and you want to use the system library
instead, abort this installation process and reinstall gpgme gem as
follows:

    gem install gpgme -- --use-system-libraries

************************************************************************
Ignoring gpgme-2.0.24 because its extensions are not built. Try: gem pristine gpgme --version 2.0.24
Ignoring gpgme-2.0.23 because its extensions are not built. Try: gem pristine gpgme --version 2.0.23
Extracting libgpg-error-1.47.tar.bz2 into tmp/x86_64-pc-linux-gnu/ports/libgpg-error/1.47... OK
Running 'configure' for libgpg-error 1.47... OK
Running 'compile' for libgpg-error 1.47... ERROR. Please review logs to see what happened:
----- contents of '/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ext/gpgme/tmp/x86_64-pc-linux-gnu/ports/libgpg-error/1.47/compile.log' -----
make  all-recursive
make[1]: Entering directory '/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ext/gpgme/tmp/x86_64-pc-linux-gnu/ports/libgpg-error/1.47/libgpg-error-1.47'
Making all in m4
make[2]: Entering directory '/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ext/gpgme/tmp/x86_64-pc-linux-gnu/ports/libgpg-error/1.47/libgpg-error-1.47/m4'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ext/gpgme/tmp/x86_64-pc-linux-gnu/ports/libgpg-error/1.47/libgpg-error-1.47/m4'
Making all in src
make[2]: Entering directory '/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ext/gpgme/tmp/x86_64-pc-linux-gnu/ports/libgpg-error/1.47/libgpg-error-1.47/src'
gawk -f ./mkerrnos.awk ./errnos.in >code-to-errno.h
gawk -f ./mkerrcodes1.awk ./errnos.in >_mkerrcodes.h
gcc -E  -P _mkerrcodes.h | grep GPG_ERR_ | \
               gawk -f ./mkerrcodes.awk >mkerrcodes.h
rm _mkerrcodes.h
gcc   \
 -I. -I. -o mkerrcodes ./mkerrcodes.c
./mkerrcodes | gawk -f ./mkerrcodes2.awk >code-from-errno.h
gawk -f ./mkstrtable.awk -v textidx=2 -v nogettext=1 \
	./err-sources.h.in >err-sources-sym.h
gawk -f ./mkstrtable.awk -v textidx=2 -v nogettext=1 \
	./err-codes.h.in >err-codes-sym.h
gawk -f ./mkstrtable.awk -v textidx=2 -v nogettext=1 \
	-v prefix=GPG_ERR_ -v pkg_namespace=errnos_ \
	./errnos.in >errnos-sym.h
gcc   \
 -g -I. -I. -o mkheader ./mkheader.c
gcc -DHAVE_CONFIG_H -I. -I..     -fPIC  -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT gen-posix-lock-obj.o -MD -MP -MF .deps/gen-posix-lock-obj.Tpo -c -o gen-posix-lock-obj.o gen-posix-lock-obj.c
mv -f .deps/gen-posix-lock-obj.Tpo .deps/gen-posix-lock-obj.Po
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -fPIC  -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden   -o gen-posix-lock-obj gen-posix-lock-obj.o  
libtool: link: gcc -fPIC -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -o gen-posix-lock-obj gen-posix-lock-obj.o 
./gen-posix-lock-obj >lock-obj-pub.native.h
:
./mkheader        \
                   x86_64-pc-linux-gnu  ./gpg-error.h.in \
                   ../config.h 1.47 0x012f00 >gpg-error.h
cp gpg-error.h gpgrt.h
cat ./gpg-error.def.in >_gpg-error.def.h
gcc -E -I. -I..  _gpg-error.def.h | \
  grep -v '^#' >gpg-error.def
rm _gpg-error.def.h
make  all-am
make[3]: Entering directory '/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ext/gpgme/tmp/x86_64-pc-linux-gnu/ports/libgpg-error/1.47/libgpg-error-1.47/src'
gcc -DHAVE_CONFIG_H -I. -I..  -DPKGDATADIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/libgpg-error\" -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\"   -fPIC  -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT gpg_error-strsource-sym.o -MD -MP -MF .deps/gpg_error-strsource-sym.Tpo -c -o gpg_error-strsource-sym.o `test -f 'strsource-sym.c' || echo './'`strsource-sym.c
mv -f .deps/gpg_error-strsource-sym.Tpo .deps/gpg_error-strsource-sym.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DPKGDATADIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/libgpg-error\" -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\"   -fPIC  -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT gpg_error-strerror-sym.o -MD -MP -MF .deps/gpg_error-strerror-sym.Tpo -c -o gpg_error-strerror-sym.o `test -f 'strerror-sym.c' || echo './'`strerror-sym.c
mv -f .deps/gpg_error-strerror-sym.Tpo .deps/gpg_error-strerror-sym.Po
gcc -DHAVE_CONFIG_H -I. -I..  -DPKGDATADIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/libgpg-error\" -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\"   -fPIC  -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT gpg_error-gpg-error.o -MD -MP -MF .deps/gpg_error-gpg-error.Tpo -c -o gpg_error-gpg-error.o `test -f 'gpg-error.c' || echo './'`gpg-error.c
mv -f .deps/gpg_error-gpg-error.Tpo .deps/gpg_error-gpg-error.Po
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\"   -fPIC  -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT libgpg_error_la-posix-lock.lo -MD -MP -MF .deps/libgpg_error_la-posix-lock.Tpo -c -o libgpg_error_la-posix-lock.lo `test -f 'posix-lock.c' || echo './'`posix-lock.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\" -fPIC -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT libgpg_error_la-posix-lock.lo -MD -MP -MF .deps/libgpg_error_la-posix-lock.Tpo -c posix-lock.c -o libgpg_error_la-posix-lock.o
mv -f .deps/libgpg_error_la-posix-lock.Tpo .deps/libgpg_error_la-posix-lock.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\"   -fPIC  -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT libgpg_error_la-posix-thread.lo -MD -MP -MF .deps/libgpg_error_la-posix-thread.Tpo -c -o libgpg_error_la-posix-thread.lo `test -f 'posix-thread.c' || echo './'`posix-thread.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\" -fPIC -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT libgpg_error_la-posix-thread.lo -MD -MP -MF .deps/libgpg_error_la-posix-thread.Tpo -c posix-thread.c -o libgpg_error_la-posix-thread.o
mv -f .deps/libgpg_error_la-posix-thread.Tpo .deps/libgpg_error_la-posix-thread.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\"   -fPIC  -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT libgpg_error_la-spawn-posix.lo -MD -MP -MF .deps/libgpg_error_la-spawn-posix.Tpo -c -o libgpg_error_la-spawn-posix.lo `test -f 'spawn-posix.c' || echo './'`spawn-posix.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\" -fPIC -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT libgpg_error_la-spawn-posix.lo -MD -MP -MF .deps/libgpg_error_la-spawn-posix.Tpo -c spawn-posix.c -o libgpg_error_la-spawn-posix.o
mv -f .deps/libgpg_error_la-spawn-posix.Tpo .deps/libgpg_error_la-spawn-posix.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\"   -fPIC  -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT libgpg_error_la-init.lo -MD -MP -MF .deps/libgpg_error_la-init.Tpo -c -o libgpg_error_la-init.lo `test -f 'init.c' || echo './'`init.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\" -fPIC -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT libgpg_error_la-init.lo -MD -MP -MF .deps/libgpg_error_la-init.Tpo -c init.c -o libgpg_error_la-init.o
mv -f .deps/libgpg_error_la-init.Tpo .deps/libgpg_error_la-init.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\"   -fPIC  -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT libgpg_error_la-version.lo -MD -MP -MF .deps/libgpg_error_la-version.Tpo -c -o libgpg_error_la-version.lo `test -f 'version.c' || echo './'`version.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\" -fPIC -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT libgpg_error_la-version.lo -MD -MP -MF .deps/libgpg_error_la-version.Tpo -c version.c -o libgpg_error_la-version.o
mv -f .deps/libgpg_error_la-version.Tpo .deps/libgpg_error_la-version.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\"   -fPIC  -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT libgpg_error_la-estream.lo -MD -MP -MF .deps/libgpg_error_la-estream.Tpo -c -o libgpg_error_la-estream.lo `test -f 'estream.c' || echo './'`estream.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\" -fPIC -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT libgpg_error_la-estream.lo -MD -MP -MF .deps/libgpg_error_la-estream.Tpo -c estream.c -o libgpg_error_la-estream.o
mv -f .deps/libgpg_error_la-estream.Tpo .deps/libgpg_error_la-estream.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\"   -fPIC  -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT libgpg_error_la-estream-printf.lo -MD -MP -MF .deps/libgpg_error_la-estream-printf.Tpo -c -o libgpg_error_la-estream-printf.lo `test -f 'estream-printf.c' || echo './'`estream-printf.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\" -fPIC -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT libgpg_error_la-estream-printf.lo -MD -MP -MF .deps/libgpg_error_la-estream-printf.Tpo -c estream-printf.c -o libgpg_error_la-estream-printf.o
mv -f .deps/libgpg_error_la-estream-printf.Tpo .deps/libgpg_error_la-estream-printf.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\"   -fPIC  -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT libgpg_error_la-strsource.lo -MD -MP -MF .deps/libgpg_error_la-strsource.Tpo -c -o libgpg_error_la-strsource.lo `test -f 'strsource.c' || echo './'`strsource.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\" -fPIC -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT libgpg_error_la-strsource.lo -MD -MP -MF .deps/libgpg_error_la-strsource.Tpo -c strsource.c -o libgpg_error_la-strsource.o
mv -f .deps/libgpg_error_la-strsource.Tpo .deps/libgpg_error_la-strsource.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\"   -fPIC  -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT libgpg_error_la-strerror.lo -MD -MP -MF .deps/libgpg_error_la-strerror.Tpo -c -o libgpg_error_la-strerror.lo `test -f 'strerror.c' || echo './'`strerror.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\" -fPIC -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT libgpg_error_la-strerror.lo -MD -MP -MF .deps/libgpg_error_la-strerror.Tpo -c strerror.c -o libgpg_error_la-strerror.o
mv -f .deps/libgpg_error_la-strerror.Tpo .deps/libgpg_error_la-strerror.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\"   -fPIC  -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT libgpg_error_la-code-to-errno.lo -MD -MP -MF .deps/libgpg_error_la-code-to-errno.Tpo -c -o libgpg_error_la-code-to-errno.lo `test -f 'code-to-errno.c' || echo './'`code-to-errno.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\" -fPIC -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT libgpg_error_la-code-to-errno.lo -MD -MP -MF .deps/libgpg_error_la-code-to-errno.Tpo -c code-to-errno.c -o libgpg_error_la-code-to-errno.o
mv -f .deps/libgpg_error_la-code-to-errno.Tpo .deps/libgpg_error_la-code-to-errno.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\"   -fPIC  -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT libgpg_error_la-code-from-errno.lo -MD -MP -MF .deps/libgpg_error_la-code-from-errno.Tpo -c -o libgpg_error_la-code-from-errno.lo `test -f 'code-from-errno.c' || echo './'`code-from-errno.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\" -fPIC -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT libgpg_error_la-code-from-errno.lo -MD -MP -MF .deps/libgpg_error_la-code-from-errno.Tpo -c code-from-errno.c -o libgpg_error_la-code-from-errno.o
mv -f .deps/libgpg_error_la-code-from-errno.Tpo .deps/libgpg_error_la-code-from-errno.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\"   -fPIC  -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT libgpg_error_la-visibility.lo -MD -MP -MF .deps/libgpg_error_la-visibility.Tpo -c -o libgpg_error_la-visibility.lo `test -f 'visibility.c' || echo './'`visibility.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\" -fPIC -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT libgpg_error_la-visibility.lo -MD -MP -MF .deps/libgpg_error_la-visibility.Tpo -c visibility.c -o libgpg_error_la-visibility.o
mv -f .deps/libgpg_error_la-visibility.Tpo .deps/libgpg_error_la-visibility.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\"   -fPIC  -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT libgpg_error_la-sysutils.lo -MD -MP -MF .deps/libgpg_error_la-sysutils.Tpo -c -o libgpg_error_la-sysutils.lo `test -f 'sysutils.c' || echo './'`sysutils.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\" -fPIC -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT libgpg_error_la-sysutils.lo -MD -MP -MF .deps/libgpg_error_la-sysutils.Tpo -c sysutils.c -o libgpg_error_la-sysutils.o
mv -f .deps/libgpg_error_la-sysutils.Tpo .deps/libgpg_error_la-sysutils.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\"   -fPIC  -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT libgpg_error_la-stringutils.lo -MD -MP -MF .deps/libgpg_error_la-stringutils.Tpo -c -o libgpg_error_la-stringutils.lo `test -f 'stringutils.c' || echo './'`stringutils.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\" -fPIC -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT libgpg_error_la-stringutils.lo -MD -MP -MF .deps/libgpg_error_la-stringutils.Tpo -c stringutils.c -o libgpg_error_la-stringutils.o
mv -f .deps/libgpg_error_la-stringutils.Tpo .deps/libgpg_error_la-stringutils.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\"   -fPIC  -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT libgpg_error_la-syscall-clamp.lo -MD -MP -MF .deps/libgpg_error_la-syscall-clamp.Tpo -c -o libgpg_error_la-syscall-clamp.lo `test -f 'syscall-clamp.c' || echo './'`syscall-clamp.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\" -fPIC -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT libgpg_error_la-syscall-clamp.lo -MD -MP -MF .deps/libgpg_error_la-syscall-clamp.Tpo -c syscall-clamp.c -o libgpg_error_la-syscall-clamp.o
mv -f .deps/libgpg_error_la-syscall-clamp.Tpo .deps/libgpg_error_la-syscall-clamp.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\"   -fPIC  -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT libgpg_error_la-logging.lo -MD -MP -MF .deps/libgpg_error_la-logging.Tpo -c -o libgpg_error_la-logging.lo `test -f 'logging.c' || echo './'`logging.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\" -fPIC -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT libgpg_error_la-logging.lo -MD -MP -MF .deps/libgpg_error_la-logging.Tpo -c logging.c -o libgpg_error_la-logging.o
mv -f .deps/libgpg_error_la-logging.Tpo .deps/libgpg_error_la-logging.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\"   -fPIC  -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT libgpg_error_la-b64dec.lo -MD -MP -MF .deps/libgpg_error_la-b64dec.Tpo -c -o libgpg_error_la-b64dec.lo `test -f 'b64dec.c' || echo './'`b64dec.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\" -fPIC -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT libgpg_error_la-b64dec.lo -MD -MP -MF .deps/libgpg_error_la-b64dec.Tpo -c b64dec.c -o libgpg_error_la-b64dec.o
mv -f .deps/libgpg_error_la-b64dec.Tpo .deps/libgpg_error_la-b64dec.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\"   -fPIC  -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT libgpg_error_la-b64enc.lo -MD -MP -MF .deps/libgpg_error_la-b64enc.Tpo -c -o libgpg_error_la-b64enc.lo `test -f 'b64enc.c' || echo './'`b64enc.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\" -fPIC -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT libgpg_error_la-b64enc.lo -MD -MP -MF .deps/libgpg_error_la-b64enc.Tpo -c b64enc.c -o libgpg_error_la-b64enc.o
mv -f .deps/libgpg_error_la-b64enc.Tpo .deps/libgpg_error_la-b64enc.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\"   -fPIC  -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT libgpg_error_la-argparse.lo -MD -MP -MF .deps/libgpg_error_la-argparse.Tpo -c -o libgpg_error_la-argparse.lo `test -f 'argparse.c' || echo './'`argparse.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/share/locale\" -fPIC -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT libgpg_error_la-argparse.lo -MD -MP -MF .deps/libgpg_error_la-argparse.Tpo -c argparse.c -o libgpg_error_la-argparse.o
mv -f .deps/libgpg_error_la-argparse.Tpo .deps/libgpg_error_la-argparse.Plo
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -fPIC  -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -no-undefined  -Wl,--version-script=./gpg-error.vers  -version-info 34:0:34  -o libgpg-error.la -rpath /home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ports/x86_64-pc-linux-gnu/libgpg-error/1.47/lib libgpg_error_la-posix-lock.lo libgpg_error_la-posix-thread.lo libgpg_error_la-spawn-posix.lo libgpg_error_la-init.lo libgpg_error_la-version.lo libgpg_error_la-estream.lo libgpg_error_la-estream-printf.lo libgpg_error_la-strsource.lo libgpg_error_la-strerror.lo libgpg_error_la-code-to-errno.lo libgpg_error_la-code-from-errno.lo libgpg_error_la-visibility.lo libgpg_error_la-sysutils.lo libgpg_error_la-stringutils.lo libgpg_error_la-syscall-clamp.lo libgpg_error_la-logging.lo libgpg_error_la-b64dec.lo libgpg_error_la-b64enc.lo libgpg_error_la-argparse.lo      
libtool: link: ar cru .libs/libgpg-error.a  libgpg_error_la-posix-lock.o libgpg_error_la-posix-thread.o libgpg_error_la-spawn-posix.o libgpg_error_la-init.o libgpg_error_la-version.o libgpg_error_la-estream.o libgpg_error_la-estream-printf.o libgpg_error_la-strsource.o libgpg_error_la-strerror.o libgpg_error_la-code-to-errno.o libgpg_error_la-code-from-errno.o libgpg_error_la-visibility.o libgpg_error_la-sysutils.o libgpg_error_la-stringutils.o libgpg_error_la-syscall-clamp.o libgpg_error_la-logging.o libgpg_error_la-b64dec.o libgpg_error_la-b64enc.o libgpg_error_la-argparse.o
ar: `u' modifier ignored since `D' is the default (see `U')
libtool: link: ranlib .libs/libgpg-error.a
libtool: link: ( cd ".libs" && rm -f "libgpg-error.la" && ln -s "../libgpg-error.la" "libgpg-error.la" )
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -fPIC  -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden   -o gpg-error gpg_error-strsource-sym.o gpg_error-strerror-sym.o gpg_error-gpg-error.o libgpg-error.la  
libtool: link: gcc -fPIC -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -o gpg-error gpg_error-strsource-sym.o gpg_error-strerror-sym.o gpg_error-gpg-error.o  ./.libs/libgpg-error.a
Confirm gpg-error-config works... good
cp gpg-error-config-old gpg-error-config
make[3]: Leaving directory '/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ext/gpgme/tmp/x86_64-pc-linux-gnu/ports/libgpg-error/1.47/libgpg-error-1.47/src'
make[2]: Leaving directory '/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ext/gpgme/tmp/x86_64-pc-linux-gnu/ports/libgpg-error/1.47/libgpg-error-1.47/src'
Making all in doc
make[2]: Entering directory '/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ext/gpgme/tmp/x86_64-pc-linux-gnu/ports/libgpg-error/1.47/libgpg-error-1.47/doc'
gcc -DHAVE_CONFIG_H -I. -I..    -DPACKAGE_VERSION="\"1.47\"" -fPIC  -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT yat2m-yat2m.o -MD -MP -MF .deps/yat2m-yat2m.Tpo -c -o yat2m-yat2m.o `test -f 'yat2m.c' || echo './'`yat2m.c
mv -f .deps/yat2m-yat2m.Tpo .deps/yat2m-yat2m.Po
/bin/sh ../libtool  --tag=CC   --mode=link gcc -DPACKAGE_VERSION="\"1.47\"" -fPIC  -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden   -o yat2m yat2m-yat2m.o  
libtool: link: gcc -DPACKAGE_VERSION=\"1.47\" -fPIC -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -o yat2m yat2m-yat2m.o 
for file in gpgrt.texi ; do \
              ./yat2m -I . --release "Libgpg-error 1.47" --source "GnuPG" --store \
          `test -f '$file' || echo './'`$file ; done
make[2]: Leaving directory '/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ext/gpgme/tmp/x86_64-pc-linux-gnu/ports/libgpg-error/1.47/libgpg-error-1.47/doc'
Making all in tests
make[2]: Entering directory '/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ext/gpgme/tmp/x86_64-pc-linux-gnu/ports/libgpg-error/1.47/libgpg-error-1.47/tests'
gcc -DHAVE_CONFIG_H -I. -I..  -I../src   -fPIC  -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT t-version.o -MD -MP -MF .deps/t-version.Tpo -c -o t-version.o t-version.c
mv -f .deps/t-version.Tpo .deps/t-version.Po
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -fPIC  -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -no-install  -o t-version t-version.o ../src/libgpg-error.la  
libtool: link: gcc -fPIC -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -o t-version t-version.o  ../src/.libs/libgpg-error.a
gcc -DHAVE_CONFIG_H -I. -I..  -I../src   -fPIC  -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT t-strerror.o -MD -MP -MF .deps/t-strerror.Tpo -c -o t-strerror.o t-strerror.c
mv -f .deps/t-strerror.Tpo .deps/t-strerror.Po
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -fPIC  -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -no-install  -o t-strerror t-strerror.o ../src/libgpg-error.la  
libtool: link: gcc -fPIC -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -o t-strerror t-strerror.o  ../src/.libs/libgpg-error.a
gcc -DHAVE_CONFIG_H -I. -I..  -I../src   -fPIC  -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT t-syserror.o -MD -MP -MF .deps/t-syserror.Tpo -c -o t-syserror.o t-syserror.c
mv -f .deps/t-syserror.Tpo .deps/t-syserror.Po
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -fPIC  -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -no-install  -o t-syserror t-syserror.o ../src/libgpg-error.la  
libtool: link: gcc -fPIC -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -o t-syserror t-syserror.o  ../src/.libs/libgpg-error.a
gcc -DHAVE_CONFIG_H -I. -I..  -I../src   -fPIC  -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT t-lock.o -MD -MP -MF .deps/t-lock.Tpo -c -o t-lock.o t-lock.c
mv -f .deps/t-lock.Tpo .deps/t-lock.Po
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -fPIC  -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -no-install  -o t-lock t-lock.o ../src/libgpg-error.la   
libtool: link: gcc -fPIC -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -o t-lock t-lock.o  ../src/.libs/libgpg-error.a
gcc -DHAVE_CONFIG_H -I. -I..  -I../src   -fPIC  -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT t-printf.o -MD -MP -MF .deps/t-printf.Tpo -c -o t-printf.o t-printf.c
t-printf.c: In function ‘check_fprintf_sf’:
t-printf.c:452:18: error: expected identifier or ‘(’ before ‘nullptr’
  452 |   volatile char *nullptr = NULL; /* Avoid compiler warning.  */
      |                  ^~~~~~~
t-printf.c:463:23: warning: format ‘%s’ expects argument of type ‘char *’, but argument 5 has type ‘typeof (nullptr)’ [-Wformat=]
  463 |                     "%s a=%d b=%s c=%d d=%.8s null=%s\n",
      |                      ~^
      |                       |
      |                       char *
  464 |                     nullptr, 1, "foo\x01 bar", 2,
      |                     ~~~~~~~
      |                     |
      |                     typeof (nullptr)
t-printf.c:463:53: warning: format ‘%s’ expects argument of type ‘char *’, but argument 10 has type ‘typeof (nullptr)’ [-Wformat=]
  463 |                     "%s a=%d b=%s c=%d d=%.8s null=%s\n",
      |                                                    ~^
      |                                                     |
      |                                                     char *
  464 |                     nullptr, 1, "foo\x01 bar", 2,
  465 |                     "a longer string", nullptr);
      |                                        ~~~~~~~       
      |                                        |
      |                                        typeof (nullptr)
t-printf.c:477:42: warning: format ‘%s’ expects argument of type ‘char *’, but argument 8 has type ‘typeof (nullptr)’ [-Wformat=]
  477 |                     "a=%d b=%s c=%d d=%.8s e=%s\n",
      |                                       ~~~^
      |                                          |
      |                                          char *
  478 |                     1, "foo\n bar", 2, nullptr, "");
      |                                        ~~~~~~~
      |                                        |
      |                                        typeof (nullptr)
make[2]: *** [Makefile:584: t-printf.o] Error 1
make[2]: Leaving directory '/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ext/gpgme/tmp/x86_64-pc-linux-gnu/ports/libgpg-error/1.47/libgpg-error-1.47/tests'
make[1]: *** [Makefile:517: all-recursive] Error 1
make[1]: Leaving directory '/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/gpgme-2.0.24/ext/gpgme/tmp/x86_64-pc-linux-gnu/ports/libgpg-error/1.47/libgpg-error-1.47'
make: *** [Makefile:449: all] Error 2
----- end of file -----
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
	--with-opt-dir
	--without-opt-dir
	--with-opt-include=${opt-dir}/include
	--without-opt-include
	--with-opt-lib=${opt-dir}/lib
	--without-opt-lib
	--with-make-prog
	--without-make-prog
	--srcdir=.
	--curdir
	--ruby=/home/jamie/.local/share/mise/installs/ruby/3.3.8/bin/$(RUBY_BASE_NAME)
	--clean
	--use-system-libraries
/home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/mini_portile2-2.8.9/lib/mini_portile2/mini_portile.rb:628:in `block in execute': Failed to complete compile task (RuntimeError)
	from /home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/mini_portile2-2.8.9/lib/mini_portile2/mini_portile.rb:594:in `chdir'
	from /home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/mini_portile2-2.8.9/lib/mini_portile2/mini_portile.rb:594:in `execute'
	from /home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/mini_portile2-2.8.9/lib/mini_portile2/mini_portile.rb:195:in `compile'
	from /home/jamie/.local/share/mise/installs/ruby/3.3.8/lib/ruby/gems/3.3.0/gems/mini_portile2-2.8.9/lib/mini_portile2/mini_portile.rb:238:in `cook'
	from extconf.rb:83:in `block in <main>'
	from <internal:kernel>:90:in `tap'
	from extconf.rb:68:in `<main>'

extconf failed, exit code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions