Sign in Join

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

Mailing lists / fpc-devel / 2008-03

m68k crosscompiler

7 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Martin Schreiber

Hi,
I try to build a m68k crosscompiler with fixes_2_2: "
[...]
/home/mse/packs/standard/svn/fp/fixes_2_2/compiler/ppc -Ur -Xs -O2 -n -Fum68k -Fusystems -Fu/home/mse/packs/standard/svn/fp/fixes_2_2/rtl/units/i386-linux -Fim68k -FE. -FUm68k/units/i386-linux -dRELEASE -dm68k -dGDB -dBROWSERLOG -dNOOPT pp.pas
n68kmat.pas(282,52) Error: Illegal qualifier
n68kmat.pas(343,47) Error: Illegal qualifier
n68kmat.pas(344,105) Error: Illegal qualifier
n68kmat.pas(362) Fatal: There were 3 errors compiling module, stopping Fatal: Compilation aborted
make[3]: *** [ppcross68k] Error 1
make[3]: Leaving directory
`/home/mse/packs/standard/svn/fp/fixes_2_2/compiler' make[2]: *** [cycle] Error 2
make[2]: Leaving directory
`/home/mse/packs/standard/svn/fp/fixes_2_2/compiler' make[1]: *** [compiler_cycle] Error 2
make[1]: Leaving directory `/home/mse/packs/standard/svn/fp/fixes_2_2' make: *** [build-stamp.m68k-linux] Error 2
"
n68kmat.pas:282:
"
{$WARNING FIX ME!!! shlshrnode needs review}

    procedure tm68kshlshrnode.pass_generate_code;

[...]

            shiftval := tordconstnode(right).value.svalue; <<<<<<---------

"

Any hints?

Thanks, Martin

Reply by email

Jonas Maebe
to Martin Schreiber
Martin Schreiber wrote
I try to build a m68k crosscompiler with fixes_2_2:

m68k is not supported in 2.x at this time. The last version that supported m68k was 1.0.10a. Every now and then, some people work on m68k in the 2.3.x branch, but even there it is not usable.

Jonas

Reply by email

Martin Schreiber
to Jonas Maebe: m68k is not supported in 2.x at this time. The last version that supported m68k was…
Jonas Maebe wrote 7 lines
On 13 Mar 2008, at 13:24, Martin Schreiber wrote: > I try to build a m68k crosscompiler with fixes_2_2: m68k is not supported in 2.x at this time. The last version that supported m68k was 1.0.10a. Every now and then, some people work on m68k in the 2.3.x branch, but even there it is not usable.

Thanks, I'll try how far I get with trunk.

Martin

Reply by email

Martin Schreiber
to Martin Schreiber
Martin Schreiber wrote 10 lines
On Thursday 13 March 2008 13.48:55 Jonas Maebe wrote: > On 13 Mar 2008, at 13:24, Martin Schreiber wrote: > > I try to build a m68k crosscompiler with fixes_2_2: > > m68k is not supported in 2.x at this time. The last version that > supported m68k was 1.0.10a. Every now and then, some people work on > m68k in the 2.3.x branch, but even there it is not usable. Thanks, I'll try how far I get with trunk.

With trunk I get:
"
/home/mse/packs/standard/svn/fp/trunk/compiler/ppcross68k -Ur -Pm68k -Ur -Xs -O2 -n -Fi../inc -Fi../m68k -Fi../unix -Fim68k -FD/opt/cross/m68k/bin -FE. -FU/home/mse/packs/standard/svn/fp/trunk/rtl/units/m68k-linux -dm68k -dRELEASE -Us -Sg system.pp
softfpu.pp(592,1) Fatal: Internal error 200309041
Fatal: Compilation aborted
make[5]: *** [system.ppu] Error 1
make[5]: Leaving directory `/home/mse/packs/standard/svn/fp/trunk/rtl/linux' make[4]: *** [linux_all] Error 2
make[4]: Leaving directory `/home/mse/packs/standard/svn/fp/trunk/rtl' make[3]: *** [rtl] Error 2
make[3]: Leaving directory `/home/mse/packs/standard/svn/fp/trunk/compiler' make[2]: *** [cycle] Error 2
make[2]: Leaving directory `/home/mse/packs/standard/svn/fp/trunk/compiler' make[1]: *** [compiler_cycle] Error 2
make[1]: Leaving directory `/home/mse/packs/standard/svn/fp/trunk' make: *** [build-stamp.m68k-linux] Error 2
"
Seems to be nothing m68k specific?

The command line:
"
make all CPU_TARGET=m68k CROSSCOMPILE=1 FPC=ppc386 CROSSBINDIR=/opt/cross/m68k/bin
"
Martin

Reply by email

Jonas Maebe
to Martin Schreiber
Martin Schreiber wrote 25 lines
With trunk I get: " /home/mse/packs/standard/svn/fp/trunk/compiler/ppcross68k -Ur -Pm68k -Ur -Xs -O2 -n -Fi../inc -Fi../m68k -Fi../unix -Fim68k -FD/opt/cross/ m68k/bin -FE. -FU/home/mse/packs/standard/svn/fp/trunk/rtl/units/ m68k-linux -dm68k -dRELEASE -Us -Sg system.pp softfpu.pp(592,1) Fatal: Internal error 200309041 Fatal: Compilation aborted make[5]: *** [system.ppu] Error 1 make[5]: Leaving directory `/home/mse/packs/standard/svn/fp/trunk/ rtl/linux' make[4]: *** [linux_all] Error 2 make[4]: Leaving directory `/home/mse/packs/standard/svn/fp/trunk/rtl' make[3]: *** [rtl] Error 2 make[3]: Leaving directory `/home/mse/packs/standard/svn/fp/trunk/ compiler' make[2]: *** [cycle] Error 2 make[2]: Leaving directory `/home/mse/packs/standard/svn/fp/trunk/ compiler' make[1]: *** [compiler_cycle] Error 2 make[1]: Leaving directory `/home/mse/packs/standard/svn/fp/trunk' make: *** [build-stamp.m68k-linux] Error 2 " Seems to be nothing m68k specific?

It probably means that invalid register allocation information is generated by the m68k code generator. As said: m68k is simply not supported at this time. Even if it would compile you'd get a lot of invalid code because it hasn't been tested nor kept up to date for several years.

Jonas

Reply by email

Martin Schreiber
to Jonas Maebe
Jonas Maebe wrote 9 lines
> Seems to be nothing m68k specific? It probably means that invalid register allocation information is generated by the m68k code generator. As said: m68k is simply not supported at this time. Even if it would compile you'd get a lot of invalid code because it hasn't been tested nor kept up to date for several years.

It compiles with -O-. spill_registers does not terminate while compiling rtl/linux/system.pp. I have no chance to fix it my self because I know nothing about register allocation. :-(

Martin

Reply by email