Bug 1228360 - Package clang-extract does not build with gcc14 because of new errors
Summary: Package clang-extract does not build with gcc14 because of new errors
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Development (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Giuliano Belinassi
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: modern_C
  Show dependency treegraph
 
Reported: 2024-07-26 15:14 UTC by Martin Jambor
Modified: 2024-07-26 15:22 UTC (History)
0 users

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-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