[fpc-devel] FPC 2.2.2 on Linux/SPARC

Mark Morgan Lloyd markMLl.fpc-devel at telemetry.co.uk
Tue Sep 2 01:55:03 CEST 2008


Jonas Maebe wrote:
> On 01 Sep 2008, at 21:12, Mark Morgan Lloyd wrote:
> 
>> On SPARC I can build from scratch and tests complete. fpc appears to 
>> be OK, but fp bombs during initialisation leaving the screen in raw 
>> mode. If I redirect stdout to a file I get
>>
>> An unhandled exception occurred at $FFA767E2 :
>> EBusError : Bus error or misaligned data access
>>  $FFA767E2
>>
>> I'm not very good with gdb etc.- how do I start to track this down?
> 
> Compile everything with
> 
> make OPT="-O- -g"
> 
> then open two terminal/console windows on the machine, in one of the 
> type "tty" and note the output, and in the other one start "gdb fp", then
> 
>   tty tty_of_other_console
>   run
> 
> and then when it crashes type
>   backtrace
> 
> post the output of the latter command here.

It appears I can't get that far. If I

make clean
make GDB_V603=1 OPT="-O- -g" all

I fairly promptly get

..
/usr/local/bin/ppcsparc -Ur -Ur -Xs -O2 -n -Fi../inc -Fi../sparc 
-Fi../unix -Fisparc -FE. 
-FU/usr/local/src/fpc/fpcbuild-2.2.2/fpcsrc/rtl/units/sparc-linux -O- -g 
-dsparc -dRELEASE -Sg ../objpas/typinfo.pp
/usr/local/bin/ppcsparc -Ur -Ur -Xs -O2 -n -Fi../inc -Fi../sparc 
-Fi../unix -Fisparc -FE. 
-FU/usr/local/src/fpc/fpcbuild-2.2.2/fpcsrc/rtl/units/sparc-linux -O- -g 
-dsparc -dRELEASE ../objpas/math.pp
Fatal: Compilation aborted
An unhandled exception occurred at $FF09163A :
EBusError : Bus error or misaligned data access
   $FF09163A

make[8]: *** [math.ppu] Error 217
make[8]: Leaving directory 
`/usr/local/src/fpc/fpcbuild-2.2.2/fpcsrc/rtl/linux'
make[7]: *** [linux_all] Error 2
make[7]: Leaving directory `/usr/local/src/fpc/fpcbuild-2.2.2/fpcsrc/rtl'
make[6]: *** [rtl] Error 2
make[6]: Leaving directory 
`/usr/local/src/fpc/fpcbuild-2.2.2/fpcsrc/compiler'
make[5]: *** [next] Error 2
make[5]: Leaving directory 
`/usr/local/src/fpc/fpcbuild-2.2.2/fpcsrc/compiler'
make[4]: *** [ppc1] Error 2
make[4]: Leaving directory 
`/usr/local/src/fpc/fpcbuild-2.2.2/fpcsrc/compiler'
make[3]: *** [cycle] Error 2
make[3]: Leaving directory 
`/usr/local/src/fpc/fpcbuild-2.2.2/fpcsrc/compiler'
make[2]: *** [compiler_cycle] Error 2
make[2]: Leaving directory `/usr/local/src/fpc/fpcbuild-2.2.2/fpcsrc'
make[1]: *** [build-stamp.sparc-linux] Error 2
make[1]: Leaving directory `/usr/local/src/fpc/fpcbuild-2.2.2/fpcsrc'
make: *** [fpcsrc/build-stamp.sparc-linux] Error 2

That's working with 2.2.2 already installed. Unless I hear otherwise 
I'll revert to 2.2.0 when I get time and see if I can compile 2.2.2 
without error with the debugging options.

-- 
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-devel mailing list