Skip to content

3rd edition UEFI final build fails #1431

@romanov

Description

@romanov

Hello, my HOST OS is Windows 11 (building from terminal in RustRover, PATH is set)

How to remove BIOS version, i need only UEFI one. Thx

    Blocking waiting for file lock on build directory
   Compiling bootloader v0.11.11
error: failed to run custom build command for `bootloader v0.11.11`                                                                                                                           

Caused by:
  process didn't exit successfully: `C:\Users\Root\RustroverProjects\mos\target\debug\build\bootloader-4bfbfd35f54bd65d\build-script-build` (exit code: 101)
  --- stdout
  cargo:rustc-env=UEFI_BOOTLOADER_PATH=C:\Users\Root\RustroverProjects\mos\target\debug\build\bootloader-29a29ea0090b098b\out\bin\bootloader-x86_64-uefi.efi

  --- stderr
      Blocking waiting for file lock on package cache
      Updating crates.io index
      Blocking waiting for file lock on package cache
      Blocking waiting for file lock on package cache
      Blocking waiting for file lock on package cache
      Blocking waiting for file lock on package cache
      Updating crates.io index
    Installing bootloader-x86_64-uefi v0.11.11
      Blocking waiting for file lock on package cache
      Updating crates.io index
    Installing bootloader-x86_64-bios-stage-3 v0.11.11
      Blocking waiting for file lock on package cache
      Updating crates.io index
    Installing bootloader-x86_64-bios-boot-sector v0.11.11
      Blocking waiting for file lock on package cache
      Updating crates.io index
    Installing bootloader-x86_64-bios-stage-2 v0.11.11
      Blocking waiting for file lock on package cache
      Updating crates.io index
    Installing bootloader-x86_64-bios-stage-4 v0.11.11
      Blocking waiting for file lock on package cache
      Blocking waiting for file lock on package cache
      Updating crates.io index
      Blocking waiting for file lock on package cache
      Blocking waiting for file lock on package cache
      Updating crates.io index
      Blocking waiting for file lock on package cache
      Updating crates.io index
      Blocking waiting for file lock on package cache
  warning: package `atomic-polyfill v0.1.11` in Cargo.lock is yanked in registry `crates-io`, consider running without --locked
  warning: package `critical-section v1.1.1` in Cargo.lock is yanked in registry `crates-io`, consider running without --locked
      Updating crates.io index
      Blocking waiting for file lock on package cache
      Blocking waiting for file lock on package cache
      Blocking waiting for file lock on package cache
      Blocking waiting for file lock on package cache
  warning: package `atomic-polyfill v0.1.11` in Cargo.lock is yanked in registry `crates-io`, consider running without --locked
  warning: package `critical-section v1.1.1` in Cargo.lock is yanked in registry `crates-io`, consider running without --locked
      Updating crates.io index
      Blocking waiting for file lock on package cache
      Blocking waiting for file lock on package cache
      Updating crates.io index
      Blocking waiting for file lock on package cache
      Blocking waiting for file lock on package cache
      Updating crates.io index
      Blocking waiting for file lock on package cache
      Updating crates.io index
      Blocking waiting for file lock on package cache
      Blocking waiting for file lock on package cache
      Updating crates.io index
      Blocking waiting for file lock on package cache
      Blocking waiting for file lock on package cache
      Blocking waiting for file lock on package cache
      Blocking waiting for file lock on package cache
      Blocking waiting for file lock on package cache
      Blocking waiting for file lock on package cache
      Blocking waiting for file lock on package cache
      Blocking waiting for file lock on package cache
      Blocking waiting for file lock on package cache
      Blocking waiting for file lock on package cache
      Blocking waiting for file lock on package cache
      Blocking waiting for file lock on package cache
      Blocking waiting for file lock on package cache
     Compiling compiler_builtins v0.1.160 (C:\Users\Root\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\compiler-builtins\compiler-builtins)
     Compiling core v0.0.0 (C:\Users\Root\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core)
     Compiling bootloader-x86_64-bios-boot-sector v0.11.11
     Compiling compiler_builtins v0.1.160 (C:\Users\Root\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\compiler-builtins\compiler-builtins)
     Compiling core v0.0.0 (C:\Users\Root\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core)
     Compiling bootloader-x86_64-bios-stage-3 v0.11.11
     Compiling compiler_builtins v0.1.160 (C:\Users\Root\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\compiler-builtins\compiler-builtins)
     Compiling core v0.0.0 (C:\Users\Root\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core)
     Compiling bootloader-x86_64-bios-stage-2 v0.11.11
     Compiling compiler_builtins v0.1.160 (C:\Users\Root\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\compiler-builtins\compiler-builtins)
     Compiling core v0.0.0 (C:\Users\Root\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core)
     Compiling proc-macro2 v1.0.63
     Compiling quote v1.0.29
     Compiling unicode-ident v1.0.10
     Compiling autocfg v1.1.0
     Compiling semver v1.0.17
     Compiling syn v1.0.109
     Compiling rustversion v1.0.13
     Compiling serde v1.0.166
     Compiling compiler_builtins v0.1.160 (C:\Users\Root\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\compiler-builtins\compiler-builtins)
     Compiling x86 v0.52.0
     Compiling bootloader_api v0.11.11
     Compiling core v0.0.0 (C:\Users\Root\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core)
     Compiling proc-macro2 v1.0.63
     Compiling autocfg v1.1.0
     Compiling quote v1.0.29
     Compiling lock_api v0.4.10
     Compiling unicode-ident v1.0.10
     Compiling semver v1.0.17
     Compiling rustversion v1.0.13
     Compiling serde v1.0.166
     Compiling x86 v0.52.0
     Compiling bootloader_api v0.11.11
     Compiling lock_api v0.4.10
     Compiling rustc_version v0.4.0
     Compiling bootloader-x86_64-bios-stage-4 v0.11.11
     Compiling heapless v0.7.16
     Compiling syn v2.0.23
     Compiling rustc_version v0.4.0
     Compiling syn v2.0.23
     Compiling heapless v0.7.16
     Compiling serde_derive v1.0.166
     Compiling serde_derive v1.0.166
     Compiling ptr_meta_derive v0.2.0
     Compiling uefi-macros v0.11.0
     Compiling byteorder v1.4.3
     Compiling bootloader-x86_64-bios-common v0.11.11
     Compiling mbr-nostd v0.1.0
     Compiling bootloader-x86_64-bios-common v0.11.11
     Compiling bit_field v0.10.2
     Compiling noto-sans-mono-bitmap v0.1.6
     Compiling scopeguard v1.1.0
     Compiling bitflags v1.3.2
     Compiling bitflags v2.3.3
     Compiling raw-cpuid v10.7.0
     Compiling byteorder v1.4.3
     Compiling rand_core v0.6.4
     Compiling zero v0.1.3
     Compiling volatile v0.4.6
     Compiling hash32 v0.2.1
     Compiling spin v0.9.8
     Compiling conquer-util v0.3.0
     Compiling log v0.4.19
     Compiling stable_deref_trait v1.2.0
     Compiling xmas-elf v0.8.0
     Compiling spinning_top v0.2.5
     Compiling conquer-once v0.3.2
     Compiling x86_64 v0.15.2
     Compiling rand_hc v0.3.2
     Compiling rand v0.8.5
     Compiling ucs2 v0.3.2
     Compiling noto-sans-mono-bitmap v0.2.0
     Compiling ptr_meta v0.2.0
     Compiling ryu v1.0.14
     Compiling scopeguard v1.1.0
     Compiling usize_conversions v0.2.0
     Compiling uefi v0.20.0
      Finished `stage-1` profile [optimized] target(s) in 24.44s
    Installing C:\Users\Root\RustroverProjects\mos\target\debug\build\bootloader-29a29ea0090b098b\out\bin\bootloader-x86_64-bios-boot-sector
     Installed package `bootloader-x86_64-bios-boot-sector v0.11.11` (executable `bootloader-x86_64-bios-boot-sector`)
  warning: be sure to add `C:\Users\Root\RustroverProjects\mos\target\debug\build\bootloader-29a29ea0090b098b\out\bin` to your PATH to be able to run the installed binaries
     Compiling bit_field v0.10.2
     Compiling bitflags v1.3.2
     Compiling raw-cpuid v10.7.0
     Compiling rand_core v0.6.4
     Compiling byteorder v1.4.3
     Compiling bitflags v2.3.3
     Compiling spin v0.9.8
     Compiling stable_deref_trait v1.2.0
     Compiling volatile v0.4.6
     Compiling hash32 v0.2.1
     Compiling conquer-util v0.3.0
     Compiling zero v0.1.3
     Compiling log v0.4.19
     Compiling xmas-elf v0.8.0
     Compiling conquer-once v0.3.2
     Compiling x86_64 v0.15.2
     Compiling rand_hc v0.3.2
  error: linking with `rust-lld` failed: exit code: 1
    |
    = note: "rust-lld" "-flavor" "gnu" "C:\\Users\\Root\\AppData\\Local\\Temp\\rustcl7iHsa\\symbols.o" "<1 object files omitted>" "--as-needed" "-Bstatic" "C:\\Users\\Root\\AppData\\Local\\Te
