now, I compile with 3.3.1 stable thrunk:
fpc -n -us -dDLLEXPORT -dLANGDEU -Px86_64 -Twin64 -B -O2 -Os -CD -Cg -a -al -Aas -st RTLLib.pas
::----
fpc -n -us -dDLLEXPORT -XX -CX -Xs -B -al -O2 -Twin64 -Px86_64 ^
-oRTLLib.dll ^
-k-Trtlld ^
-k--dll ^
-k-eDllEntryPoint ^
RTLLib.pas
strip rtllib.dll
fpc -n -us -dDLLEXPORT -dDLANGDEU -O2 -Os -Cg -a -al -Aas -st main.pas
dir main*.*
as.exe --64 -o main.o main.s
fpc -n -us -dDLLIMPORT -O2 -Xi test.pas
and get this output:
fpc -n -us -dDLLEXPORT -dLANGDEU -Px86_64 -Twin64 -B -O2 -Os -CD -Cg -a -al -Aas -st RTLLib.pas
RTLLib.pas(7,16) Fatal: Internal error 2006012304
Fatal: Compilation aborted
Error: C:\FPC\fpc\bin\x86_64-win64\ppcx64.exe returned an error exitcode
T:\a>fpc -n -us -dDLLEXPORT -XX -CX -Xs -B -al -O2 -Twin64 -Px86_64 -oRTLLib.dll -k-Trtlld -k--dll -k-eDllEntryPoint RTLLib.pas
RTLLib.pas(7,16) Fatal: Internal error 2006012304
Fatal: Compilation aborted
Error: C:\FPC\fpc\bin\x86_64-win64\ppcx64.exe returned an error exitcode
T:\a>strip rtllib.dll
T:\a>fpc -n -us -dDLLEXPORT -dDLANGDEU -O2 -Os -Cg -a -al -Aas -st main.pas
main.pas(4,10) Fatal: Internal error 2006012304
Fatal: Compilation aborted
Error: C:\FPC\fpc\bin\x86_64-win64\ppcx64.exe returned an error exitcode
T:\a>dir main*.*
Datenträger in Laufwerk T: ist Volume
Volumeseriennummer: 76E3-B1D8
Verzeichnis von T:\a
16.05.2025 15:10 2.199 main.o
16.05.2025 12:02 328 main.pas
16.05.2025 12:00 301 main.pas.bak
16.05.2025 13:59 1.146 main.ppu
16.05.2025 13:59 2.492 main.s
16.05.2025 13:59 364 main_ppas.bat
6 Datei(en), 6.830 Bytes
0 Verzeichnis(se), 450.954.182.656 Bytes frei
T:\a>as.exe --64 -o main.o main.s
T:\a>fpc -n -us -dDLLIMPORT -O2 -Xi test.pas
test.pas(4,14) Fatal: Internal error 2006012304
Fatal: Compilation aborted
Error: C:\FPC\fpc\bin\x86_64-win64\ppcx64.exe returned an error exitcode[/code]