From: Daniel Borkmann <daniel@iogearbox.net>
To: Adrian Ratiu <adrian.ratiu@collabora.com>, netdev@vger.kernel.org
Cc: llvm@lists.linux.dev, kernel@collabora.com,
linux-kernel@vger.kernel.org,
Nick Desaulniers <ndesaulniers@google.com>,
Manoj Gupta <manojgupta@chromium.com>,
Nathan Chancellor <nathan@kernel.org>,
bpf@vger.kernel.org
Subject: Re: [PATCH bpf v2] tools: fix unavoidable GCC call in Clang builds
Date: Tue, 8 Mar 2022 18:17:44 +0100 [thread overview]
Message-ID: <6e82ffbb-ebc8-30e8-2326-95712578ee07@iogearbox.net> (raw)
In-Reply-To: <20220308121428.81735-1-adrian.ratiu@collabora.com>
On 3/8/22 1:14 PM, Adrian Ratiu wrote:
> In ChromeOS and Gentoo we catch any unwanted mixed Clang/LLVM
> and GCC/binutils usage via toolchain wrappers which fail builds.
> This has revealed that GCC is called unconditionally in Clang
> configured builds to populate GCC_TOOLCHAIN_DIR.
>
> Allow the user to override CLANG_CROSS_FLAGS to avoid the GCC
> call - in our case we set the var directly in the ebuild recipe.
>
> In theory Clang could be able to autodetect these settings so
> this logic could be removed entirely, but in practice as the
> commit cebdb7374577 ("tools: Help cross-building with clang")
> mentions, this does not always work, so giving distributions
> more control to specify their flags & sysroot is beneficial.
>
> Suggested-by: Manoj Gupta <manojgupta@chromium.com>
> Suggested-by: Nathan Chancellor <nathan@kernel.org>
> Acked-by: Nathan Chancellor <nathan@kernel.org>
> Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com>
> ---
> Changes in v2:
> * Replaced variable override GCC_TOOLCHAIN_DIR -> CLANG_CROSS_FLAGS
As I understand it from [0] and given we're late in the cycle, this is
targeted for bpf-next not bpf, right?
Thanks,
Daniel
[0] https://lore.kernel.org/lkml/87czjk4osi.fsf@ryzen9.i-did-not-set--mail-host-address--so-tickle-me/
next prev parent reply other threads:[~2022-03-08 17:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-08 12:14 Adrian Ratiu
2022-03-08 17:17 ` Daniel Borkmann [this message]
2022-03-08 22:14 ` Adrian Ratiu
2022-03-08 22:43 ` Daniel Borkmann
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=6e82ffbb-ebc8-30e8-2326-95712578ee07@iogearbox.net \
--to=daniel@iogearbox.net \
--cc=adrian.ratiu@collabora.com \
--cc=bpf@vger.kernel.org \
--cc=kernel@collabora.com \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=manojgupta@chromium.com \
--cc=nathan@kernel.org \
--cc=ndesaulniers@google.com \
--cc=netdev@vger.kernel.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
all inboxes | Powered by JetHome®