Bug 1225929 - Package subversion does not build with gcc14 because of new errors
Summary: Package subversion does not build with gcc14 because of new errors
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Development (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Andreas Stieger
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: modern_C
  Show dependency treegraph
 
Reported: 2024-06-04 12:18 UTC by Martin Jambor
Modified: 2024-06-04 17:52 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Jambor 2024-06-04 12:18:34 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]       |          ~~~~~~^~~