[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1097782: redland-bindings: ftbfs with GCC-15



Package: src:redland-bindings
Version: 1.0.17.1+dfsg-6
Severity: important
Tags: sid forky
User: debian-gcc@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/redland-bindings_1.0.17.1+dfsg-6_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

[...]
/usr/include/ruby-3.3.0/ruby/internal/cast.h:31:29: note: in definition of macro ‘RBIMPL_CAST’
   31 | # define RBIMPL_CAST(expr) (expr)
      |                             ^~~~
redland_wrap.c:2059:66: note: in expansion of macro ‘RUBY_METHOD_FUNC’
 2059 |     if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2LONG), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
      |                                                                  ^~~~~~~~~~~~~~~~
/usr/include/ruby-3.3.0/ruby/internal/iterator.h:364:62: note: expected ‘VALUE (*)(VALUE,  VALUE)’ {aka ‘long unsigned int (*)(long unsigned int,  long unsigned int)’} but argument is of type ‘VALUE (*)(void)’ {aka ‘long unsigned int (*)(void)’}
  364 | VALUE rb_rescue(VALUE (*b_proc)(VALUE), VALUE data1, VALUE (*r_proc)(VALUE, VALUE), VALUE data2);
      |                                                      ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
redland_wrap.c:1974:1: note: ‘SWIG_ruby_failed’ declared here
 1974 | SWIG_ruby_failed(void)
      | ^~~~~~~~~~~~~~~~
redland_wrap.c: In function ‘_wrap_librdf_node_to_string’:
redland_wrap.c:3595:3: warning: ‘librdf_node_to_string’ is deprecated [-Wdeprecated-declarations]
 3595 |   result = (char *)librdf_node_to_string(arg1);
      |   ^~~~~~
In file included from /usr/include/librdf.h:399,
                 from /usr/include/redland.h:30,
                 from redland_wrap.c:1869:
/usr/include/rdf_node.h:171:16: note: declared here
  171 | unsigned char *librdf_node_to_string(librdf_node* node);
      |                ^~~~~~~~~~~~~~~~~~~~~
redland_wrap.c: In function ‘_wrap_librdf_statement_to_string’:
redland_wrap.c:4092:3: warning: ‘librdf_statement_to_string’ is deprecated [-Wdeprecated-declarations]
 4092 |   result = (char *)librdf_statement_to_string(arg1);
      |   ^~~~~~
In file included from /usr/include/librdf.h:401:
/usr/include/rdf_statement.h:115:16: note: declared here
  115 | unsigned char *librdf_statement_to_string(librdf_statement *statement);
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~
redland_wrap.c: In function ‘_wrap_librdf_parser_guess_name’:
redland_wrap.c:6237:3: warning: ‘librdf_parser_guess_name’ is deprecated [-Wdeprecated-declarations]
 6237 |   result = (char *)librdf_parser_guess_name((char const *)arg1,(char const *)arg2,(char const *)arg3);
      |   ^~~~~~
In file included from /usr/include/librdf.h:404:
/usr/include/rdf_parser.h:111:13: note: declared here
  111 | const char* librdf_parser_guess_name(const char *mime_type, const unsigned char *buffer, const unsigned char *identifier);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~
redland_wrap.c: In function ‘_wrap_librdf_query_results_to_file’:
redland_wrap.c:6907:3: warning: ‘librdf_query_results_to_file’ is deprecated [-Wdeprecated-declarations]
 6907 |   result = (int)librdf_query_results_to_file(arg1,(char const *)arg2,arg3,arg4);
      |   ^~~~~~
In file included from /usr/include/librdf.h:408:
/usr/include/rdf_query.h:103:5: note: declared here
  103 | int librdf_query_results_to_file(librdf_query_results *query_results, const char *name, librdf_uri *format_uri, librdf_uri *base_uri);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
redland_wrap.c: In function ‘_wrap_librdf_query_results_to_string’:
redland_wrap.c:7011:3: warning: ‘librdf_query_results_to_string’ is deprecated [-Wdeprecated-declarations]
 7011 |   result = (char *)librdf_query_results_to_string(arg1,arg2,arg3);
      |   ^~~~~~
/usr/include/rdf_query.h:95:16: note: declared here
   95 | unsigned char* librdf_query_results_to_string(librdf_query_results *query_results, librdf_uri *format_uri, librdf_uri *base_uri);
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
redland_wrap.c: In function ‘_wrap_librdf_stream_get_context’:
redland_wrap.c:7750:3: warning: ‘librdf_stream_get_context’ is deprecated [-Wdeprecated-declarations]
 7750 |   result = (librdf_node *)librdf_stream_get_context(arg1);
      |   ^~~~~~
In file included from /usr/include/librdf.h:407:
/usr/include/rdf_stream.h:98:7: note: declared here
   98 | void* librdf_stream_get_context(librdf_stream* stream);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [Makefile:780: redland_wrap.o] Error 1
make[3]: Leaving directory '/build/reproducible-path/redland-bindings-1.0.17.1+dfsg/ruby'
make[2]: *** [Makefile:499: all-recursive] Error 1
make[2]: Leaving directory '/build/reproducible-path/redland-bindings-1.0.17.1+dfsg/ruby'
dh_auto_build: error: cd ruby && make -j8 "INSTALL=install --strip-program=true" returned exit code 2
make[1]: *** [debian/rules:22: override_dh_auto_build] Error 25
make[1]: Leaving directory '/build/reproducible-path/redland-bindings-1.0.17.1+dfsg'
make: *** [debian/rules:12: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2


Reply to: