public inbox for linuxppc-dev@ozlabs.org
 help / color / mirror / Atom feed
From: "Christophe Leroy (CS GROUP)" <chleroy@kernel.org>
To: Link Mauve <linkmauve@linkmauve.fr>, linuxppc-dev@lists.ozlabs.org
Subject: Re: Failure to build with LLVM for the Wii
Date: Thu, 29 Jan 2026 12:11:12 +0100	[thread overview]
Message-ID: <e23c7d00-2938-442e-9b23-1f730794e3f7@kernel.org> (raw)
In-Reply-To: <aXs8sgAcci9FKKpx@luna>



Le 29/01/2026 à 11:55, Link Mauve a écrit :
> [Vous ne recevez pas souvent de courriers de linkmauve@linkmauve.fr. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ]
> 
> Hi,
> 
> I’m trying to build the kernel for the Nintendo Wii, using LLVM instead
> of gcc, in order to bring Rust support to this architecture (and also
> because my distribution doesn’t ship a cross-compiling gcc), but I get
> this build issue near the end:
> ```
> % make O=wii LLVM=1 ARCH=powerpc -j1
> make[1]: Entering directory '/home/linkmauve/dev/linux/wii'
>    GEN     Makefile
>    CALL    ../scripts/checksyscalls.sh
>    DESCEND objtool
>    INSTALL libsubcmd_headers
>    WRAP    arch/powerpc/boot/dtbImage.wii
> objcopy: Unable to recognise the format of the input file `vmlinux'
> make[3]: *** [../arch/powerpc/boot/Makefile:394: arch/powerpc/boot/dtbImage.wii] Error 1
> make[2]: *** [../arch/powerpc/Makefile:236: zImage] Error 2
> make[1]: *** [/home/linkmauve/dev/linux/Makefile:248: __sub-make] Error 2
> make[1]: Leaving directory '/home/linkmauve/dev/linux/wii'
> make: *** [Makefile:248: __sub-make] Error 2
> ```
> 
> I believe it should use $(OBJCOPY) instead of objcopy, which is set to
> llvm-objcopy, but couldn’t figure out where it is misconfigured.

Must be here I guess:

arch/powerpc/boot/wrapper:${CROSS}objcopy $objflags "$kernel" "$vmz.$$"
arch/powerpc/boot/wrapper:    ${CROSS}objcopy $4 $1 \
arch/powerpc/boot/wrapper:    ${CROSS}objcopy -O binary "$ofile".elf 
"$ofile"
arch/powerpc/boot/wrapper:    ${CROSS}objcopy -O aixcoff-rs6000 
--set-start "$entry" "$ofile"
arch/powerpc/boot/wrapper:    ${CROSS}objcopy -O binary "$ofile" 
"$ofile.bin"



  reply	other threads:[~2026-01-29 11:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-29 10:55 Failure to build with LLVM for the Wii Link Mauve
2026-01-29 11:11 ` Christophe Leroy (CS GROUP) [this message]
2026-01-29 22:31 ` Nathan Chancellor
2026-02-24 23:30   ` Aelin
2026-02-25 21:35     ` Nathan Chancellor
2026-01-30 15:53 ` Segher Boessenkool

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=e23c7d00-2938-442e-9b23-1f730794e3f7@kernel.org \
    --to=chleroy@kernel.org \
    --cc=linkmauve@linkmauve.fr \
    --cc=linuxppc-dev@lists.ozlabs.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox