On 20/10/2020 13:33, Kostirya wrote:
Hello.
I cannot build last git version on FreeBSD 32bit:

libtool: link: c++  -fPIC -DPIC -shared -nostdlib /usr/lib/crti.o
/usr/lib/crtbeginS.o  .libs/arb.o .libs/bitmap.o .libs/check_objects.o
.libs/diagnostics.o .libs/errors.o .libs/exporter.o .libs/gc.o
.libs/gc_check_weak_ref.o .libs/gc_copy_phase.o .libs/gc_mark_phase.o
.libs/gc_progress.o .libs/gc_share_phase.o .libs/gc_update_phase.o
.libs/gctaskfarm.o .libs/heapsizing.o .libs/locking.o .libs/memmgr.o
.libs/mpoly.o .libs/network.o .libs/objsize.o .libs/pexport.o
.libs/poly_specific.o .libs/polyffi.o .libs/polystring.o
.libs/process_env.o .libs/processes.o .libs/profiling.o
.libs/quick_gc.o .libs/realconv.o .libs/reals.o .libs/rts_module.o
.libs/rtsentry.o .libs/run_time.o .libs/save_vec.o .libs/savestate.o
.libs/scanaddrs.o .libs/sharedata.o .libs/sighandler.o
.libs/statistics.o .libs/timing.o .libs/xwindows.o .libs/x86_dep.o
.libs/x86assembly_gas32.o .libs/elfexport.o .libs/basicio.o
.libs/unix_specific.o .libs/osmemunix.o   -L/usr/local/lib -lpthread
-lffi -lgmp -L/usr/lib -lc++ -lm -lc -lgcc -lgcc_s /usr/lib/crtendS.o
/usr/lib/crtn.o  -O3   -Wl,-soname -Wl,libpolyml.so.11 -o
.libs/libpolyml.so.11.0.0
ld: error: relocation R_386_PC32 cannot be used against symbol
X86TrapHandler; recompile with -fPIC
defined in .libs/x86_dep.o
referenced by .libs/x86assembly_gas32.o:(.text+0x4E)
c++: error: linker command failed with exit code 1 (use -v to see invocation)

I've managed to get FreeBSD 32-bit up and running in VirtualBox.
It seems that LDFLAGS="-Wl,-z -Wl,notext" gets past that step but there's a problem later on. I was getting
ld: error: unable to find library -lstdc++
and managed to get past it manually but that's not satisfactory.

David

_______________________________________________
polyml mailing list
polyml@inf.ed.ac.uk
http://lists.inf.ed.ac.uk/mailman/listinfo/polyml

Reply via email to