New issue
Advanced search Search tips

Issue 822031 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 820330
Owner:
Closed: Mar 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug



Sign in to add a comment

Failure when running emerge-moblab-generic-vm chromeos-base/crosvm

Project Member Reported by haddowk@chromium.org, Mar 14 2018

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"

 
Cc: pprabhu@chromium.org

Comment 2 by xixuan@chromium.org, Mar 14 2018

Owner: pprabhu@chromium.org
Status: Assigned (was: Untriaged)
Assign to @pprabhu to fix.
I hit this bug as well, I'm going to try masking out kvm_host but it would be great to fix this.
Cc: dgreid@chromium.org za...@chromium.org
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.
Cc: davidri...@chromium.org vapier@chromium.org
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 

Comment 6 by vapier@chromium.org, Mar 27 2018

Mergedinto: 820330
Status: Duplicate (was: Assigned)

Sign in to add a comment