Bugzilla – Bug 1228360
Package clang-extract does not build with gcc14 because of new errors
Last modified: 2024-07-26 15:22:28 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]
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