git: 5d8a37773882 - main - math/R: fix build on powerpc
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 03 Jan 2024 14:10:20 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=5d8a37773882dff87e5fb321ceba2a2b153f25c7 commit 5d8a37773882dff87e5fb321ceba2a2b153f25c7 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2024-01-03 08:25:19 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2024-01-03 14:09:49 +0000 math/R: fix build on powerpc ld: error: ../nmath/bessel_y.o:(function Y_bessel: .text+0x822): relocation R_PPC_GOT16 out of range: 32768 is not in [-32768, 32767]; references .LCPI1_53 >>> referenced by bessel_y.c >>> defined in ../nmath/bessel_y.o ld: error: ../nmath/bessel_y.o:(function Y_bessel: .text+0x83a): relocation R_PPC_GOT16 out of range: 32776 is not in [-32768, 32767]; references .LCPI1_55 >>> referenced by bessel_y.c >>> defined in ../nmath/bessel_y.o ld: error: ../nmath/bessel_y.o:(function Y_bessel: .text+0x852): relocation R_PPC_GOT16 out of range: 32784 is not in [-32768, 32767]; references .LCPI1_57 >>> referenced by bessel_y.c >>> defined in ../nmath/bessel_y.o ld: error: ../nmath/bessel_y.o:(function Y_bessel: .text+0x862): relocation R_PPC_GOT16 out of range: 32792 is not in [-32768, 32767]; references .LCPI1_59 >>> referenced by bessel_y.c >>> defined in ../nmath/bessel_y.o ld: error: ../nmath/bessel_y.o:(function Y_bessel: .text+0x90a): relocation R_PPC_GOT16 out of range: 32772 is not in [-32768, 32767]; references .LCPI1_54 >>> referenced by bessel_y.c >>> defined in ../nmath/bessel_y.o ld: error: ../nmath/bessel_y.o:(function Y_bessel: .text+0x922): relocation R_PPC_GOT16 out of range: 32780 is not in [-32768, 32767]; references .LCPI1_56 >>> referenced by bessel_y.c >>> defined in ../nmath/bessel_y.o ld: error: ../nmath/bessel_y.o:(function Y_bessel: .text+0x93a): relocation R_PPC_GOT16 out of range: 32788 is not in [-32768, 32767]; references .LCPI1_58 >>> referenced by bessel_y.c >>> defined in ../nmath/bessel_y.o ld: error: ../nmath/bessel_y.o:(function Y_bessel: .text+0x95a): relocation R_PPC_GOT16 out of range: 32804 is not in [-32768, 32767]; references .LCPI1_62 >>> referenced by bessel_y.c >>> defined in ../nmath/bessel_y.o ld: error: ../nmath/bessel_y.o:(function Y_bessel: .text+0x96a): relocation R_PPC_GOT16 out of range: 32796 is not in [-32768, 32767]; references .LCPI1_60 >>> referenced by bessel_y.c >>> defined in ../nmath/bessel_y.o ld: error: ../nmath/bessel_y.o:(function Y_bessel: .text+0x97a): relocation R_PPC_GOT16 out of range: 32800 is not in [-32768, 32767]; references .LCPI1_61 >>> referenced by bessel_y.c >>> defined in ../nmath/bessel_y.o ld: error: ../nmath/bessel_y.o:(function Y_bessel: .text+0xa02): relocation R_PPC_GOT16 out of range: 32808 is not in [-32768, 32767]; references .LCPI1_63 >>> referenced by bessel_y.c >>> defined in ../nmath/bessel_y.o ld: error: ../nmath/bessel_y.o:(function Y_bessel: .text+0xc9e): relocation R_PPC_GOT16 out of range: 32812 is not in [-32768, 32767]; references .LCPI1_64 >>> referenced by bessel_y.c >>> defined in ../nmath/bessel_y.o ld: error: ../nmath/bessel_y.o:(function Y_bessel: .text+0xd8a): relocation R_PPC_GOT16 out of range: 32812 is not in [-32768, 32767]; references .LCPI1_64 >>> referenced by bessel_y.c >>> defined in ../nmath/bessel_y.o ld: error: ../nmath/bessel_y.o:(function Rf_bessel_y_ex: .text+0x10aa): relocation R_PPC_GOT16 out of range: 32816 is not in [-32768, 32767]; references .LCPI2_0 >>> referenced by bessel_y.c >>> defined in ../nmath/bessel_y.o ld: error: ../nmath/bessel_y.o:(function Rf_bessel_y_ex: .text+0x1126): relocation R_PPC_GOT16 out of range: 32816 is not in [-32768, 32767]; references .LCPI2_0 >>> referenced by bessel_y.c >>> defined in ../nmath/bessel_y.o ld: error: ../nmath/bessel_y.o:(function Rf_bessel_y_ex: .text+0x113a): relocation R_PPC_GOT16 out of range: 32832 is not in [-32768, 32767]; references .LCPI2_4 >>> referenced by bessel_y.c >>> defined in ../nmath/bessel_y.o ld: error: ../nmath/bessel_y.o:(function Rf_bessel_y_ex: .text+0x1146): relocation R_PPC_GOT16 out of range: 32816 is not in [-32768, 32767]; references .LCPI2_0 >>> referenced by bessel_y.c >>> defined in ../nmath/bessel_y.o ld: error: ../nmath/bessel_y.o:(function Rf_bessel_y_ex: .text+0x115a): relocation R_PPC_GOT16 out of range: 32820 is not in [-32768, 32767]; references .LCPI2_1 >>> referenced by bessel_y.c >>> defined in ../nmath/bessel_y.o ld: error: ../nmath/bessel_y.o:(function Rf_bessel_y_ex: .text+0x11a6): relocation R_PPC_GOT16 out of range: 32824 is not in [-32768, 32767]; references .LCPI2_2 >>> referenced by bessel_y.c >>> defined in ../nmath/bessel_y.o ld: error: ../nmath/bessel_y.o:(function Rf_bessel_y_ex: .text+0x1232): relocation R_PPC_GOT16 out of range: 32816 is not in [-32768, 32767]; references .LCPI2_0 >>> referenced by bessel_y.c >>> defined in ../nmath/bessel_y.o --- math/R/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/math/R/Makefile b/math/R/Makefile index 13e2c217a14f..306d2ef6bba6 100644 --- a/math/R/Makefile +++ b/math/R/Makefile @@ -124,6 +124,10 @@ _MAJORVER= ${DISTVERSION:R:R} .include <bsd.port.options.mk> +.if ${ARCH} == powerpc +LLD_UNSAFE= yes +.endif + post-patch: @${REINPLACE_CMD} -e "s|/usr/local|${LOCALBASE}|g" ${WRKSRC}/configure @${REINPLACE_CMD} \