Files
gentoo/sci-electronics/systemc/files/systemc-2.3.4-arch-pthreads-fallback.patch
Huang Rui 143a70a529 sci-electronics/systemc: fix build on arm and riscv
The configure script aborted with "architecture not supported" on CPUs
without QuickThreads assembly. Fall back to the portable pthread
coroutine backend there, and fix the int64 typedef that collided with
long on LP64 riscv.

Closes: https://bugs.gentoo.org/926545
Part-of: https://codeberg.org/gentoo/gentoo/pulls/1166
Signed-off-by: Huang Rui <vowstar@gmail.com>
Signed-off-by: Yixun Lan <dlan@gentoo.org>
2026-06-15 11:43:55 +00:00

21 lines
801 B
Diff

Fall back to the portable pthread coroutine backend on CPUs that have no
QuickThreads assembly in the autotools build (arm, riscv, ppc, ...), instead
of aborting configure with "sorry...architecture not supported".
https://bugs.gentoo.org/926545
--- a/configure.ac
+++ b/configure.ac
@@ -161,7 +161,11 @@
[TARGET_ARCH="linuxaarch64"
QT_ARCH="aarch64"
CPU_ARCH=""],
- [AC_MSG_ERROR("sorry...architecture not supported")])
+ dnl Other CPUs (arm, riscv, ppc, ...) have no QuickThreads assembly in
+ dnl the autotools build; fall back to the portable pthread coroutine
+ dnl backend instead of aborting. See https://bugs.gentoo.org/926545
+ [QT_ARCH="pthreads"
+ CPU_ARCH=""])
# check compiler
AS_VAR_IF([GXX],[yes],dnl