Skip to content

Instantly share code, notes, and snippets.

@r-rmcgibbo
Last active April 6, 2021 23:53
Show Gist options
  • Save r-rmcgibbo/8c2a7798d9b77fb96e387e25a2db9492 to your computer and use it in GitHub Desktop.
Save r-rmcgibbo/8c2a7798d9b77fb96e387e25a2db9492 to your computer and use it in GitHub Desktop.
system: aarch64-linux | build_time: 5 minutes | https://github.com/NixOS/nixpkgs/pull/118700
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
/build/chromiumos/platform /build
unpacking source archive /nix/store/bghv13l5bc42fvpdqb922m9030raqb0a-crosvm-8b8c01e
/build
/build/chromiumos/third_party /build
unpacking source archive /nix/store/f7pfm1nadqgh74r3g3sxrr3ijlzbv7gf-adhd-f361d5b
/build
Executing cargoSetupPostUnpackHook
unpacking source archive /nix/store/llcka5xp6plv495i549pm5gh2j9xjxas-crosvm-81.12871.0.0-rc1-vendor.tar.gz
Finished cargoSetupPostUnpackHook
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
applying patch /nix/store/0r9lw39afgsqcjngf0b0dbzam5x7bddj-default-seccomp-policy-dir.diff
patching file src/crosvm.rs
Hunk #1 succeeded at 200 with fuzz 1 (offset 59 lines).
Executing cargoSetupPostPatchHook
Validating consistency between /build/chromiumos/platform/crosvm//Cargo.lock and /build/crosvm-81.12871.0.0-rc1-vendor.tar.gz/Cargo.lock
Finished cargoSetupPostPatchHook
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
@nix { "action": "setPhase", "phase": "buildPhase" }
building
Executing cargoBuildHook
++ env CC_aarch64-unknown-linux-gnu=/nix/store/5p4azqivv6xvv89ww4q0fqzg46rk2my4-gcc-wrapper-9.3.0/bin/cc CXX_aarch64-unknown-linux-gnu=/nix/store/5p4azqivv6xvv89ww4q0fqzg46rk2my4-gcc-wrapper-9.3.0/bin/c++ CC_aarch64-unknown-linux-gnu=/nix/store/5p4azqivv6xvv89ww4q0fqzg46rk2my4-gcc-wrapper-9.3.0/bin/cc CXX_aarch64-unknown-linux-gnu=/nix/store/5p4azqivv6xvv89ww4q0fqzg46rk2my4-gcc-wrapper-9.3.0/bin/c++ cargo build -j 2 --target aarch64-unknown-linux-gnu --frozen --release
Compiling proc-macro2 v0.4.21
Compiling unicode-xid v0.1.0
Compiling libc v0.2.44
Compiling assertions v0.1.0 (/build/chromiumos/platform/crosvm/assertions)
Compiling syscall_defines v0.1.0 (/build/chromiumos/platform/crosvm/syscall_defines)
Compiling sync v0.1.0 (/build/chromiumos/platform/crosvm/sync)
Compiling bitflags v1.1.0
Compiling audio_streams v0.1.0 (/build/chromiumos/third_party/adhd/audio_streams)
Compiling rand_ish v0.1.0 (/build/chromiumos/platform/crosvm/rand_ish)
Compiling data_model v0.1.0 (/build/chromiumos/platform/crosvm/data_model)
Compiling cras-sys v0.1.0 (/build/chromiumos/third_party/adhd/cras/client/cras-sys)
Compiling quote v0.6.10
Compiling tempfile v3.0.7 (/build/chromiumos/platform/crosvm/tempfile)
Compiling kernel_cmdline v0.1.0 (/build/chromiumos/platform/crosvm/kernel_cmdline)
Compiling syn v0.15.26
Compiling poll_token_derive v0.1.0 (/build/chromiumos/platform/crosvm/sys_util/poll_token_derive)
Compiling msg_on_socket_derive v0.1.0 (/build/chromiumos/platform/crosvm/msg_socket/msg_on_socket_derive)
Compiling remain v0.1.2
Compiling bit_field_derive v0.1.0 (/build/chromiumos/platform/crosvm/bit_field/bit_field_derive)
Compiling wire_format_derive v0.1.0 (/build/chromiumos/platform/crosvm/p9/wire_format_derive)
Compiling enumn v0.1.0 (/build/chromiumos/platform/crosvm/enumn)
Compiling sys_util v0.1.0 (/build/chromiumos/platform/crosvm/sys_util)
Compiling bit_field v0.1.0 (/build/chromiumos/platform/crosvm/bit_field)
Compiling p9 v0.1.0 (/build/chromiumos/platform/crosvm/p9)
Compiling msg_socket v0.1.0 (/build/chromiumos/platform/crosvm/msg_socket)
Compiling net_sys v0.1.0 (/build/chromiumos/platform/crosvm/net_sys)
Compiling kvm_sys v0.1.0 (/build/chromiumos/platform/crosvm/kvm_sys)
Compiling usb_sys v0.1.0 (/build/chromiumos/platform/crosvm/usb_sys)
Compiling virtio_sys v0.1.0 (/build/chromiumos/platform/crosvm/virtio_sys)
Compiling disk v0.1.0 (/build/chromiumos/platform/crosvm/disk)
Compiling vfio_sys v0.1.0 (/build/chromiumos/platform/crosvm/vfio_sys)
Compiling linux_input_sys v0.1.0 (/build/chromiumos/platform/crosvm/linux_input_sys)
Compiling kernel_loader v0.1.0 (/build/chromiumos/platform/crosvm/kernel_loader)
Compiling libcras v0.1.0 (/build/chromiumos/third_party/adhd/cras/client/libcras)
Compiling net_util v0.1.0 (/build/chromiumos/platform/crosvm/net_util)
Compiling io_jail v0.1.0 (/build/chromiumos/platform/crosvm/io_jail)
Compiling resources v0.1.0 (/build/chromiumos/platform/crosvm/resources)
Compiling usb_util v0.1.0 (/build/chromiumos/platform/crosvm/usb_util)
Compiling kvm v0.1.0 (/build/chromiumos/platform/crosvm/kvm)
Compiling vhost v0.1.0 (/build/chromiumos/platform/crosvm/vhost)
Compiling vm_control v0.1.0 (/build/chromiumos/platform/crosvm/vm_control)
Compiling devices v0.1.0 (/build/chromiumos/platform/crosvm/devices)
warning: unnecessary parentheses around block return value
--> devices/src/pit.rs:694:17
|
694 | (dur_ns * FREQUENCY_HZ / NANOS_PER_SEC)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
|
= note: `#[warn(unused_parens)]` on by default
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:15:33
|
15 | pub const INPUT_PROP_CNT: u16 = (INPUT_PROP_MAX + 1);
| ^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:641:26
|
641 | pub const KEY_CNT: u16 = (KEY_MAX + 1);
| ^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:654:26
|
654 | pub const REL_CNT: u16 = (REL_MAX + 1);
| ^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:702:26
|
702 | pub const ABS_CNT: u16 = (ABS_MAX + 1);
| ^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:711:26
|
711 | pub const MSC_CNT: u16 = (MSC_MAX + 1);
| ^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:725:26
|
725 | pub const LED_CNT: u16 = (LED_MAX + 1);
| ^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:730:26
|
730 | pub const REP_CNT: u16 = (REP_MAX + 1);
| ^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/fs/server.rs:22:30
|
22 | const MAX_BUFFER_SIZE: u32 = (1 << 20);
| ^^^^^^^^^ help: remove these parentheses
warning: use of deprecated associated function `std::sync::atomic::AtomicU64::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead
--> devices/src/virtio/fs/passthrough.rs:714:18
|
714 | .compare_and_swap(refcount, new_count, Ordering::Release)
| ^^^^^^^^^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
Compiling arch v0.1.0 (/build/chromiumos/platform/crosvm/arch)
Compiling aarch64 v0.1.0 (/build/chromiumos/platform/crosvm/aarch64)
warning: unnecessary parentheses around assigned value
--> aarch64/src/fdt.rs:54:39
|
54 | const GIC_FDT_IRQ_PPI_CPU_MASK: u32 = (0xff << GIC_FDT_IRQ_PPI_CPU_SHIFT);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
|
= note: `#[warn(unused_parens)]` on by default
warning: 1 warning emitted
Compiling crosvm v0.1.0 (/build/chromiumos/platform/crosvm)
warning: unnecessary parentheses around assigned value
--> src/linux.rs:1603:25
|
1603 | const ONE_GB: u64 = (1 << 30);
| ^^^^^^^^^ help: remove these parentheses
|
= note: `#[warn(unused_parens)]` on by default
warning: 1 warning emitted
warning: 10 warnings emitted
Finished release [optimized] target(s) in 2m 36s
Executing cargoInstallPostBuildHook
Finished cargoInstallPostBuildHook
Finished cargoBuildHook
@nix { "action": "setPhase", "phase": "checkPhase" }
running tests
Executing cargoCheckHook
++ cargo test -j 2 --release --target aarch64-unknown-linux-gnu --frozen -- --test-threads=2
Compiling assertions v0.1.0 (/build/chromiumos/platform/crosvm/assertions)
Compiling sync v0.1.0 (/build/chromiumos/platform/crosvm/sync)
Compiling syscall_defines v0.1.0 (/build/chromiumos/platform/crosvm/syscall_defines)
Compiling audio_streams v0.1.0 (/build/chromiumos/third_party/adhd/audio_streams)
Compiling rand_ish v0.1.0 (/build/chromiumos/platform/crosvm/rand_ish)
Compiling data_model v0.1.0 (/build/chromiumos/platform/crosvm/data_model)
Compiling libc v0.2.44
Compiling bitflags v1.1.0
Compiling cras-sys v0.1.0 (/build/chromiumos/third_party/adhd/cras/client/cras-sys)
Compiling tempfile v3.0.7 (/build/chromiumos/platform/crosvm/tempfile)
Compiling kernel_cmdline v0.1.0 (/build/chromiumos/platform/crosvm/kernel_cmdline)
Compiling sys_util v0.1.0 (/build/chromiumos/platform/crosvm/sys_util)
Compiling p9 v0.1.0 (/build/chromiumos/platform/crosvm/p9)
Compiling bit_field v0.1.0 (/build/chromiumos/platform/crosvm/bit_field)
Compiling msg_socket v0.1.0 (/build/chromiumos/platform/crosvm/msg_socket)
Compiling net_sys v0.1.0 (/build/chromiumos/platform/crosvm/net_sys)
Compiling kvm_sys v0.1.0 (/build/chromiumos/platform/crosvm/kvm_sys)
Compiling usb_sys v0.1.0 (/build/chromiumos/platform/crosvm/usb_sys)
Compiling virtio_sys v0.1.0 (/build/chromiumos/platform/crosvm/virtio_sys)
Compiling disk v0.1.0 (/build/chromiumos/platform/crosvm/disk)
Compiling vfio_sys v0.1.0 (/build/chromiumos/platform/crosvm/vfio_sys)
Compiling linux_input_sys v0.1.0 (/build/chromiumos/platform/crosvm/linux_input_sys)
Compiling libcras v0.1.0 (/build/chromiumos/third_party/adhd/cras/client/libcras)
Compiling kernel_loader v0.1.0 (/build/chromiumos/platform/crosvm/kernel_loader)
Compiling net_util v0.1.0 (/build/chromiumos/platform/crosvm/net_util)
Compiling io_jail v0.1.0 (/build/chromiumos/platform/crosvm/io_jail)
Compiling resources v0.1.0 (/build/chromiumos/platform/crosvm/resources)
Compiling usb_util v0.1.0 (/build/chromiumos/platform/crosvm/usb_util)
Compiling kvm v0.1.0 (/build/chromiumos/platform/crosvm/kvm)
Compiling vhost v0.1.0 (/build/chromiumos/platform/crosvm/vhost)
Compiling vm_control v0.1.0 (/build/chromiumos/platform/crosvm/vm_control)
warning: unnecessary parentheses around block return value
--> devices/src/pit.rs:694:17
|
694 | (dur_ns * FREQUENCY_HZ / NANOS_PER_SEC)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
|
= note: `#[warn(unused_parens)]` on by default
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:15:33
|
15 | pub const INPUT_PROP_CNT: u16 = (INPUT_PROP_MAX + 1);
| ^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:641:26
|
641 | pub const KEY_CNT: u16 = (KEY_MAX + 1);
| ^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:654:26
|
654 | pub const REL_CNT: u16 = (REL_MAX + 1);
| ^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:702:26
|
702 | pub const ABS_CNT: u16 = (ABS_MAX + 1);
| ^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:711:26
|
711 | pub const MSC_CNT: u16 = (MSC_MAX + 1);
| ^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:725:26
|
725 | pub const LED_CNT: u16 = (LED_MAX + 1);
| ^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:730:26
|
730 | pub const REP_CNT: u16 = (REP_MAX + 1);
| ^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/fs/server.rs:22:30
|
22 | const MAX_BUFFER_SIZE: u32 = (1 << 20);
| ^^^^^^^^^ help: remove these parentheses
warning: use of deprecated associated function `std::sync::atomic::AtomicU64::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead
--> devices/src/virtio/fs/passthrough.rs:714:18
|
714 | .compare_and_swap(refcount, new_count, Ordering::Release)
| ^^^^^^^^^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
warning: 10 warnings emitted
warning: unnecessary parentheses around assigned value
--> aarch64/src/fdt.rs:54:39
|
54 | const GIC_FDT_IRQ_PPI_CPU_MASK: u32 = (0xff << GIC_FDT_IRQ_PPI_CPU_SHIFT);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
|
= note: `#[warn(unused_parens)]` on by default
warning: 1 warning emitted
warning: unnecessary parentheses around assigned value
--> src/linux.rs:1603:25
|
1603 | const ONE_GB: u64 = (1 << 30);
| ^^^^^^^^^ help: remove these parentheses
|
= note: `#[warn(unused_parens)]` on by default
warning: 1 warning emitted
Compiling devices v0.1.0 (/build/chromiumos/platform/crosvm/devices)
warning: unnecessary parentheses around block return value
--> devices/src/pit.rs:694:17
|
694 | (dur_ns * FREQUENCY_HZ / NANOS_PER_SEC)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
|
= note: `#[warn(unused_parens)]` on by default
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:15:33
|
15 | pub const INPUT_PROP_CNT: u16 = (INPUT_PROP_MAX + 1);
| ^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:641:26
|
641 | pub const KEY_CNT: u16 = (KEY_MAX + 1);
| ^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:654:26
|
654 | pub const REL_CNT: u16 = (REL_MAX + 1);
| ^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:702:26
|
702 | pub const ABS_CNT: u16 = (ABS_MAX + 1);
| ^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:711:26
|
711 | pub const MSC_CNT: u16 = (MSC_MAX + 1);
| ^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:725:26
|
725 | pub const LED_CNT: u16 = (LED_MAX + 1);
| ^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/input/constants.rs:730:26
|
730 | pub const REP_CNT: u16 = (REP_MAX + 1);
| ^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> devices/src/virtio/fs/server.rs:22:30
|
22 | const MAX_BUFFER_SIZE: u32 = (1 << 20);
| ^^^^^^^^^ help: remove these parentheses
warning: use of deprecated associated function `std::sync::atomic::AtomicU64::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead
--> devices/src/virtio/fs/passthrough.rs:714:18
|
714 | .compare_and_swap(refcount, new_count, Ordering::Release)
| ^^^^^^^^^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
Compiling arch v0.1.0 (/build/chromiumos/platform/crosvm/arch)
Compiling aarch64 v0.1.0 (/build/chromiumos/platform/crosvm/aarch64)
warning: unnecessary parentheses around assigned value
--> aarch64/src/fdt.rs:54:39
|
54 | const GIC_FDT_IRQ_PPI_CPU_MASK: u32 = (0xff << GIC_FDT_IRQ_PPI_CPU_SHIFT);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
|
= note: `#[warn(unused_parens)]` on by default
warning: 1 warning emitted
Compiling crosvm v0.1.0 (/build/chromiumos/platform/crosvm)
warning: unnecessary parentheses around assigned value
--> src/linux.rs:1603:25
|
1603 | const ONE_GB: u64 = (1 << 30);
| ^^^^^^^^^ help: remove these parentheses
|
= note: `#[warn(unused_parens)]` on by default
warning: 1 warning emitted
warning: 10 warnings emitted
warning: unnecessary parentheses around assigned value
--> src/linux.rs:1603:25
|
1603 | const ONE_GB: u64 = (1 << 30);
| ^^^^^^^^^ help: remove these parentheses
|
= note: `#[warn(unused_parens)]` on by default
warning: value assigned to `gpu_value` is never read
--> src/argument.rs:516:41
|
516 | ... gpu_value = Some("2D".to_string());
| ^^^^^^^^^
|
= note: `#[warn(unused_assignments)]` on by default
= help: maybe it is overwritten before being read?
warning: value assigned to `gpu_value` is never read
--> src/argument.rs:519:41
|
519 | ... gpu_value = Some("3D".to_string());
| ^^^^^^^^^
|
= help: maybe it is overwritten before being read?
warning: 3 warnings emitted
Finished release [optimized] target(s) in 2m 52s
Running target/aarch64-unknown-linux-gnu/release/deps/crosvm-5469d58c436e5e10
running 4 tests
test argument::tests::flag_or_value ... ok
test argument::tests::mixed_args ... ok
test argument::tests::name_value_pair ... ok
test argument::tests::request_help ... ok
test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s
Running target/aarch64-unknown-linux-gnu/release/deps/crosvm-c60e1e539a2d9aad
running 23 tests
test tests::parse_cpu_set_extra_comma ... ok
test tests::parse_cpu_set_list ... ok
test tests::parse_cpu_set_negative ... ok
test tests::parse_cpu_set_list_of_ranges ... ok
test tests::parse_cpu_set_open_range ... ok
test tests::parse_cpu_set_repeated ... ok
test tests::parse_cpu_set_range ... ok
test tests::parse_cpu_set_reverse_range ... ok
test tests::parse_cpu_set_single ... ok
test tests::parse_plugin_gid_map_valid ... ok
test tests::parse_plugin_gid_map_invalid ... ok
test tests::parse_plugin_gid_map_valid_shorthand ... ok
test tests::parse_plugin_mount_invalid ... ok
test tests::parse_plugin_mount_valid ... ok
test tests::parse_plugin_mount_valid_shorthand ... ok
test tests::parse_serial_invalid_num_string ... ok
test tests::parse_serial_invalid_num_lower ... ok
test tests::parse_serial_invalid_num_upper ... ok
test tests::parse_serial_invalid_option ... ok
test tests::parse_serial_invalid_type ... ok
test tests::parse_serial_invalid_two_stdin ... ok
test tests::parse_serial_vaild ... ok
test tests::parse_serial_valid_no_num ... ok
test result: ok. 23 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.09s
Running target/aarch64-unknown-linux-gnu/release/deps/boot-fbe55f1e12440da9
running 1 test
test boot ... FAILED
failures:
---- boot stdout ----
using kernel binary from enviroment `/nix/store/kk8lpkfw35v11jx6r9cyyll84za5sbk9-linux-5.10.27/Image`
thread 'boot' panicked at 'failed to run linux: BuildVm(CreateKvm(Error(2)))', tests/boot.rs:240:7
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
failures:
boot
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
error: test failed, to rerun pass '--test boot'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment