Issue metadata
Sign in to add a comment
|
Failure when running emerge-moblab-generic-vm chromeos-base/crosvm |
||||||||||||||||||||||||
Issue description
Failed to emerge chromeos-base/crosvm-0.0.1-r93
......
error: `std::mem::size_of` is not yet stable as a const fn
--> kvm/src/lib.rs:975:32
|
975 | const _ASSERT: usize = size_of::<sigset_t>() - 8 as usize;
| ^^^^^^^^^^^^^^^^^^^^^
|
= help: in Nightly builds, add `#![feature(const_size_of)]` to the crate attributes to enable
Apparently is from this change:
https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/944849/
The solution is to be running
rustc --version = 1.24.0 or better
I currently have 1.23.0, but if I do sudo emerge rust I get an error
"couldn't find required command: "armv7a-cros-linux-gnueabi-ar""
Zach Reizner suggested "
you can also mask out kvm_host is the USE flags for your overlay
I see moblab-generic-vm inherits the generic amd64 board, which has kvm_host, but you almost certainly don't need it.
Without kvm_host, crosvm is not built, and you don't have to worry about the rust toolchain"
,
Mar 14 2018
Assign to @pprabhu to fix.
,
Mar 16 2018
I hit this bug as well, I'm going to try masking out kvm_host but it would be great to fix this.
,
Mar 27 2018
I ran into this issue with eve.
sudo emerge eve fails as well, like the original except:
-- snip
Finished dev [unoptimized] target(s) in 28.42 secs
thread 'main' panicked at '
couldn't find required command: "aarch64-cros-linux-gnu-clang"
', src/bootstrap/sanity.rs:65:12
note: Run with `RUST_BACKTRACE=1` for a backtrace.
failed to run: /var/tmp/portage/dev-lang/rust-1.24.0/work/rustc-1.24.0-src/build/bootstrap/debug/bootstrap build --config cros-config.toml
Build completed unsuccessfully in 0:00:29
* ERROR: dev-lang/rust-1.24.0::chromiumos failed (compile phase):
-- snip
Two issues I think?
1. crosvm requires a newer version of rust which isn't automatically getting updated too.
2. Updating with sudo emerge rust is failing.
,
Mar 27 2018
Solution from zachr: sudo $(which cros_setup_toolchains) --targets=boards --include-boards=kevin,lumpy sudo emerge rust emerge-eve crosvm The following change in review should address this in the future: https://chromium-review.googlesource.com/c/chromiumos/platform/crosutils/+/957936 Also see: https://crbug.com/820330
,
Mar 27 2018
|
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by haddowk@chromium.org
, Mar 14 2018