[fpc-devel] FPC for MIPS

SkyDiablo skydiablo at gmx.net
Tue Jan 15 22:58:30 CET 2013


Am 15.01.2013 13:44, schrieb SkyDiablo:
> 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 ?
>
>
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel


ok, i give it up...

i will pay some dollars if someone can give me a working solution... but 
at first i have some question.

1. i want to create a little client application for my router (running 
with OpenWRT) an a MIPS cpu. this application should use the indy-lib 
for TCP/UDP connections. is this with the actually state of FPC for MIPS 
possible?

2. can i run a crosscompiler i386(pc)/linux|windows -> MIPS/linux 
compiler inside lazarus?

3. what about my "soft-float" problem? in my oppinion i have to compile 
a toolchain with "soft-floating" and the fpc-compiler have to do it too?

4. what say the timeline for fpc/lazarus with native support for MIPS 
systems ?

i realy need this enviroment but i cant get it to run :(



More information about the fpc-devel mailing list