Bugzilla – Bug 1225929
Package subversion does not build with gcc14 because of new errors
Last modified: 2024-06-04 17:52:58 UTC
GCC 14 newly by default treats as errors a number of situations which before were only warnings. For more information see https://gcc.gnu.org/gcc-14/porting_to.html and meta bug #1220571. Because of this, package subversion fails to compile. This can be seen online at: https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/subversion/standard/x86_64 It can be reproduced locally with command: osc build --clean --alternative-project home:rguenther:nextgcc The issue can likely be fixed with a patch attached to https://issues.apache.org/jira/browse/SVN-4915 The (first) error (that halts the build) is: [ 107s] subversion/bindings/swig/ruby/core.c: In function '_wrap_svn_config_write_auth_data': [ 107s] subversion/bindings/swig/ruby/core.c:20623:17: error: passing argument 1 of 'RB_NIL_P' makes integer from pointer without a cast [-Wint-conversion] [ 107s] 20623 | if (NIL_P(arg1)) { [ 107s] | ^~~~ [ 107s] | | [ 107s] | apr_hash_t * [ 107s] /usr/include/ruby-3.3.0/ruby/internal/special_consts.h:173:16: note: expected 'VALUE' {aka 'long unsigned int'} but argument is of type 'apr_hash_t *' [ 107s] 173 | RB_NIL_P(VALUE obj) [ 107s] | ~~~~~~^~~
https://svn.apache.org/viewvc?view=revision&revision=1915236
and https://svn.apache.org/viewvc?view=revision&revision=1915239 https://build.opensuse.org/request/show/1178583