Internal error 200510032 on a method marked with 'inline'
May be related to an already closed issue: #37241 (closed)
FPC version: 3.2.2
Steps to reproduce:
-
Download the attached archive and unpack it. 2021-09-16_BUGGED_d2df-sdl.zip
-
Open
d2df-sdl/src/game/
in terminal. -
Run the following command:
fpc -g -gl -FE../../bin -FU../../tmp -dUSE_SDL2 -dUSE_OPENGL -dUSE_OPENAL -dUSE_SDL2 -dUSE_XMP -dUSE_VORBIS -dUSE_OPUS -dUSE_GME Doom2DF.lpr
-
You should see the compilation process failing due to an internal error.
Possible workaround
The error will disappear if you comment out the inline
keyword in d2df-sdl/src/shared/MAPDEF.pas
on lines 147 and 353 (TDynRecordHelper.trigRec()
function).
Additional notes:
The attached archive also contains terminal outputs for independent build attempts on Windows and Linux.
Note that error message is slightly different:
g_map.pas(1940,67) Fatal: Internal error 200510032
- Windows 7 Ultimate SP1 x64
g_map.pas(1940,67) Error: Compilation raised exception internally
- Linux
Linux system info:
> uname -a
Linux th-netbook 4.19.206_1 #1 SMP PREEMPT 1630739688 i686 GNU/Linux
> lsb_release -a
LSB Version: 1.0
Distributor ID: VoidLinux
Description: Void Linux
Release: rolling
Codename: void