[fpc-devel] FPC for MIPS

SkyDiablo skydiablo at gmx.net
Tue Jan 15 13:44:09 CET 2013


Am 15.01.2013 11:46, schrieb Mark Morgan Lloyd:
> SkyDiablo wrote:
>> hi ho,
>>
>> i'm back again ;) i have try this:
>>
>> http://www.mail-archive.com/fpc-devel@lists.freepascal.org/msg27336.html
>>
>> but my Ubuntu Desktop 12.04 LTS can't run the "ppcmips" binary?
>>
>> $ chmod +x ppcmips
>> $ ./ppcmips -iV
>> bash: ./ppcmips: Kann die Datei nicht ausführen. (Can't run this file)
>>
>> so, if there are any other solution to compile fpc code for MIPS/linux?
>
> We've been round this one before. Refer to 
> http://wiki.lazarus.freepascal.org/Native_MIPS_Systems which shows 
> you- step-by-step- how to build cross-binutils, a cross-compiler and 
> then a native compiler for either little- or big-endian MIPS.
>
> The current state is that the compiler runs sufficiently well to build 
> itself on a Linux MIPS system, a high proportion of the test suite 
> runs, but it's not yet complete enough for build a runnable Lazarus IDE.
>
> I can't do much more on little-endian since the system I thought I'd 
> been promised didn't arrive. What's more I spent three weeks keeping a 
> careful watch for carriers, and that Did Not Help. I've got a couple 
> of big-endian systems in the collection but they aren't (yet) running 
> Linux (IRIX only, and I don't thing a port is remotely feasible).
>

ok, i try this step-by-step and get now this error:

$ make "OPT=-O- -g" -C compiler mips
make: Gehe in Verzeichnis '/usr/local/src/fpc-trunk/compiler'
make PPC_TARGET=mips CPU_UNITDIR=mips all
make[1]: Betrete Verzeichnis '/usr/local/src/fpc-trunk/compiler'
/usr/bin/ppc386 -Fumips -Fusystems -Fu../rtl/units/i386-linux -Fimips 
-FE. -FUmips/units/i386-linux -O- -g -dmips -dGDB -dBROWSERLOG -Sew pp.pas
Error: Illegal parameter: -CfSOFT
make[1]: *** [ppcmips] Fehler 1
make[1]: Verlasse Verzeichnis '/usr/local/src/fpc-trunk/compiler'
make: *** [mips] Fehler 2
make: Verlasse Verzeichnis '/usr/local/src/fpc-trunk/compiler'

i dont know where i put the parameter "-CfSOFT" ? but in the end, i need 
a compiler there create binarys with soft-floating... what can i do now ?





More information about the fpc-devel mailing list