Bug 1225948

Summary: Package uasm does not build with gcc14 because of new errors
Product: [openSUSE] openSUSE Tumbleweed Reporter: Martin Jambor <mjambor>
Component: DevelopmentAssignee: Danilo Spinella <danilo.spinella>
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-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.