On Sat, 12 Sep 2020 01:54:20 +0200, Tomas Hajny via fpc-pascal <fpc-pascal@lists.freepascal.org> wrote:
>> 3) Does the following command overwrite existing files from an earlier >> attempt so the CPU target can be replaced? >> For ARMv7: >> make install OPT="-dFPC_ARMHF" PREFIX=/home/pi >> FPC="/home/pi/dev/ppcarm" >> For ARMv6: >> make install OPT="-dFPC_ARMHF -CpARMV6 -OpARMV6" PREFIX=/home/pi >> FPC="/home/pi/dev/ppcarm" > >If you perform 'make all' before running 'make install', then you >probably don't need the OPT=... parameter for 'make install'. > > >> Hopefully >> >> make clean >> make all >> make install >> >> with the proper options will do the trick.... >> TIA.. > >They should. > Thanks, it is reassuring! Regarding the install I only specify the home dir as the target (PREFIX) and make install creates subdirs below that where it stuffs files. If I knew the locations affected I could just rm -r them before running make install. But I don't, so this is why I ask. I did not mention why I need to go from ARMv7 to ARMv6, but it is because I found that binaries generated by my ARMv7 installation will not run on all Raspberries. On RPiZero I get an instant exception, whereas if it was compiled on the RPiZero itself ir runs fine. On the Zero I installed using the v6 switch because that device is an ARMv6. And that binary runs on *all* RPi I have tested on. That is why I want my main RPi dev box to be converted to use ARMv6 instruction set. Final question: Lazarus is built (and rebuilt numerous times) using the ARMv7 compiler. Do I need to rebuild Lazarus (and all the installed packages) too if I switch to a different fpc compiler? -- Bo Berglund Developer in Sweden _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal