From: Maxime Devos <maximedevos@telenet.be>
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: Thu, 18 Aug 2022 10:14:27 +0200 [thread overview]
Message-ID: <6f27a1de-1308-dc63-09a1-665fb5ec4735@telenet.be> (raw)
In-Reply-To: <06836df5-5df9-ea3a-eae1-dd38088867f3@telenet.be>
[-- Attachment #1.1.1.1: Type: text/plain, Size: 2075 bytes --]
On 18-08-2022 10:11, Maxime Devos wrote:
>
>
> On 04-04-2022 21:37, Christopher Baines wrote:
>>> Maybe you could add a gcc compiling for 32-bit ppc (maybe without a
>>> glibc since this is grub) and patch the configuration script to use the
>>> 32-bit ppc gcc instead of using the 64-bit ppc+-m32?
>> I've had a go at this, using something like what I've included below,
>> but I haven't stumbled upon the right options yet, or a way to work out
>> why gcc still thinks "-m32 not supported". [...]
>
> I was thinking of skipping the multilib and maybe skipping support for
> multiple endians, something like:
>
>> (use-modules (guix utils) (guix packages) (guix gexp))
>> (define (ppc-32bit-gcc)
>> (if (%current-target-system)
>> (error "not supported -- TODO make a cross-compiler to 32-bit
>> ppc here with cross-gcc")
>> (package
>> (inherit (@ (gnu packages gcc) gcc))
>> (arguments
>> (substitute-keyword-arguments
>> (package-arguments (@ (gnu packages gcc) gcc))
>> ((#:system _) "ppc-linux")
>> ((#:configure-flags flags)
>> (pk 'f #~(append (list "--with-endian=big") #$flags))))))))
>> (ppc-32bit-gcc)
> (currently compiling, let's see if if it works ...)
The #:system doesn't work, trying
> (use-modules (guix utils) (guix packages) (guix gexp))
> (define (ppc-32bit-gcc)
> (if (%current-target-system)
> (error "not supported -- TODO make a cross-compiler to 32-bit
> ppc here with cross-gcc")
> (package
> (inherit (@ (gnu packages gcc) gcc))
> (arguments
> (substitute-keyword-arguments
> (cons* #:system "powerpc-linux" (package-arguments (@ (gnu
> packages gcc) gcc)))
> ((#:configure-flags flags)
> (pk 'f #~(append (list "--with-endian=big") #$flags))))))))
> (ppc-32bit-gcc)
instead.
[-- Attachment #1.1.1.2: Type: text/html, Size: 3239 bytes --]
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 929 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
next prev parent reply other threads:[~2022-08-18 8:17 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
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 [this message]
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=6f27a1de-1308-dc63-09a1-665fb5ec4735@telenet.be \
--to=maximedevos@telenet.be \
--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.