Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Jan 2024 14:10:20 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 5d8a37773882 - main - math/R: fix build on powerpc
Message-ID:  <202401031410.403EAKCI074421@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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} \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202401031410.403EAKCI074421>