Skip to content

FPC 3.3.1 - Error: Compilation raised exception internally (32bit cross)

When I compile the following program, it throws the following error:

project1.lpr(15,21) Error: Compilation raised exception internally

But this only works with the highest compiler optimization (-O4)

anz_bug.zip

program project1;

// {$O-}

procedure vec3(y: single);
begin
{$i-}  WriteLn(y);
end;

var
  u: single = 0;
const
  achse = 3.0;
begin
  vec3(u + 5 - achse);
end.   

This error occurs on win32 and Linux 32Bit. Everything is fine with 64 bits. I compiled everything with Linux 64bit with the appropriate cross compilers.

More info: https://www.lazarusforum.de/viewtopic.php?f=19&t=15598&p=140641#p140641

Edited by FPK
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information