Hello.

LDFLAGS="-Wl,-z -Wl,notext" is helped.
Thanks.


ld automatically links stdc++ on FreeBSD.
So I am doing:
sed -i.bak -e 's|-lstdc++ ||' configure
sed -i.bak -e 's| modules||' Makefile.in

And I build so:

env CFLAGS=-I/usr/local/include LDFLAGS="-L/usr/local/lib -Wl,-z
-Wl,notext" ./configure --with-gmp --with-system-libffi
make && make compiler && make compiler && make tests


But now the 3G memory is not enough to build the git version of polyml:

cp ./imports/polymli386.txt polytemp.txt
./polyimport  polytemp.txt -I . < ./exportPoly.sml

Unable to create the initial thread - insufficient memory

вт, 20 окт. 2020 г. в 20:29, David Matthews <david.matth...@prolingua.co.uk>:
>
> 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