Bug 1225948 - Package uasm does not build with gcc14 because of new errors
Summary: Package uasm 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: Danilo Spinella
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: modern_C
  Show dependency treegraph
 
Reported: 2024-06-04 15:24 UTC by Martin Jambor
Modified: 2024-07-15 12:30 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-06-04 15:24:48 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();
Comment 1 Martin Jambor 2024-07-15 12:20:54 UTC
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.
Comment 2 Martin Jambor 2024-07-15 12:30:31 UTC
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.