Internal error 2003042401 on mipsel
Summary
When compiling LazPaint, on MIPS architecture with little-endian, an internal error 2003042401 is triggered. This error does not happen on other architectures.
System Information
- Operating system: Debian
- Processor architecture: MIPSel
- Compiler version: 3.2.2
- Device: Computer (mipsel-manda-04)
Steps to reproduce
Build LazPaint 7.2.2 using upstream repository and "make" command: https://github.com/bgrabitmap/lazpaint-upstream/releases/tag/v7.2.2
Example Project
Debian upstream. See build logs: https://buildd.debian.org/status/package.php?p=lazpaint&suite=sid
What is the current bug behavior?
Stops with fatal error.
What is the expected (correct) behavior?
Compiles.
Relevant logs and/or screenshots
/<<PKGBUILDDIR>>/lazpaint/./tools/utoolvectorial.pas(288,8) Fatal: Internal error 2003042401
Fatal: (1018) Compilation aborted
Error: /usr/bin/ppcmipsel returned an error exitcode
Possible fixes
There is a set comparison on line 288 of utoolvectorial.pas:
not ([ATarget.Gradient.GradientType,ASource.Gradient.GradientType] <= [gtRadial,gtDiamond,gtAngular])
Maybe not using set comparisons would be a way to avoid the error?