Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2011-01

linking error while cross compiling win64 -> Linux64

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Julien Devillers

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