Sign in Join

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

Mailing lists / fpc-devel / 2013-08

Cross-compile compiler itself

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Joost van der Sluis

Hi all,

How can I cross-compile the compiler itself? I tried it by:

make clean all CPU_TARGET=arm

Then:
make all CPU_TARGET=arm PP=ppcrossarm

But that one failes, because the first step it does is compiling the rtl for the host platform (x86_64). Which fails when ppcrossarm is used for that...

There has to be a way, but how?

Joost.

Reply by email

Jonas Maebe
to Joost van der Sluis
Joost van der Sluis wrote 12 lines
How can I cross-compile the compiler itself? I tried it by: make clean all CPU_TARGET=arm Then: make all CPU_TARGET=arm PP=ppcrossarm But that one failes, because the first step it does is compiling the rtl for the host platform (x86_64). Which fails when ppcrossarm is used for that... There has to be a way, but how?

After the first command, there is already a cross-compiled compiler in the compiler subdirectory (called ppcarm).

Jonas

Reply by email

Joost van der Sluis
to Jonas Maebe
Jonas Maebe wrote 18 lines
On 08 Aug 2013, at 12:51, Joost van der Sluis wrote: > How can I cross-compile the compiler itself? I tried it by: > > make clean all CPU_TARGET=arm > > Then: > make all CPU_TARGET=arm PP=ppcrossarm > > But that one failes, because the first step it does is compiling the > rtl for the host platform (x86_64). Which fails when ppcrossarm is > used for that... > > There has to be a way, but how? After the first command, there is already a cross-compiled compiler in the compiler subdirectory (called ppcarm).

Ohh.. so easy...

Thanks.

Joost.

Reply by email