Bugzilla – Bug 1225948
Package uasm does not build with gcc14 because of new errors
Last modified: 2024-07-15 12:30:31 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 uasm fails to compile. This can be seen online at: https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/uasm/standard/x86_64 It can be reproduced locally with command: osc build --clean --alternative-project home:rguenther:nextgcc The (first) error (that halts the build) is: [ 9s] assemble.c:1181:17: error: implicit declaration of function ‘AddSimdTypes’ [-Wimplicit-function-declaration] [ 9s] 1181 | AddSimdTypes();
https://github.com/Terraspace/UASM/pull/186 is relevant as it addresses many (but not all) of the issues that GCC 14 now also treats as errors by default. At the moment, however, I'm going to propose that, temporarily at least, we deal with this with -fpermissive flag. Hopefully the upstream will get fixed and if not, we can re-visit this at some less pressing time.
I have created https://build.opensuse.org/request/show/1187552 If it is accepted (and despite the fact that uasm thus starts building with GCC 14), please do not close this bug so that we can track our use of -fpermissive flag. Feel free to assign it to me if you prefer to.