git: da96c6b73d39 - main - math/sleef: fix build on powerpc64le
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 12 May 2023 23:29:05 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=da96c6b73d3953962edbed81248014742a9a2a7e commit da96c6b73d3953962edbed81248014742a9a2a7e Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2023-05-12 23:28:39 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2023-05-12 23:28:39 +0000 math/sleef: fix build on powerpc64le ld: error: duplicate symbol: sleef_cpuidtmp2 >>> defined at dispscalar.c >>> src/libm/CMakeFiles/dispscalar_obj.dir/dispscalar.c.o:(sleef_cpuidtmp2) >>> defined at tryvsx3.c >>> src/libm/CMakeFiles/tryvsx3_obj.dir/tryvsx3.c.o:(.bss+0x10) --- math/sleef/files/patch-src_libm_tryvsx3.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/math/sleef/files/patch-src_libm_tryvsx3.c b/math/sleef/files/patch-src_libm_tryvsx3.c new file mode 100644 index 000000000000..7688d72abe2b --- /dev/null +++ b/math/sleef/files/patch-src_libm_tryvsx3.c @@ -0,0 +1,13 @@ +--- src/libm/tryvsx3.c.orig 2023-05-12 23:04:06 UTC ++++ src/libm/tryvsx3.c +@@ -1,8 +1,8 @@ + #include <altivec.h> + + __vector double sleef_cpuidtmp0; +-__vector unsigned long long sleef_cpuidtmp1, sleef_cpuidtmp2; ++__vector unsigned long long sleef_cpuidtmp1, sleef_cpuidtmp3; + + void sleef_tryVSX3() { +- sleef_cpuidtmp0 = vec_insert_exp(sleef_cpuidtmp1, sleef_cpuidtmp2); ++ sleef_cpuidtmp0 = vec_insert_exp(sleef_cpuidtmp1, sleef_cpuidtmp3); + }