[fpc-pascal] Building FPC with gdb support for SPARC

Marco van de Voort marcov at stack.nl
Mon Aug 14 13:20:27 CEST 2006


> On 14 aug 2006, at 12:21, Mark Morgan Lloyd wrote:
> 
> > /fpcsrc/compiler/ppcsparc -Fl/fpcsrc/libgdb/linux -Ur -Xs  -n -Sg
> >   -Fu/fpcsrc/rtl/units/sparc-linux -Fu/fpcsrc/fv/units/sparc-linux - 
> > Fu/fpcsrc/s
> > /fpcsrc/libgdb/linux/libgdb.a(gdbtypes.o)(.text+0x1154): In function
> >   `create_array_type':
> > /mnt/hda1/florian/gdb-6.3.woody/gdb/gdbtypes.c:752: undefined  
> > reference
> >   to `__muldi3'
> > /fpcsrc/libgdb/linux/libgdb.a(ada-lang.o)(.text+0x1098): In function
> >   `max_of_size':
> > /mnt/hda1/florian/gdb-6.3.woody/gdb/ada-lang.c:519: undefined  
> > reference to
> >   `__ashldi3'
> 
> This can normally be solved by linking in libgcc. Try adding {$l gcc}  
> to the gdbint unit.

2.0.4's and recent 2.1.1/2.0.3's, (rougly all versions since mid-end june),
put

  -XLAc=c,gcc 

in your fpc.cfg to fix similar cases globally.




More information about the fpc-pascal mailing list