#11521: Upgrade rustc for firefox-65.0
-------------------------+-----------------------
Reporter: ken@… | Owner: ken@…
Type: enhancement | Status: assigned
Priority: normal | Milestone: 8.4
Component: BOOK | Version: SVN
Severity: normal | Resolution:
Keywords: |
-------------------------+-----------------------
Comment (by ken@…):
I am hopeful that the problem is caused by using system llvm. There is an
issue for rust where Arch's system llvm is blamed.
So, I tried building with the shipped llvm, and also for target ARM (to
try to get clean test results by not failing the thumb tests). No reported
segmentation faults (in practice, I still had a couple, plus 5 traps - the
original ryzen problem), one test failure reported:
{{{
[run-make] run-make-fulldeps/sysroot-crates-are-unstable
}}}
which I have seen before and is the fourth failure on the other system.
Unfortunately, cannot build firefox:
{{{
0:05.98 checking rustc version... 1.32.0
0:06.03 checking cargo version... 1.32.0
0:06.35 DEBUG: <truncated - see config.log for full output>
[...] 0:06.35 DEBUG: | error[E0514]: found crate `std` compiled by an
incompatible version of rustc
0:06.35 DEBUG: | |
0:06.35 DEBUG: | = help: please recompile that crate using this
compiler (rustc 1.32.0)
0:06.35 DEBUG: | = note: the following crate versions were found:
0:06.35 DEBUG: | crate `std` compiled by rustc 1.29.2:
/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_unicode-
9f1d9aae8b99d108.rlib
0:06.35 DEBUG: | crate `std` compiled by rustc 1.31.1:
/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-57b3410c37ed439b.rlib
0:06.35 DEBUG: | crate `std` compiled by rustc 1.31.1:
/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-57b3410c37ed439b.so
0:06.35 DEBUG: | crate `std` compiled by rustc 1.29.2:
/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-160f1a26cff4fc58.rlib
}}}
And from firefox-build-dir/config.log:
{{{
INFO: checking cargo version...
DEBUG: Executing: `/usr/bin/cargo --version --verbose`
INFO: 1.32.0
DEBUG: Executing: `/usr/bin/rustc --print target-list`
DEBUG: Creating `/tmp/conftestxYkoWQ.rs` with content:
DEBUG: | pub extern fn hello() { println!("Hello world"); }
DEBUG: Executing: `/usr/bin/rustc --crate-type staticlib --target=x86_64
-unknown-linux-gnu -o /tmp/conftesthJIO24.rlib /tmp/conftestxYkoWQ.rs`
DEBUG: The command returned non-zero exit status 1.
DEBUG: Its error output was:
DEBUG: | error[E0464]: multiple matching crates for `std`
}}}
Google finds E0514 where people altered their code to fix test failures
and had to recompile stage0. For E0464, no matches for the std crate.
Looks as if the target list is ok (all known target triplets), so the
'hello world' test within firefox's attempt to understand the installed
rust is the problem. Possibly the static lib crate type.
Not sure where I'm going now, I think I might have broken the system (in
particular, blowing away /usr/lib/rustlib will probably prevent me using
the runnimg firefox if I have to reboot).
--
Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/11521#comment:6>
BLFS Trac <http://wiki.linuxfromscratch.org/blfs>
Beyond Linux From Scratch
--
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page