From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: guix-devel@gnu.org
Subject: Re: Desktops on non-x86_64 systems
Date: Sat, 27 Nov 2021 22:28:51 -0500 [thread overview]
Message-ID: <87lf196jrg.fsf@gmail.com> (raw)
In-Reply-To: <87pmql6kug.fsf@gmail.com> (Maxim Cournoyer's message of "Sat, 27 Nov 2021 22:05:27 -0500")
Hello again,
Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:
[...]
>> There is also the unpleasant option to introduce a rust binary for
>> architectures other than x86_64, because we can’t bootstrap it
>> there. It should be noted that this would not be unprecedented. We
>> have bootstrap binaries for some compilers such as Free Pascal or GHC.
>>
>> Adding an old version of librsvg is not obviously the better option.
>
> I agree with Ricardo here. We've tried hard to get Rust bootstrapped,
> but that is only viable for x86_64 so far. When bootstrapping is not
> possible, there is already a precedent of using bootstrap binaries as
> Ricardo pointed out. So it seems that Rust falls into this category for
> now.
>
> It'd be much easier in my opinion to do so than trying to get GNOME to
> build an obsolete versions that it will reject without us going at
> length with it (not to mention the security vulnerabilities that'd need
> to be patched by our own). With mrustc and gcc-rust improving quickly,
> hopefully that'd be a temporary solution.
I'd like to revise my position, as I got confirmation that it ought to
be possible to cross-build rustc for other architectures from our
(cleanly bootstrapped) x86_64 rustc!
Here's a transcript of my question on #mrustc (libera.chat):
--8<---------------cut here---------------start------------->8---
00:36:38 apteryx | hello! Can rustc cross-compile itself and its stdlib for another architecture?
00:37:13 apteryx | in other words; is it possible to have a clean bootstrapped rust (via mrustc) on all architectures although mrustc currently only support x86_64?
02:27:53 Mutabah | yes
04:28:27 clemens3 | fyi: http://techinvest.li/tinux/#rustc
04:28:38 clemens3 | which uses and bundles mrustc
04:29:05 clemens3 | happy to now upstream my little changes, mostly based on the Test.. build.sh and readme.txt..
--8<---------------cut here---------------end--------------->8---
I haven't yet done any reading, but if Mutabah (the author of mrustc)
says it's possible, I believe it!
Cheers,
Maxim
next prev parent reply other threads:[~2021-11-28 3:29 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-27 22:36 Desktops on non-x86_64 systems Ludovic Courtès
2021-11-27 22:43 ` Ricardo Wurmus
2021-11-28 3:05 ` Maxim Cournoyer
2021-11-28 3:28 ` Maxim Cournoyer [this message]
2021-11-28 3:43 ` John Soo
2021-11-28 7:29 ` Tobias Platen
2021-11-28 8:57 ` Ricardo Wurmus
2021-11-28 17:49 ` Ludovic Courtès
2021-11-28 18:15 ` Ricardo Wurmus
2021-11-30 15:36 ` Maxim Cournoyer
2021-12-06 12:38 ` Ludovic Courtès
2021-12-01 4:56 ` Maxim Cournoyer
2021-12-01 17:49 ` Ludovic Courtès
2021-12-01 19:37 ` Maxim Cournoyer
2021-12-02 3:26 ` Maxim Cournoyer
2021-12-06 2:18 ` Maxim Cournoyer
2021-12-06 12:30 ` Ludovic Courtès
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lf196jrg.fsf@gmail.com \
--to=maxim.cournoyer@gmail.com \
--cc=guix-devel@gnu.org \
--cc=rekado@elephly.net \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).