[fpc-devel] Freepascal on SPARC, MIPS(EL) and ARM GNU/Linux hosts

Sunil Amitkumar Janki devel.sjanki at gmail.com
Sun Jan 2 04:01:47 CET 2005


I want to know how to build Freepascal so it runs on SPARC,
MIPS(EL) and ARM GNU/Linux. For the latter two I will probably
first have to cross-build to these architectures if possible but I
don't know how to do this yet.

This is the error I get when I build FPC 2.2.0 on SPARC using
FPC 2.0.0:

> /opt/programming/pascal/freepascal/applications/compilers/2/2.0/2.0.0/bin/ppcsparc 
> -Ur -Ur -Xs  -n -Xs -Fi../inc -Fi../sparc -Fi../unix -Fisparc -FE. 
> -FU/tmp/fpc-2.2.0/rtl/units/sparc-linux -dsparc -dRELEASE 
> ../objpas/rtlconsts.pp
> /opt/programming/pascal/freepascal/applications/compilers/2/2.0/2.0.0/bin/ppcsparc 
> -Ur -Ur -Xs  -n -Xs -Fi../inc -Fi../sparc -Fi../unix -Fisparc -FE. 
> -FU/tmp/fpc-2.2.0/rtl/units/sparc-linux -dsparc -dRELEASE -Sg 
> ../objpas/typinfo.pp
> /opt/programming/pascal/freepascal/applications/compilers/2/2.0/2.0.0/bin/ppcsparc 
> -Ur -Ur -Xs  -n -Xs -Fi../inc -Fi../sparc -Fi../unix -Fisparc -FE. 
> -FU/tmp/fpc-2.2.0/rtl/units/sparc-linux -dsparc -dRELEASE 
> ../objpas/math.pp
> math.pp(2185,10) Error: Calling convention doesn't match forward
> math.pp(2190,10) Error: Calling convention doesn't match forward
> math.pp(2195,10) Error: Calling convention doesn't match forward
> math.pp(2207,10) Error: Calling convention doesn't match forward
> math.pp(2218,10) Error: Calling convention doesn't match forward
> math.pp(2229,10) Error: Calling convention doesn't match forward
> math.pp(2241,10) Error: Calling convention doesn't match forward
> math.pp(2253,10) Error: Calling convention doesn't match forward
> math.pp(2349) Fatal: There were 8 errors compiling module, stopping
> math.pp(2349) Error: Compilation aborted
> make[7]: *** [math.ppu] Error 1

I don't know if ARM and MIPS host support do in fact exist at all
but if not I would like to add these. I am not too knowledgeable
about ARM assembly and differences for the various versions.

I do have some experience and documents on MIPS assembly so
I should have to get by on that with the help of information across
the internet. Any help will be appreciated.

Sunil





More information about the fpc-devel mailing list