From: Danny Milosavljevic <dannym@scratchpost.org>
To: Christopher Baines <mail@cbaines.net>
Cc: 54407@debbugs.gnu.org
Subject: bug#54407: Issues building grub for powerpc64le, could not force big-endian
Date: Wed, 30 Mar 2022 19:41:13 +0200 [thread overview]
Message-ID: <20220330194113.6a8c5a3b@scratchpost.org> (raw)
In-Reply-To: <87pmmm6hfj.fsf@cbaines.net>
[-- Attachment #1: Type: text/plain, Size: 1447 bytes --]
Hi,
On Tue, 15 Mar 2022 21:11:37 +0000
Christopher Baines <mail@cbaines.net> wrote:
> grub can't be built for powerpc64le, I believe the same failure occurs
> with native builds or cross compilation from x86_64. I think this might
> have always been the case.
>
> This is the error from the build log:
>
> checking for options to get big-endian compilation... no
> configure: error: could not force big-endian
>
> Looking in the config.log file, it tries a bunch of options with
> different errors, but this one stands out:
>
> cc1: error: '-m32' not supported in this configuration
>
> I know very little about gcc, but I think this might relate to the
> multilib thing, which I'm guessing is disabled for the gcc in use here.
-m32 is to compile 32 bit object files with a compiler that usually compiles 64 bit objects.
If you want to use any libraries, then those have to be available as a 32 bit version somewhere.
The Guix gcc package recipe disables this (and I think that was the right call to make).
There are not a lot of use cases for using "-m32" anyway since on x86_64 the generated instructions are already just as compact as the x86 (32 bit) ones if the immediate operand is not too big.
Not sure what the configure script is doing there.
But there are a few programs that need 32 bit compilers--BIOS-based bootloaders are one of them (since they start up in ancient 8088 real mode).
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2022-03-30 17:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-15 21:11 bug#54407: Issues building grub for powerpc64le, could not force big-endian Christopher Baines
2022-03-30 17:41 ` Danny Milosavljevic [this message]
2022-03-30 17:46 ` Maxime Devos
2022-04-04 19:37 ` Christopher Baines
2022-08-18 8:11 ` Maxime Devos
2022-08-18 8:14 ` Maxime Devos
2022-08-18 8:33 ` Maxime Devos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220330194113.6a8c5a3b@scratchpost.org \
--to=dannym@scratchpost.org \
--cc=54407@debbugs.gnu.org \
--cc=mail@cbaines.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.