mp\\cargo-installziZrBT\\i386-code16-stage-2\\stage-2\\deps/{libmbr_nostd-4f28bdb776f3ef2c,libbyteorder-07a504cb7854a4e6,libbootloader_x86_64_bios_common-73522f4682a9e60a,libcore-e9aa2625e13f
3272,libcompiler_builtins-e9d62a198be6fc7a}.rlib" "-L" "C:\\Users\\Root\\AppData\\Local\\Temp\\rustcl7iHsa\\raw-dylibs" "-Bdynamic" "--eh-frame-hdr" "-z" "noexecstack" "-o" "C:\\Users\\Root\\
AppData\\Local\\Temp\\cargo-installziZrBT\\i386-code16-stage-2\\stage-2\\deps\\bootloader_x86_64_bios_stage_2-e1ef31a454c285d3" "--gc-sections" "--strip-debug" "--script=C:\\Users\\Root\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\bootloader-x86_64-bios-stage-2-0.11.11\\stage-2-link.ld"
    = note: some arguments are omitted. use `--verbose` to show all linker arguments
    = note: rust-lld: error: C:\Users\Root\AppData\Local\Temp\cargo-installziZrBT\i386-code16-stage-2\stage-2\deps\bootloader_x86_64_bios_stage_2-e1ef31a454c285d3.bootloader_x86_64_bios_stage
