On Tuesday, March 22, 2016 at 4:06:18 PM UTC-7, Petr Cerny wrote:
> i.stake...@gmail.com wrote:
> > On Thursday, March 17, 2016 at 4:31:46 PM UTC-4, Henri Sivonen
> >> If distro policy bans ongoing cross-compliation, I guess the
> >> distro would need to replicate the Rust project's compiler
> >> compilation version lineage on each architecture after
> >> bootstrapping with cross-compilation.
> >>
> >
> > Technically speaking, as i've been told at least, rust can still be
> > built from scratch if ocaml is available on the platform, starting
> > with rust-0.6, to 0.7, 0.8, 0.9, 1.0 and then finally 1.7 or newer.
> > If a distro really does ban cross-compiling to jump directly to
> > rust-1.7 or newer then their developers can stoll go this route to
> > package it.  Theoretically it only needs to be done once, right?
> 
> Question is, whether we'll be fine with some 7 iterations like you 
> suggest or we'd need the ~300 steps Henri mentioned.

The Rust compiler has had over 300 snapshots, so re-bootstrapping from ocaml 
would take at least 900 compiles (each one requires three stages of internal 
builds); by my estimation, this would take at least a month of constant 
compilation. Moreover, it's not clear this is even possible: a few points along 
the early history involved manual edits as well.

I don't think this line of investigation is worth pursuing. I think the 
reasonable route is to:

- Get Rust snapshotting based on the previous stable compiler, for ease of 
following the release train. (I hope to have news on that front tomorrow.)

- Seed distros from a relatively recent point in the chain.

I also want to echo what Ralph said: the Rust team takes backwards 
compatibility very seriously, so for ESR releases it should be quite feasible 
to use a newer version of Rust. (I'm not saying there is never breakage, but 
it's very rare and almost always such that code can easily be modified to work 
with both the old and new versions of the compiler.)

Aaron
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to