From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Tue, 25 Aug 2020 10:17:09 +0200 Subject: [Buildroot] Building for Raspberry Pi on Pi (in Ubuntu WSL same is working) In-Reply-To: References: <20200824221903.167aeb55@windsurf.home> <20200825093345.50f51945@windsurf.home> <20200825094942.3c865b79@windsurf.home> Message-ID: <20200825101709.770f2520@windsurf.home> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hello, On Tue, 25 Aug 2020 07:56:18 +0000 Marie Maurer 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