Bug 1225869 - Package openblas flavors openmp, pthreads and serial do not build with gcc14 because of new errors
Summary: Package openblas flavors openmp, pthreads and serial do not build with gcc14 ...
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Development (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Martin Jambor
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: modern_C
  Show dependency treegraph
 
Reported: 2024-06-03 17:02 UTC by Martin Jambor
Modified: 2024-06-10 07:07 UTC (History)
2 users (show)

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-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.