[fpc-pascal] linking error while cross compiling win64 -> Linux64

Julien Devillers julien.devillers at opti-time.com
Tue Jan 25 17:19:42 CET 2011


Hi

 

I have a linking error with the following compile command :

 

è d:\pp\bin\x86_64-win64\fpc lib\snip\snip.dpr -Tlinux -n -va -Mdelphi -FuD:\pp\bin\x86_64-win64/../../units/$FPCTARGET/  

 

In the above line, I removed lots of includes. The error is  (founded in the below log)

è "D:\dev\devtools\MinGW\mingw\bin\ld.exe: unrecognised emulation mode: elf_x86_64" 

 

[1.367] Searching file D:\dev\devtools\MinGW\mingw\bin\ld.exe... found

[1.371] Using util D:\dev\devtools\MinGW\mingw\bin\ld.exe

D:\dev\devtools\MinGW\mingw\bin\ld.exe: unrecognised emulation mode: elf_x86_64

Supported emulations: i386pe

[1.523] Error while linking

[1.523] There were 1 errors compiling module, stopping

[1.523] Compilation aborted

Error: d:\pp\bin\x86_64-win64\ppcx64.exe returned an error exitcode (normal if you did not specify a source file to be compiled)

 

Maybe I don't use the right ld.exe file ?

I'm running fpc 2.4.0

 

regards

Julien

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20110125/50638212/attachment.html>


More information about the fpc-pascal mailing list