Sign in Join

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

Mailing lists / fpc-devel / 2016-03

Bootstrapping aarch64

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Alfred

After a successful install (with fpclazup) of FPC/Lazarus 64bit on an Odroid-C2 running Arch Linux 64 bit, I have a few questions.

The initial (bootstrap) compiler was build by cross-compiling (trunk) from Win32 to Aarch64.
Only trunk supports aarch64.

So, bootstrap version is 3.1.1. But trunk may only be build by 3.0.0.

Questions/remarks:

1: As maintainer of fpc(laz)up, I am in need of a public available bootstrap compiler for aarch64.
2: The version check should be suppressed for aarch64 (atm fpc[laz]up does suppress the check by itself).
3: Some makefiles of Lazarus where not (yet) able to compile for aarch64 (as I remember correctly: main and lcl/interfaces had no aarch64-linux target).

Thanks.

Reply by email

Sven Barth
to Alfred
"Alfred" wrote
After a successful install (with fpclazup) of FPC/Lazarus 64bit on an

Odroid-C2 running Arch Linux 64 bit, I have a few questions.

The initial (bootstrap) compiler was build by cross-compiling (trunk)

from Win32 to Aarch64.

Show quoted text 7 lines
Only trunk supports aarch64. So, bootstrap version is 3.1.1. But trunk may only be build by 3.0.0. Questions/remarks: 1: As maintainer of fpc(laz)up, I am in need of a public available

bootstrap compiler for aarch64.

2: The version check should be suppressed for aarch64 (atm fpc[laz]up

does suppress the check by itself).

Starting trunk's top-level make with the correct options (crossall, CPU_TARGET, CROSSOPT fot the target flags, etc) and a 3.0.0 should already result in a native compiler for Aarch64-linux, as the Makefile already does what you described here (compiling a cross compiler first and then a native compiler). At the end there should be a ppcrossaarch64.exe and a ppcaarch64 (no .exe!) [Note: I don't know whether the compiler suffix is really aarch64, as I've never worked with it yet].

There won't be any bootstrap compiler however until the next major version containing the new platform is released as trunk is a moving target (it can happen from one revision to the next that trunk can no longer be compiled by the previous revision).

3: Some makefiles of Lazarus where not (yet) able to compile for aarch64

(as I remember correctly: main and lcl/interfaces had no aarch64-linux target).

You should raise this issue either on the Lazarus mailing list or the bug tracker.

Regards,
Sven

Reply by email

Alfred
to Sven Barth

1: ok; I will put a bootstrapper for aarch64 on fpcup github, for as long as needed.
2a: you're right, there is a nice ppca64 (no exe) available ! 2b: you talk about 3.0.0; I was not able to compile 3.0.0 for aarch64-linux; am I mistaken ?
3: I will do so.

Reply by email