Skip to content

build of fpc fails due "Incompatible types: got "Single" expected "Comp"" after recent change

Summary

Build of FPC fails on aarch64 and ppc64le due Incompatible types: got "Single" expected "Comp" after a recent change. x86_64 is OK. Bisecting points to 2d0f8467 as the offending commit.

...
External command "/home/jenkins/workspace/FreePascal/label/aarch64/compiler/ppca64  -Tlinux -FUrtl-objpas/units/aarch64-linux/ -Fu/home/jenkins/workspace/FreePascal/label/aarch64/rtl/units/aarch64-linux/ -Furtl-objpas/src/inc -Firtl-objpas/src/inc -Firtl-objpas/src/linux -Firtl-objpas/src/aarch64 -Fl/usr/lib/gcc/aarch64-redhat-linux/14 -Ur -Xs -O2 -n -Fl/usr/lib/gcc/aarch64-redhat-linux/14 -daarch64 -dRELEASE -XX -CX -Sc -viq rtl-objpas/BuildUnit_rtl_objpas.pp" failed with exit code 256. Console output:
Target OS: Linux for AArch64
Compiling rtl-objpas/BuildUnit_rtl_objpas.pp
Compiling ./rtl-objpas/src/inc/fpmonitor.pp
Assembling fpmonitor
Compiling ./rtl-objpas/src/inc/rtti.pp
Compiling ./rtl-objpas/src/inc/variants.pp
rtti.pp(2789,33) Error: Incompatible types: got "Single" expected "Comp"
rtti.pp(2800,33) Error: Incompatible types: got "Double" expected "Comp"
rtti.pp(2811,33) Error: Incompatible types: got "Double" expected "Comp"
rtti.pp(2833,33) Error: Incompatible types: got "Currency" expected "Comp"
rtti.pp(7903) Fatal: There were 4 errors compiling module, stopping
Fatal: Compilation aborted

System Information

  • Operating system: Linux (Fedora 40)
  • Processor architecture: aarch64 and ppc64le
  • Compiler version: trunk
  • Device:

Steps to reproduce

build FPC itself with make all

Example Project

What is the current bug behavior?

What is the expected (correct) behavior?

Relevant logs and/or screenshots

Possible fixes

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