[Bug 230213] math/p5-Math-Pari: fail to link with lld as /usr/bin/ld on i386

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Sep 17 15:20:38 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230213

--- Comment #2 from Ed Maste <emaste at freebsd.org> ---
(In reply to Nathan from comment #1)
It looks like this port does not honour LDFLAGS, so adding -fuse-ld=lld there
likely has no effect.

With LLD_UNSAFE=yes and -Wl,-znotext in LDFLAGS it still fails with:

cc  -o libpari-gmp.so.2.3.5 -shared  -O2 -pipe 
-I/usr/ports/math/p5-Math-Pari/work/pari-2.3.5/src/headers
-I/usr/ports/math/p5-Math-Pari/work/pari-2.3.5/build -fstack-protector
-fno-strict-aliasing  -Wl,-shared,-soname=libpari-gmp.so.2 mp.o mpinl.o Flx.o
Qfb.o RgX.o alglin1.o alglin2.o arith1.o arith2.o base1.o base2.o base3.o
base4.o base5.o bibli1.o bibli2.o buch1.o buch2.o buch3.o buch4.o galconj.o
gen1.o gen2.o gen3.o ifactor1.o perm.o polarit1.o polarit2.o polarit3.o
rootpol.o subcyclo.o subgroup.o trans1.o trans2.o trans3.o anal.o compat.o
default.o errmsg.o es.o init.o intnum.o members.o sumiter.o aprcl.o elldata.o
elliptic.o galois.o groupid.o kummer.o mpqs.o nffactor.o part.o stark.o
subfield.o thue.o -lc -lm -L/usr/local/lib -lgmp 
/usr/bin/ld: error: can't create dynamic relocation R_386_32 against local
symbol in readonly segment; recompile object files with -fPIC
>>> defined in mp.o
>>> referenced by mp.c
>>>               mp.o:(pari_kernel_init)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-perl mailing list