[fpc-pascal] How to build for arm6 in RaspberryPi on arm7?
Bo Berglund
bo.berglund at gmail.com
Wed Sep 9 00:03:29 CEST 2020
On Tue, 8 Sep 2020 20:09:53 +0200, Jonas Maebe via fpc-pascal
<fpc-pascal at lists.freepascal.org> wrote:
>On 08/09/2020 16:13, Bo Berglund via fpc-pascal wrote:
>> This happened also after I ran a Run/CleanUpAndBuild operation, so
>> clearly there is something I am missing here.
>
>Is your FPC installation itself also built for ARMv6? (rtl and packages)
>
No, it is on an RPi4 so it is ArmV7.
I hoped the compiler could be set to use one instruction set or the
other depending on this project setting.
I could presumably build another FPC 3.0.4 using the ArmV6 setting
even though I am on an Armv7 system, right?
But the result has to go somewhere else. Or replace the previous one.
When doing a make install where would 3.0.4V6 go then?
And what about the ~/.fpc,cfg where all of the settings for fpc are
stored, can it be the same for both v6 and v7 compilers?
And finally, how to set Lazarus to use the v6 compiler rather than the
v7?
Or maybe I have to compile fpc for V6 even though I am on V7 and
thereafter only build ArmV6 compatible applications?
Probably also Lazarus itself needs to be recompiled to V6 because
unless that is done there will be problems when it recompiles itself
after package installations...
Especially if FPC has been replaced by a V6 version.
--
Bo Berglund
Developer in Sweden
More information about the fpc-pascal
mailing list