[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAKwvOdnP=FTzhm1S-_ZyQaF+LGYkF1DWUekRzvEmxAr=u=FTCQ@mail.gmail.com>
Date: Thu, 13 Oct 2022 14:03:30 -0700
From: Nick Desaulniers <ndesaulniers@...gle.com>
To: Florian Weimer <fweimer@...hat.com>
Cc: "Jason A. Donenfeld" <Jason@...c4.com>,
Mark Brown <broonie@...nel.org>,
linux-toolchains@...r.kernel.org,
Linux Kbuild mailing list <linux-kbuild@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: gcc 5 & 6 & others already out of date?
On Thu, Oct 13, 2022 at 11:44 AM Florian Weimer <fweimer@...hat.com> 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
Powered by blists - more mailing lists