[fpc-devel] FPC 2.2.2 on Linux/SPARC

Mark Morgan Lloyd markMLl.fpc-devel at telemetry.co.uk
Wed Sep 3 18:05:11 CEST 2008


Mark Morgan Lloyd wrote:
> It appears I can't get that far. If I
> 
> make clean
> make GDB_V603=1 OPT="-O- -g" all
> 
> I fairly promptly get
..
> 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.

Starting off with 2.2.0 doesn't make any difference. If I do this

0 3>root at pye-dev-01:/usr/local/src/fpc/fpcbuild# make "GDB_V603=1" 
OPT="-O- -g" all

I get this

/usr/local/src/fpc/fpcbuild-2.2.2/fpcsrc/compiler/ppc1 -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 $FF5673CA :
EBusError : Bus error or misaligned data access
   $FF5673CA

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

I can confirm that ppc1 has been recently built so should have -g etc. 
If I do this

# cd /usr/local/src/fpc/fpcbuild-2.2.2/fpcsrc/rtl/linux
# gdb /usr/local/src/fpc/fpcbuild-2.2.2/fpcsrc/compiler/ppc1
(gdb) set args -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
(gdb) tty /dev/pts/5
(gdb) run

where /dev/pts/5 is another Konsole session running bash as root, I get 
this:

Starting program: /usr/local/src/fpc/fpcbuild-2.2.2/fpcsrc/compiler/ppc1 
-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

Program received signal SIGBUS, Bus error.
0x00011fc4 in FILLCHAR (X=void, COUNT=18, VALUE=546774876) at 
generic.inc:143
143     generic.inc: No such file or directory.
         in generic.inc
(gdb) backtrace
#0  0x00011fc4 in FILLCHAR (X=void, COUNT=18, VALUE=546774876) at 
generic.inc:143
#1  0x00011e18 in FILLCHAR (X=void, COUNT=19, VALUE=32 ' ') at 
system.inc:178
#2  0x0001a7c8 in SPACE (B=318767107, result=' 
0,${'#2#2#2#2'},0'#0#0#0#0#0#0) at sstrings.inc:353
#3  0x0001b93c in STR_REAL (LEN=22, F=-1, D=nan(0xfffffffffffff), 
REAL_TYPE=RT_S64REAL, S='i1', highS=255)
     at real2str.inc:456
#4  0x0001be90 in fpc_shortstr_float (D=nan(0xfffffffffffff), 
LEN=-32767, FR=-1, RT=1, S='i1', highS=255)
     at sstrings.inc:403
#5  0x00215d58 in TDEBUGINFOSTABS__APPENDSYM_CONST (LIST=0xf7854df0, 
SYM=0xf7a55210, this=0xf7f944a0)
     at dbgstabs.pas:1343
#6  0x0011bd78 in TDEBUGINFO__APPENDSYM (LIST=0xf7854df0, 
SYM=0xf7a55210, this=0xf7f944a0) at dbgbase.pas:358
#7  0x0011c39c in TDEBUGINFO__WRITE_SYMTABLE_SYMS (LIST=0xf7854df0, 
ST=0xf7f7c490, this=0xf7f944a0)
     at dbgbase.pas:428
#8  0x00216318 in TDEBUGINFOSTABS__INSERTTYPEINFO (this=0xf7f944a0) at 
dbgstabs.pas:1415
#9  0x001977e8 in PROC_UNIT () at pmodules.pas:1129
#10 0x0016ebd0 in COMPILE (FILENAME='../objpas/math.pp') at parser.pas:373
#11 0x0004704c in COMPILE (CMD='') at compiler.pas:244
#12 0x000103cc in main () at pp.pas:207
(gdb)

Hope I got that right.

-- 
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