GNU bug report logs -
#54407
Issues building grub for powerpc64le, could not force big-endian
Previous Next
Full log
Message #17 received at 54407 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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 ...)
Greetings,
Maxime.
[Message part 2 (text/html, inline)]
[OpenPGP_0x49E3EE22191725EE.asc (application/pgp-keys, attachment)]
[OpenPGP_signature (application/pgp-signature, attachment)]
This bug report was last modified 2 years and 302 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.