Bug 1225869

Summary: Package openblas flavors openmp, pthreads and serial do not build with gcc14 because of new errors
Product: [openSUSE] openSUSE Tumbleweed Reporter: Martin Jambor <mjambor>
Component: DevelopmentAssignee: Martin Jambor <mjambor>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: badshah400, eich
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-03 17:02:23 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 openblas flavors openmp, pthreads and serial
fails to compile.  This can be seen online at:
 - https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/openblas:openmp/standard/x86_64
 - https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/openblas:openmp/standard/x86_64
 - https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/openblas:serial/standard/x86_64
 
It can be reproduced locally with command: osc build --clean
--alternative-project home:rguenther:nextgcc

Patches that Fedora used to overcome these new errors are listed at:
https://gitlab.com/fweimer-rh/fedora-modernc/-/blob/main/pkg/o/openblas.md?ref_type=heads


The (first) error (that halts the build) is:

[   14s] ../common_stackalloc.h:59:10: error: assignment to ‘bfloat16 *’ {aka ‘short unsigned int *’} from incompatible pointer type ‘float *’ [-Wincompatible-pointer-types]
[   14s]    59 |   BUFFER = stack_alloc_size ? stack_buffer : (TYPE *)blas_memory_alloc(1);
[   14s]       |          ^
[   14s] gemmt.c:481:25: note: in expansion of macro ‘STACK_ALLOC’
[   14s]   481 |                         STACK_ALLOC(buffer_size, FLOAT, buffer);
[   14s]       |                         ^~~~~~~~~~~
Comment 1 Egbert Eich 2024-06-03 17:09:01 UTC
Sorry, I don't have time to do this. Please find someone else.
Comment 2 Egbert Eich 2024-06-09 11:21:45 UTC
This will be fixed by an update to version 0.3.27.
Submission is pending: 
https://build.opensuse.org/request/show/1179561
Comment 3 Egbert Eich 2024-06-10 07:07:36 UTC
The update is now on its way to Factory.