Re: [fpc-devel] FPC for MIPS

2013-01-16 Thread SkyDiablo

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@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 :(
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


RE: [fpc-devel] FPC for MIPS

2013-01-15 Thread Pierre Free Pascal
  I updated 
ftp://ftp.freepascal.org/pub/fpc/snapshot/trunk/mipsel-linux/ 
and
ftp://ftp.freepascal.org/pub/fpc/snapshot/trunk/mips-linux/
directories with new snapshots dated from 2013-01-15.

  Tell us if these work better,

Pierre Muller

> -Message d'origine-
> De : fpc-devel-boun...@lists.freepascal.org [mailto:fpc-devel-
> boun...@lists.freepascal.org] De la part de SkyDiablo
> Envoyé : mardi 15 janvier 2013 02:04
> À : fpc-devel@lists.freepascal.org
> Objet : [fpc-devel] FPC for MIPS
> 
> 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?
> 
> greez & thx,
>sky...
> ___
> fpc-devel maillist  -  fpc-devel@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] FPC for MIPS

2013-01-15 Thread Jonas Maebe


On 15 Jan 2013, at 13:44, SkyDiablo wrote:


$ 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" ?


Then find out where you put it and remove it again. It's probably in  
a .fpc.cfg file in your home directory or so.



Jonas___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] FPC for MIPS

2013-01-15 Thread Mark Morgan Lloyd

SkyDiablo wrote:

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


1) Are you trying to build for big- or little-endian? Because that 
command is from the big-endian section of the page.


2) Do you have a standard /etc/fpc.cfg?

3) What version of the FPC compiler etc. are you using?

4) Are you using the sources recently checked out from subversion?

5) Have you build binutils of the recommended version?

6) Immediately before that command, what is the value of the PP shell 
variable?


7) To get context, what is the last line of explanatory text immediately 
before you've entered that command?


8) Please could a German-speaker comment on those error messages?

I admit to being slightly stumped by this, because I specifically noted 
the commands in the second part of that page (for big-endian MIPS) to 
illustrate that transcription from the first part (little-endian) 
worked. The only thing that you need to be *careful* *about* is the 
*directory* *structure* - but I'd hoped that was pretty obvious- and in 
the case of big-endian the name of the directories that are storing the 
unit files.


I'm by no means experienced at this, and if I can do it I don't see why 
you shouldn't be able to.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] FPC for MIPS

2013-01-15 Thread 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@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] FPC for MIPS

2013-01-15 Thread 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).


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] FPC for MIPS

2013-01-15 Thread microcode
On Tue, Jan 15, 2013 at 02:04:20AM +0100, 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?

Ubuntu has a MIPS port? Even for LTS!?
> 
> $ chmod +x ppcmips
> $ ./ppcmips -iV
> bash: ./ppcmips: Kann die Datei nicht ausf?hren. (Can't run this file)

What "computer" are you running this on?

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel