Open
Bug 1474194
Opened 7 years ago
Updated 3 years ago
firefox build error in rust part: toolkit/library/rust/shared/lib.rs
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
UNCONFIRMED
People
(Reporter: felix-mozilla, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0
Build ID: 20180511215810
Steps to reproduce:
$ make
Actual results:
error[E0432]: unresolved import `std::alloc::set_alloc_error_hook`
--> toolkit/library/rust/shared/lib.rs:225:30
|
225 | use std::alloc::{Layout, set_alloc_error_hook};
| ^^^^^^^^^^^^^^^^^^^^ no `set_alloc_error_hook` in `alloc`
error[E0658]: use of unstable library feature 'allocator_api': the precise API and guarantees it provides may be tweaked slightly, especially to possibly take into account the types being stored to make room for a future tracing garbage collector (see issue #32838)
--> toolkit/library/rust/shared/lib.rs:225:22
|
225 | use std::alloc::{Layout, set_alloc_error_hook};
| ^^^^^^
|
= help: add #![feature(allocator_api)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'allocator_api': the precise API and guarantees it provides may be tweaked slightly, especially to possibly take into account the types being stored to make room for a future tracing garbage collector (see issue #32838)
--> toolkit/library/rust/shared/lib.rs:231:25
|
231 | pub fn hook(layout: Layout) {
| ^^^^^^
|
= help: add #![feature(allocator_api)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'allocator_api': the precise API and guarantees it provides may be tweaked slightly, especially to possibly take into account the types being stored to make room for a future tracing garbage collector (see issue #32838)
--> toolkit/library/rust/shared/lib.rs:233:35
|
233 | GeckoHandleOOM(layout.size());
| ^^^^
|
= help: add #![feature(allocator_api)] to the crate attributes to enable
error: aborting due to 4 previous errors
Some errors occurred: E0432, E0658.
For more information about an error, try `rustc --explain E0432`.
error: Could not compile `gkrust-shared`.
To learn more, run the command again with --verbose.
Expected results:
successful build.
| Reporter | ||
Comment 1•7 years ago
|
||
oh I should add:
$ rustc --version
rustc 1.27.0 (3eda71b00 2018-06-19)
$
Comment 2•7 years ago
|
||
Hi,
I want to reproduce this issue but I will need more details in order to be able to. Please provide step by step all your actions that generate this issue.
Component: Untriaged → General
Product: Firefox → Firefox Build System
Comment 3•7 years ago
|
||
How old is your source tree? This was fixed in bug 1471096, a couple weeks ago.
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•