http://package18.nyi.freebsd.org/build.html?mastername=headi386PR214864-default&build=2019-01-05_21h00m02s http://package18.nyi.freebsd.org/data/headi386PR214864-default/2019-01-05_21h00m02s/logs/errors/nml-0.92b.log 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 ...
lld has been enabled as system linker for i386 on stable/12 in advance of 12.1 (as of a few minutes ago)
It looks like this port is incorrectly marked BROKEN - it builds fine with BROKEN removed.
(In reply to Ed Maste from comment #2) That is, is now incorrectly marked BROKEN. It was broken with LLD in the past, but either a port update or LLD update has addressed the issue.
it's still broken for me (12.1 i386) 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) I haven't tried -current.
Ah, I tested on i386-current only - it could be that this will be solved in 12.2 with new Clang/LLVM.
Does it build on 12.2 now?
(In reply to Ed Maste from comment #6) It still broken on 12.2 i386: 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 On 13 i386, the build fails with (no ld error): gmake[2]: Entering directory '/wrkdirs/usr/ports/lang/nml/work/nml-0.92/stdlib' ../boot/ncamlrun ../nmlo -nopervasives -c pervasives.ml sh: as: not found