Skip to content

Commit

Permalink
math/R: fix build on powerpc
Browse files Browse the repository at this point in the history
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
  • Loading branch information
pkubaj committed Jan 3, 2024
1 parent dcd7620 commit 5d8a377
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions math/R/Makefile
Expand Up @@ -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} \
Expand Down

0 comments on commit 5d8a377

Please sign in to comment.