Debian Bug report logs - #1096876
jq: ftbfs with GCC-15

version graph

Package: src:jq; Maintainer for src:jq is ChangZhuo Chen (陳昌倬) <[email protected]>;

Reported by: Matthias Klose <[email protected]>

Date: Mon, 17 Feb 2025 17:21:50 UTC

Severity: important

Tags: forky, sid

Found in version jq/1.7.1-3

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to ChangZhuo Chen (陳昌倬) <[email protected]>:
Bug#1096876; Package src:jq. (Mon, 17 Feb 2025 17:21:50 GMT) (full text, mbox, link).


Acknowledgement sent to Matthias Klose <[email protected]>:
New Bug report received and forwarded. Copy sent to ChangZhuo Chen (陳昌倬) <[email protected]>. (Mon, 17 Feb 2025 17:21:50 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Matthias Klose <[email protected]>
To: [email protected]
Subject: jq: ftbfs with GCC-15
Date: Mon, 17 Feb 2025 17:21:13 +0000
Package: src:jq
Version: 1.7.1-3
Severity: important
Tags: sid forky
User: [email protected]
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/jq_1.7.1-3_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

[...]
 1778 |   {f_strptime, "strptime", 2},
      |    ^~~~~~~~~~
src/builtin.c:1778:4: note: (near initialization for 'function_list[120].fptr')
src/builtin.c:1425:11: note: 'f_strptime' declared here
 1425 | static jv f_strptime(jq_state *jq, jv a, jv b) {
      |           ^~~~~~~~~~
src/builtin.c:1779:4: error: initialization of 'jv (*)(void)' from incompatible pointer type 'jv (*)(jq_state *, jv,  jv)' [-Wincompatible-pointer-types]
 1779 |   {f_strftime, "strftime", 2},
      |    ^~~~~~~~~~
src/builtin.c:1779:4: note: (near initialization for 'function_list[121].fptr')
src/builtin.c:1611:11: note: 'f_strftime' declared here
 1611 | static jv f_strftime(jq_state *jq, jv a, jv b) {
      |           ^~~~~~~~~~
src/builtin.c:1780:4: error: initialization of 'jv (*)(void)' from incompatible pointer type 'jv (*)(jq_state *, jv,  jv)' [-Wincompatible-pointer-types]
 1780 |   {f_strflocaltime, "strflocaltime", 2},
      |    ^~~~~~~~~~~~~~~
src/builtin.c:1780:4: note: (near initialization for 'function_list[122].fptr')
src/builtin.c:1646:11: note: 'f_strflocaltime' declared here
 1646 | static jv f_strflocaltime(jq_state *jq, jv a, jv b) {
      |           ^~~~~~~~~~~~~~~
src/builtin.c:1781:4: error: initialization of 'jv (*)(void)' from incompatible pointer type 'jv (*)(jq_state *, jv)' [-Wincompatible-pointer-types]
 1781 |   {f_mktime, "mktime", 1},
      |    ^~~~~~~~
src/builtin.c:1781:4: note: (near initialization for 'function_list[123].fptr')
src/builtin.c:1520:11: note: 'f_mktime' declared here
 1520 | static jv f_mktime(jq_state *jq, jv a) {
      |           ^~~~~~~~
src/builtin.c:1782:4: error: initialization of 'jv (*)(void)' from incompatible pointer type 'jv (*)(jq_state *, jv)' [-Wincompatible-pointer-types]
 1782 |   {f_gmtime, "gmtime", 1},
      |    ^~~~~~~~
src/builtin.c:1782:4: note: (near initialization for 'function_list[124].fptr')
src/builtin.c:1537:11: note: 'f_gmtime' declared here
 1537 | static jv f_gmtime(jq_state *jq, jv a) {
      |           ^~~~~~~~
src/builtin.c:1783:4: error: initialization of 'jv (*)(void)' from incompatible pointer type 'jv (*)(jq_state *, jv)' [-Wincompatible-pointer-types]
 1783 |   {f_localtime, "localtime", 1},
      |    ^~~~~~~~~~~
src/builtin.c:1783:4: note: (near initialization for 'function_list[125].fptr')
src/builtin.c:1574:11: note: 'f_localtime' declared here
 1574 | static jv f_localtime(jq_state *jq, jv a) {
      |           ^~~~~~~~~~~
src/builtin.c:1784:4: error: initialization of 'jv (*)(void)' from incompatible pointer type 'jv (*)(jq_state *, jv)' [-Wincompatible-pointer-types]
 1784 |   {f_now, "now", 1},
      |    ^~~~~
src/builtin.c:1784:4: note: (near initialization for 'function_list[126].fptr')
src/builtin.c:1676:11: note: 'f_now' declared here
 1676 | static jv f_now(jq_state *jq, jv a) {
      |           ^~~~~
src/builtin.c:1785:4: error: initialization of 'jv (*)(void)' from incompatible pointer type 'jv (*)(jq_state *, jv)' [-Wincompatible-pointer-types]
 1785 |   {f_current_filename, "input_filename", 1},
      |    ^~~~~~~~~~~~~~~~~~
src/builtin.c:1785:4: note: (near initialization for 'function_list[127].fptr')
src/builtin.c:1690:11: note: 'f_current_filename' declared here
 1690 | static jv f_current_filename(jq_state *jq, jv a) {
      |           ^~~~~~~~~~~~~~~~~~
src/builtin.c:1786:4: error: initialization of 'jv (*)(void)' from incompatible pointer type 'jv (*)(jq_state *, jv)' [-Wincompatible-pointer-types]
 1786 |   {f_current_line, "input_line_number", 1},
      |    ^~~~~~~~~~~~~~
src/builtin.c:1786:4: note: (near initialization for 'function_list[128].fptr')
src/builtin.c:1699:11: note: 'f_current_line' declared here
 1699 | static jv f_current_line(jq_state *jq, jv a) {
      |           ^~~~~~~~~~~~~~
make[2]: *** [Makefile:1013: src/builtin.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/build/reproducible-path/jq-1.7.1'
make[1]: *** [Makefile:783: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/jq-1.7.1'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:26: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 12:50:05 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.