_2.2bf68a734c9ec590-cgu.0.rcgu.o:(function bootloader_x86_64_bios_stage_2::start::hb8fd16bf418d3691: .text._ZN30bootloader_x86_64_bios_stage_25start17hb8fd16bf418d3691E+0x251): relocation R_3
86_16 out of range: 73519 is not in [-32768, 65535]; references section '.bss._ZN111_$LT$bootloader_x86_64_bios_stage_2..disk..DiskAccess$u20$as$u20$bootloader_x86_64_bios_stage_2..disk..Read$GT$10read_exact7TMP_BUF17h069aaa869f5d4b91E'␍
            >>> referenced by bootloader_x86_64_bios_stage_2.2bf68a734c9ec590-cgu.0␍
            ␍
            rust-lld: error: C:\Users\Root\AppData\Local\Temp\cargo-installziZrBT\i386-code16-stage-2\stage-2\deps\bootloader_x86_64_bios_stage_2-e1ef31a454c285d3.bootloader_x86_64_bios_stage
_2.2bf68a734c9ec590-cgu.0.rcgu.o:(function bootloader_x86_64_bios_stage_2::start::hb8fd16bf418d3691: .text._ZN30bootloader_x86_64_bios_stage_25start17hb8fd16bf418d3691E+0x25a): relocation R_3
86_16 out of range: 73521 is not in [-32768, 65535]; references section '.bss._ZN111_$LT$bootloader_x86_64_bios_stage_2..disk..DiskAccess$u20$as$u20$bootloader_x86_64_bios_stage_2..disk..Read$GT$10read_exact7TMP_BUF17h069aaa869f5d4b91E'␍
            >>> referenced by bootloader_x86_64_bios_stage_2.2bf68a734c9ec590-cgu.0␍
            ␍
            rust-lld: error: C:\Users\Root\AppData\Local\Temp\cargo-installziZrBT\i386-code16-stage-2\stage-2\deps\bootloader_x86_64_bios_stage_2-e1ef31a454c285d3.bootloader_x86_64_bios_stage
_2.2bf68a734c9ec590-cgu.0.rcgu.o:(function bootloader_x86_64_bios_stage_2::start::hb8fd16bf418d3691: .text._ZN30bootloader_x86_64_bios_stage_25start17hb8fd16bf418d3691E+0x260): relocation R_3
86_16 out of range: 73527 is not in [-32768, 65535]; references section '.bss._ZN111_$LT$bootloader_x86_64_bios_stage_2..disk..DiskAccess$u20$as$u20$bootloader_x86_64_bios_stage_2..disk..Read$GT$10read_exact7TMP_BUF17h069aaa869f5d4b91E'␍
            >>> referenced by bootloader_x86_64_bios_stage_2.2bf68a734c9ec590-cgu.0␍
            ␍
            rust-lld: error: C:\Users\Root\AppData\Local\Temp\cargo-installziZrBT\i386-code16-stage-2\stage-2\deps\bootloader_x86_64_bios_stage_2-e1ef31a454c285d3.bootloader_x86_64_bios_stage
