From: "Arnd Bergmann" <arnd@arndb.de>
To: "Nathan Chancellor" <nathan@kernel.org>
Cc: "Jason A . Donenfeld" <Jason@zx2c4.com>, linux-kernel@vger.kernel.org
Subject: Re: odd endianness toolchains for crosstool
Date: Tue, 03 Sep 2024 06:59:49 +0000 [thread overview]
Message-ID: <2582a7d1-11bd-4952-a2e2-ab3f6b816f0c@app.fastmail.com> (raw)
In-Reply-To: <20240903012354.GA422360@thelio-3990X>
On Tue, Sep 3, 2024, at 01:23, Nathan Chancellor wrote:
> On Thu, Aug 29, 2024 at 10:25:32PM +0200, Arnd Bergmann wrote:
>> On Thu, Aug 29, 2024, at 17:51, Jason A. Donenfeld wrote:
>>
>> I wonder if the ones you list as missing all work with Nathan's clang
>> builds from https://mirrors.edge.kernel.org/pub/tools/llvm/ instead.
>>
>> As far as I can tell, the main missing bit here is libgcc, which
>> is not always built along with gcc for all possible targets.
>> The llvm replacement for libgcc is https://compiler-rt.llvm.org/,
>> and you may have to build that in addition to musl when you try it.
>>
>> I don't know if compiler-rt also works with gcc, but if it does,
>> that should fix most of the ones that you report as failing above.
>> The only one that won't work at all is um because the x86 toolchain
>> is already unable to build a kernel for that.
>
> I doubt my toolchains would fix this issue. As far as I am aware, only
> the native compiler runtime is included, not any of the cross ones, as
> the kernel itself does not use them. However, I suspect it would not be
> too difficult to cross build compiler-rt standalone and stitch it into
> my builds separately if desired.
Right, that's what I meant: building compiler-rt for all the
supported targets on clang should not be that hard, it would be
just another step on top of building musl. Doing the same for
gcc may be a different story as libgcc is not usually built as
a standalone library and compiler-rt may require building with
clang rather than gcc.
> FWIW, I have used your toolchains to build UML but maybe that is
> environment dependent?
Did you do that on x86? I only tried on arm64, where it is built
as a nolibc toolchain. Cross-building native x86 toolchains on arm64
is always tricky and I had expected that this would also be
a nolibc version, but it's possible that I accidentally built it
against the x86 glibc as well.
Arnd
prev parent reply other threads:[~2024-09-03 8:06 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-25 1:39 Jason A. Donenfeld
2022-04-25 8:46 ` Arnd Bergmann
2022-04-25 11:43 ` Jason A. Donenfeld
2022-04-25 14:55 ` Arnd Bergmann
2022-04-25 15:20 ` Jason A. Donenfeld
2022-04-25 15:39 ` Arnd Bergmann
2022-04-25 15:53 ` Jason A. Donenfeld
2022-04-25 16:15 ` Arnd Bergmann
2022-04-25 17:01 ` Jason A. Donenfeld
2022-04-25 17:20 ` Jason A. Donenfeld
2022-04-25 17:40 ` Arnd Bergmann
2022-04-25 17:42 ` Jason A. Donenfeld
2022-04-28 6:43 ` Rob Landley
2024-08-29 15:51 ` Jason A. Donenfeld
2024-08-29 20:25 ` Arnd Bergmann
2024-09-03 1:23 ` Nathan Chancellor
2024-09-03 6:59 ` Arnd Bergmann [this message]
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=2582a7d1-11bd-4952-a2e2-ab3f6b816f0c@app.fastmail.com \
--to=arnd@arndb.de \
--cc=Jason@zx2c4.com \
--cc=linux-kernel@vger.kernel.org \
--cc=nathan@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®