[DRE-maint] Bug#1097822: ruby-pg-query: ftbfs with GCC-15

Matthias Klose doko at debian.org
Mon Feb 17 17:51:27 GMT 2025


Package: src:ruby-pg-query
Version: 4.2.3-2
Severity: important
Tags: sid forky
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-15

[This bug is NOT targeted to the upcoming trixie release]

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-15/g++-15, but succeeds to build with gcc-14/g++-14. The
severity of this report will be raised before the forky release.

The full build log can be found at:
http://qa-logs.debian.net/2025/02/16/amd64exp/ruby-pg-query_4.2.3-2_unstable_gccexp.log.gz
The last lines of the build log are at the end of this report.

To build with GCC 15, either set CC=gcc-15 CXX=g++-15 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

GCC 15 now defaults to the C23/C++23 standards, exposing many FTBFS.
Other Common build failures are new warnings resulting in build failures
with -Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-15/porting_to.html

[...]
/build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/lib/pg_query/treewalker.rb
/build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/lib/pg_query/truncate.rb
/build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/lib/pg_query/version.rb
Building native extensions. This could take a while...
current directory: /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query
["/usr/bin/ruby3.3", "-I/usr/lib/ruby/vendor_ruby", "extconf.rb"]
creating Makefile
current directory: /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query
["make", "V=1", "CC=gcc -fdebug-prefix-map=/build/reproducible-path/ruby-pg-query-4.2.3=.", "CXX=g++ -fdebug-prefix-map=/build/reproducible-path/ruby-pg-query-4.2.3=.", "DESTDIR=", "sitearchdir=./.gem.20250216-70-194783", "sitelibdir=./.gem.20250216-70-194783", "clean"]
make[1]: Entering directory '/build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query'
rm -f 
rm -fr pg_query.so false /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/guc-file.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/pg_query.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/pg_query.pb-c.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/pg_query_deparse.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/pg_query_fingerprint.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/pg_query_json_plpgsql.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/pg_query_normalize.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/pg_query_outfuncs_json.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/pg_query_outfuncs_protobuf.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/pg_query_parse.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/pg_query_parse_plpgsql.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/pg_query_readfuncs_protobuf.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/pg_query_ruby.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/pg_query_scan.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/pg_query_split.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/postgres_deparse.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/protobuf-c.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_backend_catalog_namespace.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_backend_catalog_pg_proc.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_backend_commands_define.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_backend_nodes_bitmapset.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_backend_nodes_copyfuncs.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_backend_nodes_equalfuncs.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_backend_nodes_extensible.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_backend_nodes_list.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_backend_nodes_makefuncs.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_backend_nodes_nodeFuncs.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_backend_nodes_value.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_backend_parser_gram.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_backend_parser_parser.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_backend_parser_scan.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_backend_parser_scansup.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_backend_postmaster_postmaster.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_backend_storage_ipc_ipc.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_backend_storage_lmgr_s_lock.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_backend_tcop_postgres.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_backend_utils_activity_pgstat_database.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_backend_utils_adt_datum.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_backend_utils_adt_expandeddatum.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_backend_utils_adt_format_type.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_backend_utils_adt_ruleutils.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_backend_utils_error_assert.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_backend_utils_error_elog.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_backend_utils_fmgr_fmgr.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_backend_utils_hash_dynahash.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_backend_utils_init_globals.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_backend_utils_mb_mbutils.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_backend_utils_misc_guc.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_backend_utils_mmgr_aset.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_backend_utils_mmgr_mcxt.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_common_encnames.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_common_hashfn.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_common_keywords.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_common_kwlookup.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_common_pg_prng.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_common_psprintf.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_common_string.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_common_stringinfo.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_common_wchar.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_pl_plpgsql_src_pl_comp.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_pl_plpgsql_src_pl_funcs.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_pl_plpgsql_src_pl_gram.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_pl_plpgsql_src_pl_handler.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_pl_plpgsql_src_pl_scanner.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_port_pg_bitutils.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_port_pgsleep.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_port_pgstrcasecmp.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_port_qsort.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_port_snprintf.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_port_strerror.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/src_port_strnlen.o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/xxhash.o *.bak mkmf.log .*.time
make[1]: Leaving directory '/build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query'
current directory: /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query
["make", "V=1", "CC=gcc -fdebug-prefix-map=/build/reproducible-path/ruby-pg-query-4.2.3=.", "CXX=g++ -fdebug-prefix-map=/build/reproducible-path/ruby-pg-query-4.2.3=.", "DESTDIR=", "sitearchdir=./.gem.20250216-70-194783", "sitelibdir=./.gem.20250216-70-194783"]
make[1]: Entering directory '/build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query'
gcc -fdebug-prefix-map=/build/reproducible-path/ruby-pg-query-4.2.3=. -I. -I/build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/include -I/usr/include/x86_64-linux-gnu/ruby-3.3.0 -I/usr/include/ruby-3.3.0/ruby/backward -I/usr/include/ruby-3.3.0 -I. -Wdate-time -D_FORTIFY_SOURCE=2   -fPIC -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=BUILDDIR=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fPIC -fvisibility=hidden -O3 -Wall -fno-strict-aliasing -fwrapv -fstack-protector -Wno-unused-function -Wno-unused-variable -Wno-clobbered -Wno-sign-compare -Wno-discarded-qualifiers  -Wno-deprecated-non-prototype -Wno-unknown-warning-option -g  -o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/guc-file.o -c /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/guc-file.c
gcc -fdebug-prefix-map=/build/reproducible-path/ruby-pg-query-4.2.3=. -I. -I/build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/include -I/usr/include/x86_64-linux-gnu/ruby-3.3.0 -I/usr/include/ruby-3.3.0/ruby/backward -I/usr/include/ruby-3.3.0 -I. -Wdate-time -D_FORTIFY_SOURCE=2   -fPIC -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=BUILDDIR=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fPIC -fvisibility=hidden -O3 -Wall -fno-strict-aliasing -fwrapv -fstack-protector -Wno-unused-function -Wno-unused-variable -Wno-clobbered -Wno-sign-compare -Wno-discarded-qualifiers  -Wno-deprecated-non-prototype -Wno-unknown-warning-option -g  -o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/pg_query.o -c /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/pg_query.c
gcc -fdebug-prefix-map=/build/reproducible-path/ruby-pg-query-4.2.3=. -I. -I/build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/include -I/usr/include/x86_64-linux-gnu/ruby-3.3.0 -I/usr/include/ruby-3.3.0/ruby/backward -I/usr/include/ruby-3.3.0 -I. -Wdate-time -D_FORTIFY_SOURCE=2   -fPIC -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=BUILDDIR=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fPIC -fvisibility=hidden -O3 -Wall -fno-strict-aliasing -fwrapv -fstack-protector -Wno-unused-function -Wno-unused-variable -Wno-clobbered -Wno-sign-compare -Wno-discarded-qualifiers  -Wno-deprecated-non-prototype -Wno-unknown-warning-option -g  -o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/pg_query.pb-c.o -c /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/pg_query.pb-c.c
gcc -fdebug-prefix-map=/build/reproducible-path/ruby-pg-query-4.2.3=. -I. -I/build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/include -I/usr/include/x86_64-linux-gnu/ruby-3.3.0 -I/usr/include/ruby-3.3.0/ruby/backward -I/usr/include/ruby-3.3.0 -I. -Wdate-time -D_FORTIFY_SOURCE=2   -fPIC -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=BUILDDIR=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fPIC -fvisibility=hidden -O3 -Wall -fno-strict-aliasing -fwrapv -fstack-protector -Wno-unused-function -Wno-unused-variable -Wno-clobbered -Wno-sign-compare -Wno-discarded-qualifiers  -Wno-deprecated-non-prototype -Wno-unknown-warning-option -g  -o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/pg_query_deparse.o -c /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/pg_query_deparse.c
gcc -fdebug-prefix-map=/build/reproducible-path/ruby-pg-query-4.2.3=. -I. -I/build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/include -I/usr/include/x86_64-linux-gnu/ruby-3.3.0 -I/usr/include/ruby-3.3.0/ruby/backward -I/usr/include/ruby-3.3.0 -I. -Wdate-time -D_FORTIFY_SOURCE=2   -fPIC -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=BUILDDIR=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fPIC -fvisibility=hidden -O3 -Wall -fno-strict-aliasing -fwrapv -fstack-protector -Wno-unused-function -Wno-unused-variable -Wno-clobbered -Wno-sign-compare -Wno-discarded-qualifiers  -Wno-deprecated-non-prototype -Wno-unknown-warning-option -g  -o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/pg_query_fingerprint.o -c /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/pg_query_fingerprint.c
gcc -fdebug-prefix-map=/build/reproducible-path/ruby-pg-query-4.2.3=. -I. -I/build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/include -I/usr/include/x86_64-linux-gnu/ruby-3.3.0 -I/usr/include/ruby-3.3.0/ruby/backward -I/usr/include/ruby-3.3.0 -I. -Wdate-time -D_FORTIFY_SOURCE=2   -fPIC -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=BUILDDIR=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fPIC -fvisibility=hidden -O3 -Wall -fno-strict-aliasing -fwrapv -fstack-protector -Wno-unused-function -Wno-unused-variable -Wno-clobbered -Wno-sign-compare -Wno-discarded-qualifiers  -Wno-deprecated-non-prototype -Wno-unknown-warning-option -g  -o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/pg_query_json_plpgsql.o -c /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/pg_query_json_plpgsql.c
gcc -fdebug-prefix-map=/build/reproducible-path/ruby-pg-query-4.2.3=. -I. -I/build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/include -I/usr/include/x86_64-linux-gnu/ruby-3.3.0 -I/usr/include/ruby-3.3.0/ruby/backward -I/usr/include/ruby-3.3.0 -I. -Wdate-time -D_FORTIFY_SOURCE=2   -fPIC -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=BUILDDIR=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fPIC -fvisibility=hidden -O3 -Wall -fno-strict-aliasing -fwrapv -fstack-protector -Wno-unused-function -Wno-unused-variable -Wno-clobbered -Wno-sign-compare -Wno-discarded-qualifiers  -Wno-deprecated-non-prototype -Wno-unknown-warning-option -g  -o /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/pg_query_normalize.o -c /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/pg_query_normalize.c
ERROR:  Error installing /tmp/d20250216-63-plhvau/pg_query-4.2.3.gem:
	ERROR: Failed to build gem native extension.

    current directory: /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query