_2.2bf68a734c9ec590-cgu.0.rcgu.o:(function bootloader_x86_64_bios_stage_2::start::hb8fd16bf418d3691: .text._ZN30bootloader_x86_64_bios_stage_25start17hb8fd16bf418d3691E+0x265): relocation R_3
86_16 out of range: 73540 is not in [-32768, 65535]; references section '.bss._ZN111_$LT$bootloader_x86_64_bios_stage_2..disk..DiskAccess$u20$as$u20$bootloader_x86_64_bios_stage_2..disk..Read$GT$10read_exact7TMP_BUF17h069aaa869f5d4b91E'␍
            >>> referenced by bootloader_x86_64_bios_stage_2.2bf68a734c9ec590-cgu.0␍
            ␍
            rust-lld: error: C:\Users\Root\AppData\Local\Temp\cargo-installziZrBT\i386-code16-stage-2\stage-2\deps\bootloader_x86_64_bios_stage_2-e1ef31a454c285d3.bootloader_x86_64_bios_stage
_2.2bf68a734c9ec590-cgu.0.rcgu.o:(function bootloader_x86_64_bios_stage_2::start::hb8fd16bf418d3691: .text._ZN30bootloader_x86_64_bios_stage_25start17hb8fd16bf418d3691E+0x278): relocation R_3
86_16 out of range: 73522 is not in [-32768, 65535]; references section '.bss._ZN111_$LT$bootloader_x86_64_bios_stage_2..disk..DiskAccess$u20$as$u20$bootloader_x86_64_bios_stage_2..disk..Read$GT$10read_exact7TMP_BUF17h069aaa869f5d4b91E'␍
            >>> referenced by bootloader_x86_64_bios_stage_2.2bf68a734c9ec590-cgu.0␍
            ␍
            rust-lld: error: C:\Users\Root\AppData\Local\Temp\cargo-installziZrBT\i386-code16-stage-2\stage-2\deps\bootloader_x86_64_bios_stage_2-e1ef31a454c285d3.bootloader_x86_64_bios_stage
_2.2bf68a734c9ec590-cgu.0.rcgu.o:(function bootloader_x86_64_bios_stage_2::start::hb8fd16bf418d3691: .text._ZN30bootloader_x86_64_bios_stage_25start17hb8fd16bf418d3691E+0x284): relocation R_3
86_16 out of range: 73525 is not in [-32768, 65535]; references section '.bss._ZN111_$LT$bootloader_x86_64_bios_stage_2..disk..DiskAccess$u20$as$u20$bootloader_x86_64_bios_stage_2..disk..Read$GT$10read_exact7TMP_BUF17h069aaa869f5d4b91E'␍
            >>> referenced by bootloader_x86_64_bios_stage_2.2bf68a734c9ec590-cgu.0␍
            ␍
            rust-lld: error: C:\Users\Root\AppData\Local\Temp\cargo-installziZrBT\i386-code16-stage-2\stage-2\deps\bootloader_x86_64_bios_stage_2-e1ef31a454c285d3.bootloader_x86_64_bios_stage
_2.2bf68a734c9ec590-cgu.0.rcgu.o:(function bootloader_x86_64_bios_stage_2::start::hb8fd16bf418d3691: .text._ZN30bootloader_x86_64_bios_stage_25start17hb8fd16bf418d3691E+0x28f): relocation R_3
86_16 out of range: 73530 is not in [-32768, 65535]; references section '.bss._ZN111_$LT$bootloader_x86_64_bios_stage_2..disk..DiskAccess$u20$as$u20$bootloader_x86_64_bios_stage_2..disk..Read$GT$10read_exact7TMP_BUF17h069aaa869f5d4b91E'␍
            >>> referenced by bootloader_x86_64_bios_stage_2.2bf68a734c9ec590-cgu.0␍
            ␍
            rust-lld: error: C:\Users\Root\AppData\Local\Temp\cargo-installziZrBT\i386-code16-stage-2\stage-2\deps\bootloader_x86_64_bios_stage_2-e1ef31a454c285d3.bootloader_x86_64_bios_stage
_2.2bf68a734c9ec590-cgu.0.rcgu.o:(function bootloader_x86_64_bios_stage_2::start::hb8fd16bf418d3691: .text._ZN30bootloader_x86_64_bios_stage_25start17hb8fd16bf418d3691E+0x2ea): relocation R_3
86_16 out of range: 73544 is not in [-32768, 65535]; references section '.bss._ZN111_$LT$bootloader_x86_64_bios_stage_2..disk..DiskAccess$u20$as$u20$bootloader_x86_64_bios_stage_2..disk..Read$GT$10read_exact7TMP_BUF17h069aaa869f5d4b91E'␍
            >>> referenced by bootloader_x86_64_bios_stage_2.2bf68a734c9ec590-cgu.0␍
            ␍
            rust-lld: error: C:\Users\Root\AppData\Local\Temp\cargo-installziZrBT\i386-code16-stage-2\stage-2\deps\bootloader_x86_64_bios_stage_2-e1ef31a454c285d3.bootloader_x86_64_bios_stage
