Port-hppa archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
missing fma(3) variants for hppa in libm?
I got the following link error on pkgsrc/lang/python312:
---
:
File "/usr/obj.hppa/pkgsrc/lang/python312/work.hppa/Python-3.12.8/Lib/pathlib.py", line 20, in <module>
from urllib.parse import quote_from_bytes as urlquote_from_bytes
File "/usr/obj.hppa/pkgsrc/lang/python312/work.hppa/Python-3.12.8/Lib/urllib/parse.py", line 36, in <module>
import math
ImportError: /usr/obj.hppa/pkgsrc/lang/python312/work.hppa/Python-3.12.8/build/lib.netbsd-10.1-hppa-3.12/math.so: Undefined PLT symbol "fma" (symnum = 37)
*** Error code 1
---
Actually no fma(3) in libm on NetBSD/hppa 10.1.
it looks the following patch as other ports like sh3 etc.
https://github.com/NetBSD/src/commit/124e9063
https://github.com/NetBSD/src/commit/54684bbd
https://github.com/NetBSD/src/commit/0274baaa
just works (build.sh release on 10.1 builds and the python312 links).
Is it Ok to commit (and request pullup to netbsd-10)?
---
Index: lib/libm/Makefile
===================================================================
RCS file: /cvsroot/src/lib/libm/Makefile,v
retrieving revision 1.218.2.4
diff -u -p -d -r1.218.2.4 Makefile
--- lib/libm/Makefile 14 Jan 2024 15:43:45 -0000 1.218.2.4
+++ lib/libm/Makefile 10 Feb 2025 14:29:48 -0000
@@ -96,6 +96,7 @@ COMMON_SRCS += fenv.c
.elif (${LIBC_MACHINE_ARCH} == "hppa")
.PATH.c: ${.CURDIR}/arch/hppa
COMMON_SRCS+= fenv.c s_rintl.c
+COMMON_SRCS+= s_fma.c s_fmaf.c s_fmal.c
.elif (${LIBC_MACHINE_ARCH} == "sparc")
.PATH: ${.CURDIR}/arch/sparc
---
Thanks,
---
Izumi Tsutsui
Home |
Main Index |
Thread Index |
Old Index