mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
sci-libs/openblas: backport fix for building on arm
``` make -j40 -l90 -O shared cpuid.S: Assembler messages: cpuid.S:69: Error: junk at end of line, first unrecognized character is `,' make[1]: *** [Makefile.prebuild💯 getarch] Error 1 make[1]: Entering directory '/var/tmp/portage/sci-libs/openblas-0.3.30-r4/work/OpenBLAS-0.3.30/interface' armv7a-unknown-linux-gnueabihf-gcc -O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard [...] -c axpy.c -o saxpy.o In file included from axpy.c:40: ../common.h:62:10: fatal error: config.h: No such file or directory 62 | #include "config.h" | ^~~~~~~~~~ compilation terminated. make[1]: *** [Makefile:825: saxpy.o] Error 1 ``` Bug: https://github.com/OpenMathLib/OpenBLAS/pull/5360 Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
This commit is contained in:
parent
c5949b1a1c
commit
fa3ae9ee24
28
sci-libs/openblas/files/openblas-0.3.30-arm-assembly.patch
Normal file
28
sci-libs/openblas/files/openblas-0.3.30-arm-assembly.patch
Normal file
@ -0,0 +1,28 @@
|
||||
From 8d11e4630c1e92437636d016f35ad48395b62b4f Mon Sep 17 00:00:00 2001
|
||||
From: Sertonix <sertonix@posteo.net>
|
||||
Date: Sun, 6 Jul 2025 23:48:10 +0200
|
||||
Subject: [PATCH] Fix cpuid.S on arm
|
||||
|
||||
The ARM assembly syntax differs a bit
|
||||
|
||||
Fixes 61b9339d3a1f getarch/cpuid.S: Fix warning about executable stack
|
||||
|
||||
Signed-off-by: Sertonix <sertonix@posteo.net>
|
||||
---
|
||||
cpuid.S | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/cpuid.S b/cpuid.S
|
||||
index 295917bdbe..a8f5f8b573 100644
|
||||
--- a/cpuid.S
|
||||
+++ b/cpuid.S
|
||||
@@ -66,5 +66,9 @@ _cpuid:
|
||||
|
||||
#endif
|
||||
#if defined(__ELF__) && defined(__linux__)
|
||||
+#if defined(__arm__)
|
||||
+ .section .note.GNU-stack,"",%progbits
|
||||
+#else
|
||||
.section .note.GNU-stack,"",@progbits
|
||||
#endif
|
||||
+#endif
|
||||
@ -34,6 +34,8 @@ PATCHES=(
|
||||
"${FILESDIR}/${P}-cmake_libdir.patch"
|
||||
# https://github.com/OpenMathLib/OpenBLAS/pull/5378
|
||||
"${FILESDIR}/${P}-lunar-lake.patch"
|
||||
# https://github.com/OpenMathLib/OpenBLAS/pull/5360
|
||||
"${FILESDIR}/${P}-arm-assembly.patch"
|
||||
)
|
||||
|
||||
pkg_pretend() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user