Re: gcc 5 & 6 & others already out of date?

From: Nick Desaulniers
Date: Thu Oct 13 2022 - 17:03:54 EST


On Thu, Oct 13, 2022 at 11:44 AM Florian Weimer <fweimer@xxxxxxxxxx> wrote:
>
> * Jason A. Donenfeld:
>
> > It's also easy, nearly trivial, to download toolchains. Arnd provides a
> > bunch with his crosstool. "Must use a toolchain from your distro" is a
> > requirement that affects nobody.
>
> But not everything will be built with the cross-compiler. For the
> kernel build tools and other userspace components, you'll need a native
> toolchain that can build programs that can actually run on the build
> host.

... when using GCC. We don't have this pain when using clang.

https://docs.kernel.org/kbuild/llvm.html#llvm-utilities

i.e.
$ make ARCH=arm LLVM=1

will build with one instance of a clang binary (and ld.lld and
llvm-objcopy etc.) for Target AND Host. No need for multiple
toolchain binaries.
--
Thanks,
~Nick Desaulniers