Bug 234720

Summary: lang/nml: does not build on i386 with lld as system linker
Product: Ports & Packages Reporter: Ed Maste <emaste>
Component: Individual Port(s)Assignee: freebsd-ports-bugs mailing list <ports-bugs>
Status: New ---    
Severity: Affects Only Me    
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 214864    

Description Ed Maste freebsd_committer 2019-01-07 22:34:40 UTC

cc -O -I./bignum/h -I../../ocaml/byterun  -fPIC   -c -o nat_stubs.o nat_stubs.c
../../boot/ncamlrun ../../ocaml/tools/ocamlmklib -o nums bignum/o/KerN.o bignum/o/bnInit.o bignum/o/bnMult.o bignum/o/bnDivide.o bignum/o/bnCmp.o bignum/o/bzf.o bignum/o/bz.o nat_stubs.o
ld: error: relocation R_386_PC32 cannot be used against symbol BnnAdd; recompile with -fPIC
>>> defined in bignum/o/KerN.o
>>> referenced by bignum/o/KerN.o:(.text+0x409)
cc: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[2]: *** [Makefile:47: libnums.a] Error 2
Comment 1 Ed Maste freebsd_committer 2019-07-24 19:32:28 UTC
lld has been enabled as system linker for i386 on stable/12 in advance of 12.1 (as of a few minutes ago)