View Issue Details

IDProjectCategoryView StatusLast Update
0037250FPCCompilerpublic2020-06-27 16:52
ReporterJohn Paul Adrian Glaubitz Assigned ToPierre Muller  
PrioritynormalSeverityminorReproducibilityalways
Status feedbackResolutionopen 
Product Version3.2.0 
Summary0037250: Bootstrap fails on Linux for m68k with assembler error "Error: cannot create floating-point number"
DescriptionTrying 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.0~rc1+dfsg/fpcsrc/compiler/ppc68k -Tlinux -FUnumlib/units/m68k-linux/ "-Fu/tmp/fpc/fpc-3.2.0~rc1+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.0~rc1+dfsg/fpcsrc/packages'
make[1]: *** [Makefile:2773: packages_smart] Error 2
make[1]: Leaving directory '/tmp/fpc/fpc-3.2.0~rc1+dfsg/fpcsrc'

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 ReproducePerform native build on qemu-68k running Debian unstable with the binaries from [1].

> [1] ftp://ftp.freepascal.org/pub/fpc/dist/
TagsNo tags attached.
Fixed in Revision
FPCOldBugId
FPCTarget-
Attached Files

Activities

John Paul Adrian Glaubitz

2020-06-24 18:21

reporter   ~0123576

Forgot to mention, I used version 3.2.0 from here ftp://ftp.freepascal.org/pub/fpc/dist/3.2.0/m68k-linux/.

Pierre Muller

2020-06-27 16:52

developer   ~0123627

Sorry Adrian,
This is because I forgot to mention that I had to add
export FPCCPUOPT="-O-"
as that are remaining optimizer bugs which
prevent successful compilation of the whole Free Pascal tree
fro m68k-linux target natively.

Could you please try to disable optimization inside
<<BUILDDIR>>/fpc-3.2.0~rc1+dfsg/debian/deb-build-fpc.cfg
for m68k and test again?

Thanks in advance,

Pierre

Issue History

Date Modified Username Field Change
2020-06-24 18:20 John Paul Adrian Glaubitz New Issue
2020-06-24 18:21 John Paul Adrian Glaubitz Note Added: 0123576
2020-06-27 16:52 Pierre Muller Assigned To => Pierre Muller
2020-06-27 16:52 Pierre Muller Status new => feedback
2020-06-27 16:52 Pierre Muller FPCTarget => -
2020-06-27 16:52 Pierre Muller Note Added: 0123627