Hello.
In a multi-arch FreeBSD 10.3 system, with Linux-emulator installed, I can run 64/32 Linux applications. One of them is fpc(1) (free pascal compiler).
fpc-FreeBSD-64, fpc-FreeBSD-32, fpc-Linux-64 and fpc-Windows-32 (via wine) are all working and can compile ok. fpc-FreeBSD-64, fpc-FreeBSD-32 and fpc-Windows-32 can also link the objects created. And all are perfectly running on FreeBSD 10.3 multi-arch. But for fpc-Linux-64 the link fail.
How to make
Here the message given by the fpc compiler:
When compiling on a FreeBSD 64 bit system using fpc-freebsd-32 there is that message on linking:
OK, it works.
But when compiling on a FreeBSD 64 bit system using fpc-linux-64, there is that message on linking:
(/lib64/ld-linux-x86-64.so is installed in /compat/linux/lib64)
Any idea or suggestions?
Many thanks.
Fre;D
In a multi-arch FreeBSD 10.3 system, with Linux-emulator installed, I can run 64/32 Linux applications. One of them is fpc(1) (free pascal compiler).
fpc-FreeBSD-64, fpc-FreeBSD-32, fpc-Linux-64 and fpc-Windows-32 (via wine) are all working and can compile ok. fpc-FreeBSD-64, fpc-FreeBSD-32 and fpc-Windows-32 can also link the objects created. And all are perfectly running on FreeBSD 10.3 multi-arch. But for fpc-Linux-64 the link fail.
How to make
ld
link Linux applications too ?Here the message given by the fpc compiler:
When compiling on a FreeBSD 64 bit system using fpc-freebsd-32 there is that message on linking:
Code:
[3.069] Searching file /usr/bin/ld... found
[3.069] Using util /usr/bin/ld
[3.069] Executing "/usr/bin/ld -b elf32-i386-freebsd -m elf32-i386-freebsd -L. -o ./test ./link.res" [B]with fpSystem call[/B]
[3.960] 62 lines compiled, 4.0 sec
[3.972] 2 hint(s) issued
But when compiling on a FreeBSD 64 bit system using fpc-linux-64, there is that message on linking:
(/lib64/ld-linux-x86-64.so is installed in /compat/linux/lib64)
Code:
[4.438] Searching file /bin/ld... found
[4.438] Using util /bin/ld
[4.438] Executing "/bin/ld" with command line "-b elf64-x86-64 -m elf_x86_64 [B]--dynamic-linker=/lib64/ld-linux-x86-64.so
.2[/B] -L. -o ./test ./link.res"
/bin/ld: warning: ./link.res contains output sections; did you forget -T?
[246.930] test.pas(62,1) Error: Can't call the linker, switching to external linking
[246.930] test.pas(62,1) Error: Error while linking
[246.930] test.pas(62,1) Fatal: There were 2 errors compiling module, stopping
[247.070] Fatal: Compilation aborted
Many thanks.
Fre;D
Last edited by a moderator: