unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Rust bootstraps via i686?
@ 2017-12-04 19:56 Adam Van Ymeren
  2017-12-05 10:36 ` Efraim Flashner
  2017-12-06  8:40 ` Danny Milosavljevic
  0 siblings, 2 replies; 4+ messages in thread
From: Adam Van Ymeren @ 2017-12-04 19:56 UTC (permalink / raw)
  To: guix-devel

Does anyone know why rust bootstraps itself from the i686 version of the
binaries even if you're running on x86_64?

This results in having to download a build a lot of packages to build
rust on x86_64.

If I can make it bootstrap though the current system in use would that
be a useful patch or is there some problem with bootstraping from x86_64
that I'm unaware of?

Thanks!
-Adam

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Rust bootstraps via i686?
  2017-12-04 19:56 Rust bootstraps via i686? Adam Van Ymeren
@ 2017-12-05 10:36 ` Efraim Flashner
  2017-12-05 13:11   ` ng0
  2017-12-06  8:40 ` Danny Milosavljevic
  1 sibling, 1 reply; 4+ messages in thread
From: Efraim Flashner @ 2017-12-05 10:36 UTC (permalink / raw)
  To: Adam Van Ymeren; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 1009 bytes --]

On Mon, Dec 04, 2017 at 02:56:39PM -0500, Adam Van Ymeren wrote:
> Does anyone know why rust bootstraps itself from the i686 version of the
> binaries even if you're running on x86_64?
> 
> This results in having to download a build a lot of packages to build
> rust on x86_64.
> 
> If I can make it bootstrap though the current system in use would that
> be a useful patch or is there some problem with bootstraping from x86_64
> that I'm unaware of?
> 
> Thanks!
> -Adam
> 

I believe the reason is to decrease the number of language-specific
bootstrap binaries. Since the i686 bootstrap rust is capable of building
for i686 and for x86_64, it means one less binary.

On the other hand, this does nothing for the other architectures which
can't execute i686 code natively.

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Rust bootstraps via i686?
  2017-12-05 10:36 ` Efraim Flashner
@ 2017-12-05 13:11   ` ng0
  0 siblings, 0 replies; 4+ messages in thread
From: ng0 @ 2017-12-05 13:11 UTC (permalink / raw)
  To: Efraim Flashner; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 1586 bytes --]

Efraim Flashner transcribed 2.1K bytes:
> On Mon, Dec 04, 2017 at 02:56:39PM -0500, Adam Van Ymeren wrote:
> > Does anyone know why rust bootstraps itself from the i686 version of the
> > binaries even if you're running on x86_64?
> > 
> > This results in having to download a build a lot of packages to build
> > rust on x86_64.
> > 
> > If I can make it bootstrap though the current system in use would that
> > be a useful patch or is there some problem with bootstraping from x86_64
> > that I'm unaware of?
> > 
> > Thanks!
> > -Adam
> > 
> 
> I believe the reason is to decrease the number of language-specific
> bootstrap binaries. Since the i686 bootstrap rust is capable of building
> for i686 and for x86_64, it means one less binary.
> 
> On the other hand, this does nothing for the other architectures which
> can't execute i686 code natively.

I think when we've added rustc, rust did not support as many architectures
as it does now.
There's now an aarch64 and powerpc download in addition to i686+x86_64,
and mipsel, in many flavors.

As long as mrustc to bootstrap rustc is not working without rustc, we
will get problems for example for aarch64 with the i686 bootstrap binary,
right?

> 
> -- 
> Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
> GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
> Confidentiality cannot be guaranteed on emails sent or received unencrypted



-- 
GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588
GnuPG: https://c.n0.is/ng0_pubkeys/tree/keys
  WWW: https://n0.is

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Rust bootstraps via i686?
  2017-12-04 19:56 Rust bootstraps via i686? Adam Van Ymeren
  2017-12-05 10:36 ` Efraim Flashner
@ 2017-12-06  8:40 ` Danny Milosavljevic
  1 sibling, 0 replies; 4+ messages in thread
From: Danny Milosavljevic @ 2017-12-06  8:40 UTC (permalink / raw)
  To: Adam Van Ymeren; +Cc: guix-devel

Hi Adam,

On Mon, 04 Dec 2017 14:56:39 -0500
Adam Van Ymeren <adam@vany.ca> wrote:

> Does anyone know why rust bootstraps itself from the i686 version of the
> binaries even if you're running on x86_64?

It's to cut down on the number of weird binary blobs we use.

> If I can make it bootstrap though the current system in use would that
> be a useful patch

That would be nice, yes.

In the long term, it would be even better to bootstrap from mrust, a C++ implementation of Rust, and remove all the binary blobs.

> or is there some problem with bootstraping from x86_64
> that I'm unaware of?

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-12-06  8:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-04 19:56 Rust bootstraps via i686? Adam Van Ymeren
2017-12-05 10:36 ` Efraim Flashner
2017-12-05 13:11   ` ng0
2017-12-06  8:40 ` Danny Milosavljevic

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).