[fpc-devel] Porting fpc to linux-sparc64
Karoly Balogh (Charlie/SGR)
charlie at scenergy.dfmk.hu
Mon May 29 14:25:34 CEST 2017
Hi,
On Mon, 29 May 2017, John Paul Adrian Glaubitz wrote:
> On Mon, May 29, 2017 at 02:14:26PM +0200, John Paul Adrian Glaubitz wrote:
> > On Mon, May 29, 2017 at 01:09:05PM +0200, John Paul Adrian Glaubitz wrote:
> > > I tried adding "-32" like this:
> >
> > Even passing "-Av8plus" does not help. So, the options from
> > compiler/sparc/cpugas.pas are definitely not passed to the assembler.
I'm looking into it now. Stay tuned. I managed to reproduce your linker
problem already, at least. :)
> From the build log:
>
> as -o /root/fpc/fpc-3.0.0+dfsg/fpcsrc/rtl/units/sparc-linux/prt0.o sparc/prt0.as
> as -o /root/fpc/fpc-3.0.0+dfsg/fpcsrc/rtl/units/sparc-linux/dllprt0.o sparc/dllprt0.as
> as -o /root/fpc/fpc-3.0.0+dfsg/fpcsrc/rtl/units/sparc-linux/cprt0.o sparc/cprt0.as
> as -o /root/fpc/fpc-3.0.0+dfsg/fpcsrc/rtl/units/sparc-linux/gprt0.o sparc/gprt0.as
Err, those are invoked directly from the Makefile, not invoked from inside
FPC. But you're right, that will be also a problem... Some platforms still
use asm-written startup stubs in FPC. Not all of them tho'. I think these
days these startup codes could be written in Pascal anyway, but for Sparc
they're not.
Charlie
More information about the fpc-devel
mailing list