[Buildroot] Building for Raspberry Pi on Pi (in Ubuntu WSL same is working)
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Tue Aug 25 08:17:09 UTC 2020
Hello,
On Tue, 25 Aug 2020 07:56:18 +0000
Marie Maurer <marie.maurer at pixida.de> wrote:
> Perhaps this parameter:
>
> --with-arch=armv6
Yes, the problem is that the compiler provided in your Raspbian
distribution generates ARMv6 code by default, I guess to be compatible
with all RaspberryPi. But you're running on an ARMv7 RaspberryPi, so
GMP believes it can enable some ARMv6T2 optimizations... which are then
not recognized by your compiler.
I am not sure what is the correct way to fix this:
- Should we consider it a bug that the host compiler you have
installed does not by default generate binaries that match your host
CPU architecture ?
- Should we consider it a bug that GMP assumes without testing the
compiler that the host CPU architecture detected at runtime is
really supported by the compiler ?
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
More information about the buildroot
mailing list