[fpc-pascal] Compiling FPC for SPARC
Mark Morgan Lloyd
markMLl.fpc-pascal at telemetry.co.uk
Sat Aug 5 23:26:48 CEST 2006
Mark Morgan Lloyd wrote:
> Compilation (make cycle) now progresses beyond that one and gets to this:
>
> /home/markMLl/pascal/src/fpcsrc/compiler/ppc1 -Fi../inc -Fi../sparc -Fi../unix
> -Fisparc -FE. -FU../../rtl/units/sparc-linux -dsparc -Us -Sg system.pp
> Free Pascal Compiler version 2.0.4-rc2 [2006/08/03] for sparc
> Copyright (c) 1993-2006 by Florian Klaempfl
> Target OS: Linux for SPARC
> Compiling system.pp
> generic.inc(559,13) Warning: Mixing signed expressions and longwords gives a
> 64bit result
> genmath.inc(286,9) Warning: unreachable code
> genmath.inc(299,8) Warning: unreachable code
> astrings.inc(157,5) Fatal: Internal error 200310092
> astrings.inc(157,5) Fatal: Compilation aborted
> make[5]: *** [system.ppu] Error 1
> make[5]: Leaving directory `/home/markMLl/pascal/src/fpcsrc/rtl/linux'
> make[4]: *** [linux_all] Error 2
>
> As discussed earlier I was starting off with the released 2.0.0 compiler. Source
> files from fpcbuild_2_0_4_rc2.zip downloaded about 24 hours ago- I've got
> limited free bandwidth here.
Out of curiosity I've built a 2.0.2 cross-compiler on an i386 and transferred it
to a SPARC system. This builds hello.pp OK, but applying it to the same 2.0.4
source (or, for that matter, to 2.0.2 source) gives me a slew of exceptions
similar to:
/usr/local/fpc-2.0.2x/bin/ppcsparc -Fi../inc -Fi../sparc -Fi../unix -Fisparc
-FE. -FU../../rtl/units/sparc-linux -dsparc -Us -Sg system.pp
Free Pascal Compiler version 2.0.2 [2006/08/05] for sparc
Copyright (c) 1993-2005 by Florian Klaempfl
Target OS: Linux for SPARC
Compiling system.pp
sparc.inc(60,3) msg nr 1018
An unhandled exception occurred at $0002EB9C :
EInvalidPointer : Invalid pointer operation
$0002EB9C
$0002C84C
$00072190
$0004A4C0
$000407DC
$000103B0
An unhandled exception occurred at $00000030 :
An unhandled exception occurred at $000FF00B :
An unhandled exception occurred at $000FF003 :
An unhandled exception occurred at $000FF003 :
..
So the current situation appears to be (working from memory) that 2.0.0 will
compile itself, bombs compiling 2.0.2, and gives a sensible error trying to
compile 2.0.4 (Jonas?); 2.0.2 bombs trying to compile either 2.0.2 or 2.0.4
sources.
I guess that's the last time I look at 2.0.2- it's obviously got problems.
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
More information about the fpc-pascal
mailing list