From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Yegor Yefremov <yegorslists@googlemail.com>
Cc: buildroot@buildroot.org, Pascal de Bruijn <p.debruijn@unilogic.nl>
Subject: Re: [Buildroot] [PATCH] package/linux-tools: hv: fix build on non-x86 build hosts
Date: Wed, 4 Nov 2026 22:07:44 +0100 [thread overview]
Message-ID: <auuenDMCrUePDXj7@windsurf> (raw)
In-Reply-To: <20261104082735.4134892-1-yegorslists@googlemail.com>
On Wed, Nov 04, 2026 at 09:27:35AM +0100, Yegor Yefremov wrote:
> Since Linux 5.4, commit 9b5434196529 ("Tools: hv: move to tools
> buildsystem"), the Hyper-V daemons are built with tools/build, which
> first links the objects with "$(LD) -r". We only pass CC to the hv
> build, so LD defaults to $(CROSS_COMPILE)ld, i.e. the build host's
> plain ld. That only works by chance on x86 build hosts, whose ld
> handles i386/x86_64 objects; on an aarch64 build host it fails:
>
> LD hv_kvp_daemon-in.o
> /usr/bin/ld.bfd: relocatable linking with relocations from format elf32-i386 (hv_kvp_daemon.o) to format elf64-littleaarch64 (hv_kvp_daemon-in.o) is not supported
>
> Pass LD="$(TARGET_LD)", as already done for rtla.
>
> This issue has been present since commit 2703383c7201 ("package/linux-tools:
> add hyperv integration services"), which added the hv tools while the
> supported kernels already used tools/build for them, without passing
> LD. It therefore affects 2020.02 and later, including 2025.02.x.
>
> Fixes:
> https://autobuild.buildroot.org/results/86c33797a5f09dbb1162a554cb6019f7c0702fbd
>
> Fixes: 2703383c72011d38a1e3559cb7a5a2b0071b35c6 ("package/linux-tools: add hyperv integration services")
> Assisted-by: Claude:claude-opus-5-5
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Applied to master, thanks!
Best regards,
Thomas Petazzoni
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2026-11-04 21:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-04 8:27 [Buildroot] [PATCH] package/linux-tools: hv: fix build on non-x86 build hosts Yegor Yefremov
2026-11-04 21:07 ` Thomas Petazzoni via buildroot [this message]
2026-11-04 21:12 ` Thomas Petazzoni via buildroot
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=auuenDMCrUePDXj7@windsurf \
--to=buildroot@buildroot.org \
--cc=p.debruijn@unilogic.nl \
--cc=thomas.petazzoni@bootlin.com \
--cc=yegorslists@googlemail.com \
/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