[Buildroot] Compiling gcc for the target?
Max Filippov
jcmvbkbc at gmail.com
Sun Jan 28 05:16:26 UTC 2018
Hi Stuart,
On Sat, Jan 27, 2018 at 8:45 PM, Stuart Longland
<stuartl at longlandclan.id.au> wrote:
> In short though, I actually need a root FS with a compiler so that I can
> build software within that environment. It's a requirement of Gentoo's
> release engineering tool, catalyst.
>
> Basically, I've managed to cross *everything else* I need, except gcc.
> gcc needs gcc to bulid gcc. Specifically, gcc needs g++… which is even
> worse.
>
>> There used to be support for target toolchain, but this support has been
>> removed long ago. See the FAQ at
>>
>> https://buildroot.org/downloads/manual/manual.html#faq-no-compiler-on-target
>
> Thats, unfortunate. I can understand its an atypical use case for
> buildroot and sadly, building gcc seems to be far more difficult than it
> ought to be.
You could build both cross- and cross-native toolchains with crosstool-NG
and then use cross-toolchain as an external toolchain for the buildroot. I did
that for xtensa target architecture.
--
Thanks.
-- Max
More information about the buildroot
mailing list