wiki:rust

Version 6 (modified by ken@…, 4 years ago) ( diff )

/me hates rustc-1.41.1 ;-)

Rust

There are releases at https://github.com/rust-lang/rust but do NOT use those to try to bootstrap - the tarballs are much smaller, various essential parts are missing. The only real benefit of looking at releases there is that it's possible to see the versions.

The source needs to be downloaded from https://static.rust-lang.org/dist/ as rustc-<VERSION>-src.tar.gz : this site is NOT searchable.

For rustc-1.32 we eventually used the shipped llvm because of various problems which were attributed to needing a newer version of (system) LLVM than the current release. Rustc-1.35.0 appears to build, and work, with system LLVM-8.0. If you are using an older version of LLVM, either update to 8.0 *OR* follow the instructions in the 8.4 book for rustc-1.32.0 replacing 1.32.0 with 1.35.0.

Otherwise, you may find that rustc burns CPU (i.e. hangs) when building firefox-68 (seen on an i3 SandyBridge with BLFS-8.3 (clang 6.0.1).

rustc-1.41.1 (only relevant if using firefox newer than the 68-ESR series)

There were problems with rustc-1.41.0, one of which involved errors in borrow checking - it should not be used. There was also a problem which can apparently lead to a segmentation fault. These are fixed in 1.41.1, but the fix for one of these (issue 69225) required them to backport an LLVM change to their shipped version.

If you build rustc-1.41.1 with system llvm-9.0.1 the new test will fail:

    [ui] ui/issues/issue-69225-SCEVAddExpr-wrap-flag.rs

This is bad, the workaround is to use the shipped llvm, like we have had to do in the past.

The changes in config.toml to use shipped llvm are:

  1. Comment out link-shared = true
  2. Remove the [target-...] sections with their pointers to llvm-config.

Please be aware that trying to build e.g. firefox-68.6.0esr with rustc-1.41.1 causes a blank screen and unresponsive machine on the one machine where I have installed 1.41.1

Up
Top

Note: See TracWiki for help on using the wiki.