[fpc-devel] Porting fpc to linux-sparc64

John Paul Adrian Glaubitz glaubitz at physik.fu-berlin.de
Mon May 29 14:29:04 CEST 2017


On Mon, May 29, 2017 at 02:25:34PM +0200, Karoly Balogh (Charlie/SGR) wrote:
> > > 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. :)

Thanks. But the linker problem is just a result of the assembler not
playing nicely. The linker did nothing wrong ;-).

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

But isn't the Makefile generated from fpcmake? :-O

Let me know if you need access to a porterbox.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz at debian.org
`. `'   Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



More information about the fpc-devel mailing list