Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2012-01

cannot compile fpc 2.6.0 for mips

5 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Andrew Haines

Hi,

I was trying to build a cross complier for mips-linux and met this error:

make crossinstall PP=/usr/local/lib/fpc/2.6.0/ppcx64 OS_TARGET=linux CPU_TARGET=mipsel
....
make[4]: Entering directory
`/home/andrew/programming/fpc-2.6.0/packages/fcl-web' ./fpmake clean --localunitdir=../.. --globalunitdir=.. --os=linux --cpu=mipsel -o -Pmipsel -o -XPmipsel-linux- -o -Xr -o -Ur -o -Xs -o -O2 -o -n -o -Fu/home/andrew/programming/fpc-2.6.0/rtl -o -Fu/home/andrew/programming/fpc-2.6.0/packages/hash -o -Fu/home/andrew/programming/fpc-2.6.0/packages/paszlib -o -Fu/home/andrew/programming/fpc-2.6.0/packages/fcl-process -o -Fu/home/andrew/programming/fpc-2.6.0/packages/fpmkunit -o -FE. -o -FUunits/mipsel-linux -o -dmipsel -o -dRELEASE
--compiler=/home/andrew/programming/fpc-2.6.0/compiler/ppcross An unhandled exception occurred at $0000000000423596 : EInstallerError : Invalid CPU name "mipsel"
$0000000000423596
$000000000042BEC1
$000000000042B70C
$000000000042E015
$000000000043BE2B
$000000000043BE67
$0000000000400278

make[4]: *** [clean] Error 217

Anybody know which version of fpc supports mips the best?

Regards,

Andrew

Reply by email

Florian Klämpfl
to Andrew Haines
Andrew Haines wrote 31 lines
Hi, I was trying to build a cross complier for mips-linux and met this error: make crossinstall PP=/usr/local/lib/fpc/2.6.0/ppcx64 OS_TARGET=linux CPU_TARGET=mipsel .... make[4]: Entering directory `/home/andrew/programming/fpc-2.6.0/packages/fcl-web' ./fpmake clean --localunitdir=../.. --globalunitdir=.. --os=linux --cpu=mipsel -o -Pmipsel -o -XPmipsel-linux- -o -Xr -o -Ur -o -Xs -o -O2 -o -n -o -Fu/home/andrew/programming/fpc-2.6.0/rtl -o -Fu/home/andrew/programming/fpc-2.6.0/packages/hash -o -Fu/home/andrew/programming/fpc-2.6.0/packages/paszlib -o -Fu/home/andrew/programming/fpc-2.6.0/packages/fcl-process -o -Fu/home/andrew/programming/fpc-2.6.0/packages/fpmkunit -o -FE. -o -FUunits/mipsel-linux -o -dmipsel -o -dRELEASE --compiler=/home/andrew/programming/fpc-2.6.0/compiler/ppcross An unhandled exception occurred at $0000000000423596 : EInstallerError : Invalid CPU name "mipsel" $0000000000423596 $000000000042BEC1 $000000000042B70C $000000000042E015 $000000000043BE2B $000000000043BE67 $0000000000400278 make[4]: *** [clean] Error 217 Anybody know which version of fpc supports mips the best?

trunk, however mips was never in a working state in svn.

Reply by email

Sven Barth
to Florian Klämpfl
Florian Klämpfl wrote 34 lines
Am 07.01.2012 06:33, schrieb Andrew Haines: > Hi, > > I was trying to build a cross complier for mips-linux and met this error: > > make crossinstall PP=/usr/local/lib/fpc/2.6.0/ppcx64 OS_TARGET=linux > CPU_TARGET=mipsel > .... > make[4]: Entering directory > `/home/andrew/programming/fpc-2.6.0/packages/fcl-web' > ./fpmake clean --localunitdir=../.. --globalunitdir=.. --os=linux > --cpu=mipsel -o -Pmipsel -o -XPmipsel-linux- -o -Xr -o -Ur -o -Xs -o -O2 > -o -n -o -Fu/home/andrew/programming/fpc-2.6.0/rtl -o > -Fu/home/andrew/programming/fpc-2.6.0/packages/hash -o > -Fu/home/andrew/programming/fpc-2.6.0/packages/paszlib -o > -Fu/home/andrew/programming/fpc-2.6.0/packages/fcl-process -o > -Fu/home/andrew/programming/fpc-2.6.0/packages/fpmkunit -o -FE. -o > -FUunits/mipsel-linux -o -dmipsel -o -dRELEASE > --compiler=/home/andrew/programming/fpc-2.6.0/compiler/ppcross > An unhandled exception occurred at $0000000000423596 : > EInstallerError : Invalid CPU name "mipsel" > $0000000000423596 > $000000000042BEC1 > $000000000042B70C > $000000000042E015 > $000000000043BE2B > $000000000043BE67 > $0000000000400278 > > make[4]: *** [clean] Error 217 > > Anybody know which version of fpc supports mips the best? trunk, however mips was never in a working state in svn.

This looks more like a problem of fpmake though. Because the mips CPUs are missing in fpmkunit.pas (and at least the target OS "nativent" is missing as well btw.).

Regards,
Sven

Reply by email

Mark Morgan Lloyd
to Andrew Haines: I was trying to build a cross complier for mips-linux and met this error: make…
Andrew Haines wrote 31 lines
Hi, I was trying to build a cross complier for mips-linux and met this error: make crossinstall PP=/usr/local/lib/fpc/2.6.0/ppcx64 OS_TARGET=linux CPU_TARGET=mipsel .... make[4]: Entering directory `/home/andrew/programming/fpc-2.6.0/packages/fcl-web' ./fpmake clean --localunitdir=../.. --globalunitdir=.. --os=linux --cpu=mipsel -o -Pmipsel -o -XPmipsel-linux- -o -Xr -o -Ur -o -Xs -o -O2 -o -n -o -Fu/home/andrew/programming/fpc-2.6.0/rtl -o -Fu/home/andrew/programming/fpc-2.6.0/packages/hash -o -Fu/home/andrew/programming/fpc-2.6.0/packages/paszlib -o -Fu/home/andrew/programming/fpc-2.6.0/packages/fcl-process -o -Fu/home/andrew/programming/fpc-2.6.0/packages/fpmkunit -o -FE. -o -FUunits/mipsel-linux -o -dmipsel -o -dRELEASE --compiler=/home/andrew/programming/fpc-2.6.0/compiler/ppcross An unhandled exception occurred at $0000000000423596 : EInstallerError : Invalid CPU name "mipsel" $0000000000423596 $000000000042BEC1 $000000000042B70C $000000000042E015 $000000000043BE2B $000000000043BE67 $0000000000400278 make[4]: *** [clean] Error 217 Anybody know which version of fpc supports mips the best?

If you progress beyond my effort described at
http://wiki.lazarus.freepascal.org/Native_MIPS_Systems please update the page accordingly.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Mark Morgan Lloyd
to Florian Klämpfl: trunk, however mips was never in a working state in svn.
Florian Klämpfl wrote
> Anybody know which version of fpc supports mips the best? trunk, however mips was never in a working state in svn.

The basic compiler works and some of the RTL compiles, but the tweaks necessary are highly tentative since I don't fully understand e.g. the subtleties of some of the CG defines and are only described at http://wiki.lazarus.freepascal.org/Native_MIPS_Systems since I've not asked anybody to commit the changes.

I've worked through some of the stuff but have stalled at the assembler reader, which forced me off onto an exercise of reading up on the MIPS ABI etc. whence I never really returned.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email