Bug 1228360

Summary: Package clang-extract does not build with gcc14 because of new errors
Product: [openSUSE] openSUSE Tumbleweed Reporter: Martin Jambor <mjambor>
Component: DevelopmentAssignee: Giuliano Belinassi <giuliano.belinassi>
Status: NEW --- QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 1220571    

Description Martin Jambor 2024-07-26 15:14:20 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 clang-extract fails to compile.  This can be
seen online at:
https://build.opensuse.org/package/live_build_log/home:rguenther:plgrnd/clang-extract/openSUSE_Factory/x86_64

It can be reproduced locally with command: osc build --clean
--alternative-project home:rguenther:nextgcc

The (first) error that stops the build is:

[   39s] >>> MSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 ASAN_OPTIONS=halt_on_error
=1:abort_on_error=1:print_summary=1 MESON_TEST_ITERATION=1 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=
1:print_stacktrace=1 '/home/abuild/rpmbuild/BUILD/clang-extract-0~20240722.a998e91/testsuite/lib/runtest.py' -inline-tes
t '/home/abuild/rpmbuild/BUILD/clang-extract-0~20240722.a998e91/testsuite/inline/closure-1.c' -o '/home/abuild/rpmbuild/
BUILD/clang-extract-0~20240722.a998e91/x86_64-suse-linux/testsuite/inline/closure-1.c.log'
[   39s] ――――――――――――――――――――――――――――――――――――― ✀  ―――――――――――――――――――――――――――――――――――――
[   39s] /home/abuild/rpmbuild/BUILD/clang-extract-0~20240722.a998e91/testsuite/inline/closure-1.c:9:34: error: return type defaults to ‘int’ [-Wimplicit-int]
[   39s]     9 | static __attribute__((noinline)) h(void)
[   39s]       |                                  ^
[   39s]
Comment 1 Giuliano Belinassi 2024-07-26 15:22:28 UTC
This issue is found in the testsuite and the test is intended to handle implicit types, hence such errors shall be silenced rather than changing clang-extract testcase.

An issue for this was open in clang-extract: https://github.com/SUSE/clang-extract/issues/96