_2.2bf68a734c9ec590-cgu.0.rcgu.o:(function bootloader_x86_64_bios_stage_2::start::hb8fd16bf418d3691: .text._ZN30bootloader_x86_64_bios_stage_25start17hb8fd16bf418d3691E+0x2f5): relocation R_3
86_16 out of range: 73552 is not in [-32768, 65535]; references section '.bss._ZN111_$LT$bootloader_x86_64_bios_stage_2..disk..DiskAccess$u20$as$u20$bootloader_x86_64_bios_stage_2..disk..Read$GT$10read_exact7TMP_BUF17h069aaa869f5d4b91E'␍
            >>> referenced by bootloader_x86_64_bios_stage_2.2bf68a734c9ec590-cgu.0␍


  error: could not compile `bootloader-x86_64-bios-stage-2` (bin "bootloader-x86_64-bios-stage-2") due to 1 previous error
  error: failed to compile `bootloader-x86_64-bios-stage-2 v0.11.11`, intermediate artifacts can be found at `C:\Users\Root\AppData\Local\Temp\cargo-installziZrBT`.
  To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

  thread '<unnamed>' (5804) panicked at C:\Users\Root\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\bootloader-0.11.11\build.rs:229:9:
  failed to build bios second stage
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

  thread '<unnamed>' (6704) panicked at C:\Users\Root\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\bootloader-0.11.11\build.rs:34:61:
  called `Result::unwrap()` on an `Err` value: Any { .. }
     Compiling rand v0.8.5
     Compiling spinning_top v0.2.5
     Compiling ryu v1.0.14
     Compiling bootloader-boot-config v0.11.11
     Compiling usize_conversions v0.2.0
     Compiling noto-sans-mono-bitmap v0.2.0
     Compiling uart_16550 v0.3.2
     Compiling rsdp v2.0.0
     Compiling serde-json-core v0.5.0
     Compiling bootloader-x86_64-bios-common v0.11.11
     Compiling bootloader-x86_64-common v0.11.11
     Compiling bootloader-x86_64-uefi v0.11.11
     Compiling uart_16550 v0.3.2
     Compiling bootloader-boot-config v0.11.11
     Compiling serde-json-core v0.5.0
     Compiling bootloader-x86_64-common v0.11.11
      Finished `release` profile [optimized] target(s) in 29.48s
    Installing C:\Users\Root\RustroverProjects\mos\target\debug\build\bootloader-29a29ea0090b098b\out\bin\bootloader-x86_64-uefi.efi
     Installed package `bootloader-x86_64-uefi v0.11.11` (executable `bootloader-x86_64-uefi.efi`)
  warning: be sure to add `C:\Users\Root\RustroverProjects\mos\target\debug\build\bootloader-29a29ea0090b098b\out\bin` to your PATH to be able to run the installed binaries

  thread 'main' (18900) panicked at C:\Users\Root\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\bootloader-0.11.11\build.rs:17:29:
  called `Result::unwrap()` on an `Err` value: Any { .. }
      Finished `stage-4` profile [optimized + debuginfo] target(s) in 30.25s
    Installing C:\Users\Root\RustroverProjects\mos\target\debug\build\bootloader-29a29ea0090b098b\out\bin\bootloader-x86_64-bios-stage-4
     Installed package `bootloader-x86_64-bios-stage-4 v0.11.11` (executable `bootloader-x86_64-bios-stage-4`)
  warning: be sure to add `C:\Users\Root\RustroverProjects\mos\target\debug\build\bootloader-29a29ea0090b098b\out\bin` to your PATH to be able to run the installed binaries
      Finished `stage-3` profile [optimized + debuginfo] target(s) in 45.81s
    Installing C:\Users\Root\RustroverProjects\mos\target\debug\build\bootloader-29a29ea0090b098b\out\bin\bootloader-x86_64-bios-stage-3
     Installed package `bootloader-x86_64-bios-stage-3 v0.11.11` (executable `bootloader-x86_64-bios-stage-3`)
  warning: be sure to add `C:\Users\Root\RustroverProjects\mos\target\debug\build\bootloader-29a29ea0090b098b\out\bin` to your PATH to be able to run the installed binaries

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions