[fpc-pascal] Linking to Linux on a FreeBSD system with Linux emulated ?

fredvs fiens at hotmail.com
Fri Sep 2 17:57:51 CEST 2016


Hello.

The night was very long and hard...

I have some result.

Here how I did:

- Copy ld-linux into /compat/linux/bin

- Copy dependencies-linux needed by ld-linux (some needed to be in
/compat/linux/lib, other in /compat/linux/lib64).

- When using fpc-linux to compile-link a simple fpgui-programe, compilation
is ok, linking begin but after 3 minutes, there is a message from fpc.

> Error (9014) Can't call the linker, switching to external linking
> Error (9013) Error while linking.

So i tried to link manually all the compiled files in /units to see what
appends with:

 ->  /compat/linux/bin/ld -o  /compat/linux/lib/crt0.o
/usr/test/units/test.o -lc

And there is that error message:

<http://free-pascal-general.1045716.n5.nabble.com/file/n5726229/crossfbsdlin.jpg> 

Do you have a idea what is wrong ?

Many thanks.

Fre;D







-----
Many thanks ;-)
--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Linking-to-Linux-on-a-FreeBSD-system-with-Linux-emulated-tp5726205p5726229.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.



More information about the fpc-pascal mailing list