[INFO] fetching crate ontio-std 0.2.0... [INFO] checking ontio-std-0.2.0 against try#ffa4a0215752773248fb0f0a8092f1c3e7907e9e for pr-75585 [INFO] extracting crate ontio-std 0.2.0 into /workspace/builds/worker-5/source [INFO] validating manifest of crates.io crate ontio-std 0.2.0 on toolchain ffa4a0215752773248fb0f0a8092f1c3e7907e9e [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ffa4a0215752773248fb0f0a8092f1c3e7907e9e" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate ontio-std 0.2.0 [INFO] finished tweaking crates.io crate ontio-std 0.2.0 [INFO] tweaked toml for crates.io crate ontio-std 0.2.0 written to /workspace/builds/worker-5/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ffa4a0215752773248fb0f0a8092f1c3e7907e9e" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ffa4a0215752773248fb0f0a8092f1c3e7907e9e" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded memory_units v0.4.0 [INFO] [stderr] Downloaded fixed-hash v0.4.0 [INFO] [stderr] Downloaded ontio-codegen v0.2.1 [INFO] [stderr] Downloaded ontio-bump-alloc v0.1.0 [INFO] [stderr] Downloaded wee_alloc v0.4.5 [INFO] [stderr] Downloaded ontio-derive-codec v0.2.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+ffa4a0215752773248fb0f0a8092f1c3e7907e9e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 966cf11682248445d262a63d31a45d93f0015d6a0015327cfd2425ebfdb802a8 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "966cf11682248445d262a63d31a45d93f0015d6a0015327cfd2425ebfdb802a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "966cf11682248445d262a63d31a45d93f0015d6a0015327cfd2425ebfdb802a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "966cf11682248445d262a63d31a45d93f0015d6a0015327cfd2425ebfdb802a8", kill_on_drop: false }` [INFO] [stdout] 966cf11682248445d262a63d31a45d93f0015d6a0015327cfd2425ebfdb802a8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+ffa4a0215752773248fb0f0a8092f1c3e7907e9e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 45e35a22898a0733c443e4882500f944faf2a884be75a19a9064db2aca7c348b [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "45e35a22898a0733c443e4882500f944faf2a884be75a19a9064db2aca7c348b", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling proc-macro2 v1.0.20 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling wee_alloc v0.4.5 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling cpuid-bool v0.1.2 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Checking memory_units v0.4.0 [INFO] [stderr] Checking static_assertions v0.2.5 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Checking fixed-hash v0.4.0 [INFO] [stderr] Checking getrandom v0.1.14 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling num-bigint v0.3.0 [INFO] [stderr] Compiling num-rational v0.3.0 [INFO] [stderr] Compiling num-iter v0.1.41 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling syn v1.0.39 [INFO] [stderr] Compiling num-complex v0.3.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling sha2 v0.9.1 [INFO] [stderr] Compiling num v0.3.0 [INFO] [stderr] Compiling ontio-codegen v0.2.1 [INFO] [stderr] Compiling ontio-derive-codec v0.2.0 [INFO] [stderr] Checking ontio-std v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0152]: found duplicate lang item `panic_impl` [INFO] [stdout] --> src/lib.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | / pub fn panic_fmt(info: &core::panic::PanicInfo) -> ! { [INFO] [stdout] 33 | | let msg = info.message().map(|msg| format!("{}", msg)).unwrap_or_default(); [INFO] [stdout] 34 | | let (file, line) = if let Some(loc) = info.location() { [INFO] [stdout] 35 | | (loc.file(), loc.line()) [INFO] [stdout] ... | [INFO] [stdout] 42 | | runtime::panic(&panic_msg) [INFO] [stdout] 43 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: the lang item is first defined in crate `std` (which `test` depends on) [INFO] [stdout] = note: first definition in `std` loaded from /opt/rustwide/rustup-home/toolchains/ffa4a0215752773248fb0f0a8092f1c3e7907e9e/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-afd4b9aba051f3ad.rlib [INFO] [stdout] = note: second definition in the local crate (`ontio_std`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0152]: found duplicate lang item `eh_personality` [INFO] [stdout] --> src/lib.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | extern "C" fn eh_personality() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the lang item is first defined in crate `panic_unwind` (which `std` depends on) [INFO] [stdout] = note: first definition in `panic_unwind` loaded from /opt/rustwide/rustup-home/toolchains/ffa4a0215752773248fb0f0a8092f1c3e7907e9e/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-855c562e2e292ca8.rlib [INFO] [stdout] = note: second definition in the local crate (`ontio_std`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0152]: found duplicate lang item `oom` [INFO] [stdout] --> src/lib.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | / pub extern fn oom(_: core::alloc::Layout) -> ! { [INFO] [stdout] 52 | | unsafe { core::intrinsics::abort() } [INFO] [stdout] 53 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: the lang item is first defined in crate `std` (which `test` depends on) [INFO] [stdout] = note: first definition in `std` loaded from /opt/rustwide/rustup-home/toolchains/ffa4a0215752773248fb0f0a8092f1c3e7907e9e/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-afd4b9aba051f3ad.rlib [INFO] [stdout] = note: second definition in the local crate (`ontio_std`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0152`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ontio-std`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | unsafe { core::intrinsics::abort() } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `core::alloc::Layout`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:51:30 [INFO] [stdout] | [INFO] [stdout] 51 | pub extern fn oom(_: core::alloc::Layout) -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "45e35a22898a0733c443e4882500f944faf2a884be75a19a9064db2aca7c348b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "45e35a22898a0733c443e4882500f944faf2a884be75a19a9064db2aca7c348b", kill_on_drop: false }` [INFO] [stdout] 45e35a22898a0733c443e4882500f944faf2a884be75a19a9064db2aca7c348b