Skip to content

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:

  1. Download the attached archive and unpack it. 2021-09-16_BUGGED_d2df-sdl.zip

  2. Open d2df-sdl/src/game/ in terminal.

  3. 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

  4. 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
Edited by Dmitry D. Chernov
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information