Closed Bug 1716532 Opened 3 years ago Closed 3 years ago

error compiling mozwer

Categories

(Toolkit :: Crash Reporting, defect)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1716470

People

(Reporter: tnikkel, Unassigned)

References

(Blocks 1 open bug)

Details

5:34.15 testing/geckodriver/force-cargo-program-build
5:39.54 Finished dev [optimized + debuginfo] target(s) in 5.36s
5:39.70 toolkit/crashreporter/mozwer-rust/force-cargo-library-build
5:44.85 Compiling mozwer_s v0.1.0 (C:\mozilla\src\toolkit\crashreporter\mozwer-rust)
5:45.07 error[E0432]: unresolved import std::ptr::addr_of_mut
5:45.07 --> toolkit\crashreporter\mozwer-rust\lib.rs:20:16
5:45.07 |
5:45.07 20 | use std::ptr::{addr_of_mut, null, null_mut};
5:45.07 | ^^^^^^^^^^^ no addr_of_mut in ptr
5:45.07 error: cannot determine resolution for the macro addr_of_mut
5:45.07 --> toolkit\crashreporter\mozwer-rust\lib.rs:193:13
5:45.07 |
5:45.07 193 | addr_of_mut!(data) as *mut _,
5:45.09 | ^^^^^^^^^^^
5:45.09 |
5:45.09 = note: import resolution is stuck, try simplifying macro imports
5:45.09 error: cannot determine resolution for the macro addr_of_mut
5:45.09 --> toolkit\crashreporter\mozwer-rust\lib.rs:228:13
5:45.09 |
5:45.09 228 | addr_of_mut!(data) as *mut _,
5:45.09 | ^^^^^^^^^^^
5:45.09 |
5:45.09 = note: import resolution is stuck, try simplifying macro imports
5:45.35 error: aborting due to 3 previous errors
5:45.35 For more information about this error, try rustc --explain E0432.
5:45.48 error: could not compile mozwer_s
5:45.48 To learn more, run the command again with --verbose.
5:45.48 mozmake[4]: *** [c:/mozilla/src/config/makefiles/rust.mk;394: force-cargo-library-build] Error 101
5:45.48 mozmake[3]: *** [c:/mozilla/src/config/recurse.mk;72: toolkit/crashreporter/mozwer-rust/target] Error 2
5:45.48 mozmake[2]: *** [c:/mozilla/src/config/recurse.mk;34: compile] Error 2
5:45.48 mozmake[1]: *** [c:/mozilla/src/config/rules.mk;355: default] Error 2
5:45.48 mozmake: *** [client.mk;65: build] Error 2
5:45.51 252 compiler warnings present.

This happens on Windows 10, I've done a mach bootstrap and clobber, issue remains.

Flags: needinfo?(gsvelto)

If you run rustup update to get the latest stable you should be good (we're working on fixing up configure to properly check minimum rustc).

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
Flags: needinfo?(gsvelto)
You need to log in before you can comment on or make changes to this bug.