/usr/bin/ruby3.3 -I/usr/lib/ruby/vendor_ruby extconf.rb
current directory: /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query
make V\=1 CC\=gcc\ -fdebug-prefix-map\=/build/reproducible-path/ruby-pg-query-4.2.3\=. CXX\=g++\ -fdebug-prefix-map\=/build/reproducible-path/ruby-pg-query-4.2.3\=. DESTDIR\= sitearchdir\=./.gem.20250216-70-194783 sitelibdir\=./.gem.20250216-70-194783 clean
current directory: /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query
make V\=1 CC\=gcc\ -fdebug-prefix-map\=/build/reproducible-path/ruby-pg-query-4.2.3\=. CXX\=g++\ -fdebug-prefix-map\=/build/reproducible-path/ruby-pg-query-4.2.3\=. DESTDIR\= sitearchdir\=./.gem.20250216-70-194783 sitelibdir\=./.gem.20250216-70-194783
Building has failed. See above output for more information on the failure.
make failed, exit code 2

Gem files will remain installed in /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3 for inspection.
Results logged to /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/extensions/x86_64-linux-gnu/3.3.0/pg_query-4.2.3/gem_make.out
/build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/pg_query_normalize.c: In function ‘const_record_walker’:
/build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/pg_query_normalize.c:547:81: error: passing argument 2 of ‘raw_expression_tree_walker’ from incompatible pointer type [-Wincompatible-pointer-types]
  547 |                                         return raw_expression_tree_walker(node, const_record_walker, (void*) jstate);
      |                                                                                 ^~~~~~~~~~~~~~~~~~~
      |                                                                                 |
      |                                                                                 _Bool (*)(Node *, pgssConstLocations *)
