[Lazarus] Can't build fpc trunk x64 win32/64

Leyba Bronstain leobronstain at gmail.com
Mon May 4 00:15:46 CEST 2020


03.05.2020 19:23, Sven Barth пишет:
> FPC only provides a 32-bit -> 64-bit cross compiler as installer and 
> that is indeed made using the 32-bit compiler. Lazarus however ships 
> with a native 64-bit compiler.
>
> I don't know how you created your fpc_stable_x64\bin\x86_64-win64 
> directory, but maybe that some utilities have different versions than 
> the ones in the fpc_stable_x32\bin\i386-win32 directory might explain 
> the problems you experience.
>
> Regards,
> Sven

Hi Sven.

I tried to get a ready-made stable version of fpc 3.0.4 x64 in different 
ways (this could be the Lazarus 2.0.8 installer or fpcupdeluxe). This 
was not a success.

After your assumptions, I decided to use only the compiler sources from 
the standard x32 package and the cross-compilation package. As a result, 
I followed several steps and managed to get a positive result. I have 
done the following:

1. I ran fpc-3.0.4.i386-win32.exe and 
fpc-3.0.4.i386-win32.cross.android.exe and installed the compiler 
sources and binutils

2. I executed the following commands in cmd:

set path=d:\Archive\development\fpc_stable\3.0.4\bin\i386-win32;%path%

make install OS_TARGET=win64 CPU_TARGET=x86_64 CPU_SOURCE=x86_64 
OS_SOURCE=win64 INSTALL_PREFIX=d:\Archive\development\fpc_trunk_x64 
PP=d:\Archive\development\fpc_stable\3.0.4\bin\i386-win32\ppcrossx64.exe 
DATA2INC=d:\Archive\development\fpc_trunk_x64\utils\data2inc.exe

fpcmkcfg -d basepath=d:\Archive\development\fpc_trunk_x64 -o 
.\bin\x86_64-win64\fpc.cfg

replace d:\Archive\development\fpc_stable\3.0.4\binw64\*.* 
d:\Archive\development\fpc_trunk_x64\bin\x86_64-win64 /a

3. Congratulation! Now I have a live compiler trunk revision. :)


Do I used the command line switches for the make command correctly? Tell 
me pls...

--

with best regards, Zoltanleo aka Док


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20200504/297da2b2/attachment.html>


More information about the lazarus mailing list