Bootstrap fails on Linux for m68k with assembler error "Error: cannot create floating-point number"
Original Reporter info from Mantis: glaubitz
-
Reporter name: John Paul Adrian Glaubitz
Original Reporter info from Mantis: glaubitz
- Reporter name: John Paul Adrian Glaubitz
Description:
Trying to bootstrap FPC for Linux for m68k on Debian unstable with the binaries downloaded from [1] fails with:
[ 65%] Skipped package morphunits which has been disabled for target m68k-linux
Start compiling package numlib for target m68k-linux.
Compiling numlib/BuildUnit_numlib.pp
Compiling ./numlib/src/spe.pas
External command "/tmp/fpc/fpc-3.2.0rc1+dfsg/fpcsrc/compiler/ppc68k -Tlinux -FUnumlib/units/m68k-linux/ "-Fu/tmp/fpc/fpc-3.2.0rc1+dfsg/fpcsrc/rtl/units/m68k-linux/" -Funumlib/src -Finumlib/src -Ur -Xs -O2 -n "@/tmp/fpc/fpc-3.2.0~rc1+dfsg/debian/deb-host-fpc.cfg" -dm68k -dRELEASE -XX -CX -Sc -viq numlib/BuildUnit_numlib.pp" failed with exit code 256. Console output:
Target OS: Linux for m68k
Compiling numlib/BuildUnit_numlib.pp
Compiling ./numlib/src/spe.pas
Assembling spe
numlib/units/m68k-linux/spe.s: Assembler messages:
numlib/units/m68k-linux/spe.s:1751: Error: cannot create floating-point number
spe.pas(1793) Error: Error while assembling exitcode 1
spe.pas(1793) Fatal: There were 2 errors compiling module, stopping
Fatal: Compilation aborted
The installer encountered the following error:
Compilation of "BuildUnit_numlib.pp" failed
make[2]: *** [Makefile:2838: smart] Error 1
make[2]: Leaving directory '/tmp/fpc/fpc-3.2.0rc1+dfsg/fpcsrc/packages'rc1+dfsg/fpcsrc'
make[1]: *** [Makefile:2773: packages_smart] Error 2
make[1]: Leaving directory '/tmp/fpc/fpc-3.2.0
I'm performing a fresh bootstrap since the build with 3.0.4 fails as well, but with a different error message [2].
A hotfix patch would be nice that can be included in the Debian package for version 3.2.0.
Thanks,
Adrian
[1] ftp://ftp.freepascal.org/pub/fpc/dist/
[2] https://buildd.debian.org/status/fetch.php?pkg=fpc&arch=m68k&ver=3.2.0%7Erc1%2Bdfsg-2&stamp=1592997128&raw=0
Steps to reproduce:
Perform native build on qemu-68k running Debian unstable with the binaries from [1].