In file included from /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/pg_query_normalize.c:9:
/build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/include/nodes/nodeFuncs.h:155:59: note: expected ‘_Bool (*)(void)’ but argument is of type ‘_Bool (*)(Node *, pgssConstLocations *)’
  155 | extern bool raw_expression_tree_walker(Node *node, bool (*walker) (),
      |                                                    ~~~~~~~^~~~~~~~~~
/build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/pg_query_normalize.c:357:13: note: ‘const_record_walker’ declared here
  357 | static bool const_record_walker(Node *node, pgssConstLocations *jstate)
      |             ^~~~~~~~~~~~~~~~~~~
At top level:
cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
make[1]: *** [Makefile:248: /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query/pg_query_normalize.o] Error 1
make[1]: Leaving directory '/build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0/gems/pg_query-4.2.3/ext/pg_query'
/usr/lib/ruby/vendor_ruby/gem2deb.rb:52:in `run': /usr/bin/ruby3.3 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-pg-query/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0 /tmp/d20250216-63-plhvau/pg_query-4.2.3.gem (Gem2Deb::CommandFailed)
	from /usr/lib/ruby/vendor_ruby/gem2deb/gem_installer.rb:215:in `block in run_gem'
	from /usr/lib/ruby/vendor_ruby/gem2deb.rb:87:in `maybe_crossbuild'
	from /usr/lib/ruby/vendor_ruby/gem2deb/gem_installer.rb:214:in `run_gem'
	from /usr/lib/ruby/vendor_ruby/gem2deb/gem_installer.rb:123:in `block in install_files_and_build_extensions'
	from /usr/lib/ruby/vendor_ruby/gem2deb/gem_installer.rb:69:in `each'
	from /usr/lib/ruby/vendor_ruby/gem2deb/gem_installer.rb:69:in `install_files_and_build_extensions'
	from /usr/lib/ruby/vendor_ruby/gem2deb/installer.rb:28:in `build'
	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:54:in `block in install'
	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:52:in `each'
	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:52:in `install'
	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:163:in `install'
	from /usr/bin/dh_ruby:89:in `<main>'
dh_auto_install: error: dh_ruby --install /build/reproducible-path/ruby-pg-query-4.2.3/debian/ruby-pg-query returned exit code 1
make: *** [debian/rules:8: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Pkg-ruby-extras-maintainers mailing list