[fpc-devel] FPC trunk building lazarus trunk fails with compiler AV ?

Karoly Balogh charlie at scenergy.dfmk.hu
Mon Dec 13 03:57:46 CET 2021


On Sun, 12 Dec 2021, Yuriy Sydorov via fpc-devel wrote:

> > set CPUOPTS=-O2  -Opcoreavx -Cpcoreavx
> > set CPUOPTS64=-Cfavx
> >
> > I didn't enter those in Lazarus I think, so that should be pretty much
> default.
> Should be fixed now. The AVs have occurred only when targeting the AVX FPU.

Yuriy, your fix seems to break m68k, in particular m68k runs into that
newly added IE:

~External command
-Tlinux -FUfcl-passrc/units/m68k-linux/
-Fufcl-passrc/src -Fl -Pm68k -XPm68k-linux- -Ur -Xs -O2 -n -O- -dm68k
-dRELEASE -CfSOFT -O2 -XX -CX -Sc -viq fcl-passrc/BuildUnit_fcl_passrc.pp"
failed with exit code 256. Console output:
Target OS: Linux for m68k
Compiling fcl-passrc/BuildUnit_fcl_passrc.pp
Compiling ./fcl-passrc/src/pastree.pp
pastree.pp(3155,3) Fatal: Internal error 2021121201
Fatal: Compilation aborted

I've no doubt the problem is in the m68k target, and the IE only exposed
it, but regardless, register allocation is not one of my strenght, so
ideas welcomed.


More information about the fpc-devel mailing list