[INFO] cloning repository https://github.com/holu31/swan_os [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/holu31/swan_os" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fholu31%2Fswan_os", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fholu31%2Fswan_os'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 98c49a6185e8168816699c5b514115f383f0b08a [INFO] checking holu31/swan_os against master#cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c for pr-143170 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fholu31%2Fswan_os" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-0-tc1/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/holu31/swan_os [INFO] finished tweaking git repo https://github.com/holu31/swan_os [INFO] tweaked toml for git repo https://github.com/holu31/swan_os written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/holu31/swan_os on toolchain cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/holu31/swan_os already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded font8x8 v0.3.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 471dfab33e62cc6b65039f6b114383ebca523df47529ca698f6b78f9d540790e [INFO] running `Command { std: "docker" "start" "-a" "471dfab33e62cc6b65039f6b114383ebca523df47529ca698f6b78f9d540790e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "471dfab33e62cc6b65039f6b114383ebca523df47529ca698f6b78f9d540790e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "471dfab33e62cc6b65039f6b114383ebca523df47529ca698f6b78f9d540790e", kill_on_drop: false }` [INFO] [stdout] 471dfab33e62cc6b65039f6b114383ebca523df47529ca698f6b78f9d540790e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c0ad40745e38088ca91df331c0795c4d35d7115cd4bbf285e02b854bb60f9502 [INFO] running `Command { std: "docker" "start" "-a" "c0ad40745e38088ca91df331c0795c4d35d7115cd4bbf285e02b854bb60f9502", kill_on_drop: false }` [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Checking bitflags v2.4.1 [INFO] [stderr] Checking font8x8 v0.3.1 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking raw-cpuid v11.0.1 [INFO] [stderr] Checking swan_os v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: unresolved import [INFO] [stdout] --> src/sys/syscalls.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::arch::interrupts::IDT; [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | unresolved import [INFO] [stdout] | help: a similar path exists: `core::arch` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub mod arch; [INFO] [stdout] | ^^^^ [INFO] [stdout] note: the item is gated behind the `x86` feature [INFO] [stdout] --> src/lib.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | #[cfg(target_arch = "x86")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: unresolved import [INFO] [stdout] --> src/sys/syscalls.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::arch::interrupts::IDT; [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | unresolved import [INFO] [stdout] | help: a similar path exists: `core::arch` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub mod arch; [INFO] [stdout] | ^^^^ [INFO] [stdout] note: the item is gated behind the `x86` feature [INFO] [stdout] --> src/lib.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | #[cfg(target_arch = "x86")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: unresolved import [INFO] [stdout] --> src/sys/syscalls.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::arch::registers::Registers; [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | unresolved import [INFO] [stdout] | help: a similar path exists: `core::arch` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub mod arch; [INFO] [stdout] | ^^^^ [INFO] [stdout] note: the item is gated behind the `x86` feature [INFO] [stdout] --> src/lib.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | #[cfg(target_arch = "x86")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `arch` [INFO] [stdout] --> src/lib.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use arch::gdt::gdt_init; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `arch` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `arch`, use `cargo add arch` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `arch` [INFO] [stdout] --> src/lib.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use arch::interrupts::interrupts_init; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `arch` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `arch`, use `cargo add arch` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `arch` [INFO] [stdout] --> src/lib.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use arch::pic::PICS; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `arch` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `arch`, use `cargo add arch` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: unresolved import [INFO] [stdout] --> src/sys/syscalls.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::arch::registers::Registers; [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | unresolved import [INFO] [stdout] | help: a similar path exists: `core::arch` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/lib.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub mod arch; [INFO] [stdout] | ^^^^ [INFO] [stdout] note: the item is gated behind the `x86` feature [INFO] [stdout] --> src/lib.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | #[cfg(target_arch = "x86")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `arch` [INFO] [stdout] --> src/lib.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use arch::gdt::gdt_init; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `arch` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `arch`, use `cargo add arch` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `arch` [INFO] [stdout] --> src/lib.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use arch::interrupts::interrupts_init; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `arch` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `arch`, use `cargo add arch` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `arch` [INFO] [stdout] --> src/lib.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use arch::pic::PICS; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `arch` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `arch`, use `cargo add arch` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/lib.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | extern { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(missing_abi)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unwinding panics are not supported without std [INFO] [stdout] | [INFO] [stdout] = help: using nightly cargo, use -Zbuild-std with panic="abort" to avoid unwinding [INFO] [stdout] = note: since the core library is usually precompiled with panic="unwind", rebuilding your crate with panic="abort" may not be enough to fix the problem [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/lib.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | extern { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(missing_abi)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0152]: found duplicate lang item `panic_impl` [INFO] [stdout] --> src/lib.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | / fn panic(info: &PanicInfo) -> ! { [INFO] [stdout] 36 | | err!("{}", info); [INFO] [stdout] 37 | | loop {} [INFO] [stdout] 38 | | } [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/cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-182371ab76f58e7c.rlib [INFO] [stdout] = note: second definition in the local crate (`swan_os`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `arch` [INFO] [stdout] --> src/lib.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 87 | arch::hlt(); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `arch` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `arch`, use `cargo add arch` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0152, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0152`. [INFO] [stdout] [INFO] [stderr] error: could not compile `swan_os` (lib test) due to 7 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `arch` [INFO] [stdout] --> src/lib.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 87 | arch::hlt(); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `arch` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `arch`, use `cargo add arch` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:41:79 [INFO] [stdout] | [INFO] [stdout] 41 | pub unsafe extern "C" fn kernel_main(multiboot_addr: u32, _stack_top: u32) -> ! { [INFO] [stdout] | ----------- ^ expected `!`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected type `!` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot use register `bx`: rbx is used internally by LLVM and cannot be used as an operand for inline asm [INFO] [stdout] --> src/lib.rs:83:38 [INFO] [stdout] | [INFO] [stdout] 83 | asm!("int $0x80", in("eax") (0), in("ebx") (12)); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `swan_os` (lib) due to 9 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "c0ad40745e38088ca91df331c0795c4d35d7115cd4bbf285e02b854bb60f9502", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c0ad40745e38088ca91df331c0795c4d35d7115cd4bbf285e02b854bb60f9502", kill_on_drop: false }` [INFO] [stdout] c0ad40745e38088ca91df331c0795c4d35d7115cd4bbf285e02b854bb60f9502