Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2025-04

Compilation raised exception internally

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Luca Olivetti

Hello,

recently I get a lot of these errors (i.e., I modify something, in lazarus click on "compile" or "run", and I get the error). If I then use "clean up & build.." the compilation ends without errors. I recently switched the virtual machine I use for windows development from virtualbox to qemu/virt-manager, maybe that's the cause but I find it hard to believe.

Here are the messages of the last error

Hint: (11030) Start of reading config file
D:\pp-fpdebug\bin\i386-win32\fpc.cfg
Hint: (11031) End of reading config file
D:\pp-fpdebug\bin\i386-win32\fpc.cfg
Free Pascal Compiler version 3.2.2 [2024/12/13] for i386 Copyright (c) 1993-2021 by Florian Klaempfl and others (1002) Target OS: Win32 for i386
(3104) Compiling cockpitserve.lpr
(3104) Compiling labelprinter.pas
d:\24041_sese\servidor\labelprinter.pas(118,60) Error: (1026) Compilation raised exception internally
Fatal: (1018) Compilation aborted
An unhandled exception occurred at $004605C6:
EAccessViolation: Access violation
$004605C6
$0053878D
$00536DE9
$005395F1
$0053961D
$0053961D
$0053961D
$0053A3AD
$0053D5BF
$0054B614
$0054C1E5
$00436BFC
$004B81A6
$004B7862
$004B7FC4
$004B7A0A
$004B7FC4

Error: D:\pp-fpdebug\bin\i386-win32\ppc386.exe returned an error exitcode

The line where it stops is usually (but not always) the same:

TTabZebraPrinters = specialize TDeviceTabs<TZebraPrinter>;

Bye

Luca
Michael Van Canneyt
to Luca Olivetti
Luca Olivetti wrote 48 lines
Hello, recently I get a lot of these errors (i.e., I modify something, in lazarus click on "compile" or "run", and I get the error). If I then use "clean up & build.." the compilation ends without errors. I recently switched the virtual machine I use for windows development from virtualbox to qemu/virt-manager, maybe that's the cause but I find it hard to believe. Here are the messages of the last error Hint: (11030) Start of reading config file D:\pp-fpdebug\bin\i386-win32\fpc.cfg Hint: (11031) End of reading config file D:\pp-fpdebug\bin\i386-win32\fpc.cfg Free Pascal Compiler version 3.2.2 [2024/12/13] for i386 Copyright (c) 1993-2021 by Florian Klaempfl and others (1002) Target OS: Win32 for i386 (3104) Compiling cockpitserve.lpr (3104) Compiling labelprinter.pas d:\24041_sese\servidor\labelprinter.pas(118,60) Error: (1026) Compilation raised exception internally Fatal: (1018) Compilation aborted An unhandled exception occurred at $004605C6: EAccessViolation: Access violation $004605C6 $0053878D $00536DE9 $005395F1 $0053961D $0053961D $0053961D $0053A3AD $0053D5BF $0054B614 $0054C1E5 $00436BFC $004B81A6 $004B7862 $004B7FC4 $004B7A0A $004B7FC4 Error: D:\pp-fpdebug\bin\i386-win32\ppc386.exe returned an error exitcode The line where it stops is usually (but not always) the same: TTabZebraPrinters = specialize TDeviceTabs<TZebraPrinter>;

Try to make sure you don't have circular references. It happens often in such cases.

Michael.

Luca Olivetti
to Michael Van Canneyt

El 25/4/25 a les 14:24, Michael Van Canneyt via fpc-pascal ha escrit:

Try to make sure you don't have circular references. It happens often in such cases.

Ouch, that's probably it. I usually avoid circular references but in this project I have a couple, I'll either have to try to untangle them or live with the compilation error.

Bye

Luca