[INFO] cloning repository https://github.com/fudanchii/blinky-stm32f401x [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/fudanchii/blinky-stm32f401x" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffudanchii%2Fblinky-stm32f401x", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffudanchii%2Fblinky-stm32f401x'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 467c5b833d48938521113d2845b00fc338d4d280 [INFO] building fudanchii/blinky-stm32f401x against master#461e8078010433ff7de2db2aaae8a3cfb0847215 for pr-94962 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffudanchii%2Fblinky-stm32f401x" "/workspace/builds/worker-25/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-25/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/fudanchii/blinky-stm32f401x on toolchain 461e8078010433ff7de2db2aaae8a3cfb0847215 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+461e8078010433ff7de2db2aaae8a3cfb0847215" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-25/source/.cargo/config [INFO] started tweaking git repo https://github.com/fudanchii/blinky-stm32f401x [INFO] finished tweaking git repo https://github.com/fudanchii/blinky-stm32f401x [INFO] tweaked toml for git repo https://github.com/fudanchii/blinky-stm32f401x written to /workspace/builds/worker-25/source/Cargo.toml [INFO] crate git repo https://github.com/fudanchii/blinky-stm32f401x already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+461e8078010433ff7de2db2aaae8a3cfb0847215" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/fudanchii/stm32f401x` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+461e8078010433ff7de2db2aaae8a3cfb0847215" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e39ab9cf5b7b17c86634f6c4a62db93c9375319db374530e2b7b4d24fac2d397 [INFO] running `Command { std: "docker" "start" "-a" "e39ab9cf5b7b17c86634f6c4a62db93c9375319db374530e2b7b4d24fac2d397", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e39ab9cf5b7b17c86634f6c4a62db93c9375319db374530e2b7b4d24fac2d397", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e39ab9cf5b7b17c86634f6c4a62db93c9375319db374530e2b7b4d24fac2d397", kill_on_drop: false }` [INFO] [stdout] e39ab9cf5b7b17c86634f6c4a62db93c9375319db374530e2b7b4d24fac2d397 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+461e8078010433ff7de2db2aaae8a3cfb0847215" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a6fe6651969f2db487e4bd0ab3349832df948b3608f8d851656e65b74f4fa551 [INFO] running `Command { std: "docker" "start" "-a" "a6fe6651969f2db487e4bd0ab3349832df948b3608f8d851656e65b74f4fa551", kill_on_drop: false }` [INFO] [stderr] Compiling stm32f401x v0.1.0 (https://github.com/fudanchii/stm32f401x#4d6f2403) [INFO] [stdout] error: cannot find macro `asm` in this scope [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/stm32f401x-69e89748cb05dd42/4d6f240/src/lib.rs:25:14 [INFO] [stdout] | [INFO] [stdout] 25 | unsafe { asm!("nop"); } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] core::arch::asm [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/stm32f401x-69e89748cb05dd42/4d6f240/src/lib.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | / pub fn nop() { [INFO] [stdout] 25 | | unsafe { asm!("nop"); } [INFO] [stdout] 26 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: naked functions cannot be inlined [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/stm32f401x-69e89748cb05dd42/4d6f240/src/lib.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | #[inline(always)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/stm32f401x-69e89748cb05dd42/4d6f240/src/lib.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | / pub unsafe extern "C" fn system_init() { [INFO] [stdout] 32 | | (*RCC).APB1ENR |= RCC_APB1LPENR_PWRLPEN; [INFO] [stdout] | | ---------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 33 | | (*PWR).CR |= PWR_CR_VOS_1; [INFO] [stdout] | | -------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 34 | | [INFO] [stdout] 35 | / | while (&(*RCC).CR & RCC_CR_HSIRDY) == 0 { [INFO] [stdout] 36 | | | nop(); [INFO] [stdout] 37 | | | } [INFO] [stdout] | |____|_____- non-asm is unsupported in naked functions [INFO] [stdout] 38 | | [INFO] [stdout] 39 | | (*PWR).CR |= (16 << 3) as u32; [INFO] [stdout] | | ------------------------------ non-asm is unsupported in naked functions [INFO] [stdout] 40 | | (*RCC).CR &= !RCC_CR_PLLON; [INFO] [stdout] | | --------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 41 | | [INFO] [stdout] 42 | / | while (&(*RCC).CR & RCC_CR_PLLRDY) != 0 { [INFO] [stdout] 43 | | | nop(); [INFO] [stdout] 44 | | | } [INFO] [stdout] | |____|_____- non-asm is unsupported in naked functions [INFO] [stdout] 45 | | [INFO] [stdout] 46 | / | (*RCC).PLLCFGR = 0x2000000 as u32 [INFO] [stdout] 47 | | | | ((7 as u32) << 24) [INFO] [stdout] 48 | | | | ((1 as u32) << 16) [INFO] [stdout] 49 | | | | ((336 as u32) << 6) [INFO] [stdout] 50 | | | | ((16 as u32) << 0); [INFO] [stdout] | |____|_____________________________- non-asm is unsupported in naked functions [INFO] [stdout] 51 | | [INFO] [stdout] 52 | | (*RCC).CR |= RCC_CR_PLLON; [INFO] [stdout] | | -------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 53 | | [INFO] [stdout] 54 | / | while (&(*RCC).CR & RCC_CR_PLLRDY) == 0 { [INFO] [stdout] 55 | | | nop(); [INFO] [stdout] 56 | | | } [INFO] [stdout] | |____|_____- non-asm is unsupported in naked functions [INFO] [stdout] 57 | | [INFO] [stdout] 58 | | (*FLASH).ACR |= FLASH_ACR_ICEN | FLASH_ACR_PRFTEN | FLASH_ACR_LATENCY_2WS; [INFO] [stdout] | | -------------------------------------------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 59 | | [INFO] [stdout] 60 | | (*RCC).CFGR |= RCC_CFGR_SW_PLL; [INFO] [stdout] | | ------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 61 | | [INFO] [stdout] 62 | / | while (&(*RCC).CFGR & RCC_CFGR_SWS_PLL) != RCC_CFGR_SWS_PLL { [INFO] [stdout] 63 | | | nop(); [INFO] [stdout] 64 | | | } [INFO] [stdout] | |____|_____- non-asm is unsupported in naked functions [INFO] [stdout] 65 | | [INFO] [stdout] 66 | | (*RCC).CFGR &= !RCC_CFGR_HPRE; [INFO] [stdout] | | ------------------------------ non-asm is unsupported in naked functions [INFO] [stdout] 67 | | (*RCC).CFGR |= RCC_CFGR_PPRE1_DIV2; [INFO] [stdout] | | ----------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 68 | | (*RCC).CFGR &= !RCC_CFGR_PPRE2; [INFO] [stdout] | | ------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 69 | | [INFO] [stdout] 70 | | (*DBGMCU).CR |= DBGMCU_CR_DBG_SLEEP | DBGMCU_CR_DBG_STANDBY | DBGMCU_CR_DBG_STOP; [INFO] [stdout] | | --------------------------------------------------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 71 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: naked functions cannot be inlined [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/stm32f401x-69e89748cb05dd42/4d6f240/src/lib.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 30 | #[inline(never)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/stm32f401x-69e89748cb05dd42/4d6f240/src/lib.rs:76:1 [INFO] [stdout] | [INFO] [stdout] 76 | / pub unsafe extern "C" fn zero_bss() { [INFO] [stdout] 77 | | extern "C" { [INFO] [stdout] 78 | | static mut __bss_start__: u32; [INFO] [stdout] 79 | | static mut __bss_end__: u32; [INFO] [stdout] ... | [INFO] [stdout] 82 | | let mut bss: *mut _ = &mut __bss_start__; [INFO] [stdout] | | ----------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 83 | | let ebss: *mut _ = &mut __bss_end__; [INFO] [stdout] | | ------------------------------------ non-asm is unsupported in naked functions [INFO] [stdout] 84 | | [INFO] [stdout] 85 | /| while bss < ebss { [INFO] [stdout] 86 | || ptr::write_volatile(bss, mem::zeroed()); [INFO] [stdout] 87 | || bss = bss.offset(1); [INFO] [stdout] 88 | || } [INFO] [stdout] | ||_____- non-asm is unsupported in naked functions [INFO] [stdout] 89 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: naked functions cannot be inlined [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/stm32f401x-69e89748cb05dd42/4d6f240/src/lib.rs:75:1 [INFO] [stdout] | [INFO] [stdout] 75 | #[inline(never)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/stm32f401x-69e89748cb05dd42/4d6f240/src/lib.rs:94:1 [INFO] [stdout] | [INFO] [stdout] 94 | / pub unsafe extern "C" fn init_data() { [INFO] [stdout] 95 | | extern "C" { [INFO] [stdout] 96 | | static mut __data_start__: u32; [INFO] [stdout] 97 | | static mut __data_end__: u32; [INFO] [stdout] ... | [INFO] [stdout] 102 | | let mut data: *mut _ = &mut __data_start__; [INFO] [stdout] | | ------------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 103 | | let edata: *mut _ = &mut __data_end__; [INFO] [stdout] | | -------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 104 | | let mut sidata: *mut _ = &mut __etext; [INFO] [stdout] | | -------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 105 | | [INFO] [stdout] 106 | /| while data < edata { [INFO] [stdout] 107 | || ptr::write(data, ptr::read(sidata)); [INFO] [stdout] 108 | || data = data.offset(1); [INFO] [stdout] 109 | || sidata = sidata.offset(1); [INFO] [stdout] 110 | || } [INFO] [stdout] | ||_____- non-asm is unsupported in naked functions [INFO] [stdout] 111 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: naked functions cannot be inlined [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/stm32f401x-69e89748cb05dd42/4d6f240/src/lib.rs:93:1 [INFO] [stdout] | [INFO] [stdout] 93 | #[inline(never)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/stm32f401x-69e89748cb05dd42/4d6f240/src/lib.rs:120:1 [INFO] [stdout] | [INFO] [stdout] 120 | / pub unsafe extern "C" fn reset_handler() -> ! { [INFO] [stdout] 121 | | zero_bss(); [INFO] [stdout] | | ----------- non-asm is unsupported in naked functions [INFO] [stdout] 122 | | init_data(); [INFO] [stdout] | | ------------ non-asm is unsupported in naked functions [INFO] [stdout] 123 | | system_init(); [INFO] [stdout] | | -------------- non-asm is unsupported in naked functions [INFO] [stdout] 124 | | main() [INFO] [stdout] | | ------ non-asm is unsupported in naked functions [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/stm32f401x-69e89748cb05dd42/4d6f240/src/lib.rs:131:1 [INFO] [stdout] | [INFO] [stdout] 131 | / pub unsafe extern "C" fn default_handler() -> ! { [INFO] [stdout] 132 | | loop {} [INFO] [stdout] | | ------- non-asm is unsupported in naked functions [INFO] [stdout] 133 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0787`. [INFO] [stdout] [INFO] [stderr] error: could not compile `stm32f401x` due to 12 previous errors [INFO] running `Command { std: "docker" "inspect" "a6fe6651969f2db487e4bd0ab3349832df948b3608f8d851656e65b74f4fa551", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a6fe6651969f2db487e4bd0ab3349832df948b3608f8d851656e65b74f4fa551", kill_on_drop: false }` [INFO] [stdout] a6fe6651969f2db487e4bd0ab3349832df948b3608f8d851656e65b74f4fa551