ppcrossx64.exe compilation raised exception internally
@lazidealist @FPK2 The latest trunk is currently failing during cross-compilation for a Linux target in Windows 11 X64.
# lazarus\lazbuild -B --os=linux --cpu=x86_64 --pcp="%cd%\config_lazarus" --lazarusdir="%cd%\lazarus" --language=en D:\Borland\mORMot2\packages\lazarus\mormot2.lpk
......
(3104) Compiling D:\Borland\mORMot2\src\net\mormot.net.http.pas
(3104) Compiling D:\Borland\mORMot2\src\core\mormot.core.zip.pas
(3104) Compiling D:\Borland\mORMot2\src\lib\mormot.lib.z.pas
D:\Borland\mORMot2\src\core\mormot.core.zip.pas(1716,19) Warning: (4056) Conversion between ordinals and pointers is not portable
D:\Borland\mORMot2\src\core\mormot.core.zip.pas(3416,43) Hint: (5026) Value parameter "APos" is assigned but never used
Error: (1026) Compilation raised exception internally
An unhandled exception occurred at $004B474B:
EAccessViolation: Access violation
$004B474B
$004E4432
$004F952C
$004F952C
$00541E79
$00543E89
$005443B6
$005E1A90
$0045AB37
Error: C:\fpcbuild\fpc\bin\i386-win32\ppcrossx64.exe returned an error exitcode
Error: (lazarus) Compile package mormot2 2.4: stopped with exit code 1
Error: (lazbuild) "mormot2 2.4": compilation failed
The commit 7d79b285 still compiles successfully.
# path c:\fpc\3.2.2\bin\i386-win32;C:\fpcbuild\cross\bin\x86_64-linux;%path%
# cd fpcsrc
# git checkout 4f9242758f161f234af7c380679970386cddaf4e
# make clean all & make install INSTALL_PREFIX=c:\fpcbuild\fpc
# make crossall crossinstall CPU_TARGET=x86_64 OS_TARGET=linux INSTALL_PREFIX=c:\fpcbuild\fpc
# cd ..
# lazarus\lazbuild -B --os=linux --cpu=x86_64 --pcp="%cd%\config_lazarus" --lazarusdir="%cd%\lazarus" --language=en D:\Borland\mORMot2\packages\lazarus\mormot2.lpk
......
(3104) Compiling D:\Borland\mORMot2\src\core\mormot.core.test.pas
(3104) Compiling D:\Borland\mORMot2\src\core\mormot.core.fpcx64mm.pas
(1008) 602685 lines compiled, 14.4 sec
(1021) 57 warning(s) issued
(1022) 157 hint(s) issued
Edited by idigger