"error: undefined symbol: _fltused" is back
cargo build --out-dir Drive/EFI/BOOT/ --release
Compiling bootx v0.1.0 (/Users/visual/Developer/BootX)
error: linking with rust-lld failed: exit status: 1
|
= note: "rust-lld" "-flavor" "link" "/NOLOGO" "/entry:efi_main" "/subsystem:efi_application" "/var/folders/8t/31hks2hx4vvdczdjxfvcp_qc0000gn/T/rustc6KmMXf/symbols.o" "/Users/visual/Developer/BootX/target/x86_64-unknown-uefi/release/deps/bootx64-dfc09ef20fcfbd31.bootx64.1834cb91-cgu.1.rcgu.o" "/LIBPATH:/Users/visual/Developer/BootX/target/x86_64-unknown-uefi/release/deps" "/LIBPATH:/Users/visual/Developer/BootX/target/release/deps" "/LIBPATH:/Users/visual/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-uefi/lib" "/Users/visual/Developer/BootX/target/x86_64-unknown-uefi/release/deps/libcompiler_builtins-37f27dc4bb82ca69.rlib" "/NXCOMPAT" "/LIBPATH:/Users/visual/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/x86_64-unknown-uefi/lib" "/OUT:/Users/visual/Developer/BootX/target/x86_64-unknown-uefi/release/deps/bootx64-dfc09ef20fcfbd31.efi" "/OPT:REF,ICF" "/DEBUG" "/NODEFAULTLIB"
= note: rust-lld: error: undefined symbol: _fltused
>>> referenced by libcompiler_builtins-37f27dc4bb82ca69.rlib(compiler_builtins-37f27dc4bb82ca69.compiler_builtins.9da5cbd1-cgu.13.rcgu.o)
>>> referenced by libcompiler_builtins-37f27dc4bb82ca69.rlib(compiler_builtins-37f27dc4bb82ca69.compiler_builtins.9da5cbd1-cgu.8.rcgu.o)
>>> referenced by libcompiler_builtins-37f27dc4bb82ca69.rlib(compiler_builtins-37f27dc4bb82ca69.compiler_builtins.9da5cbd1-cgu.2.rcgu.o)
error: could not compile bootx due to previous error
I used cargo bisect-rustc to find where this regressed: https://github.com/rust-lang/rust/commit/ceeb5ade201e4181c6d5df2ba96ae5fb2193aadc
There is already a revert PR for that change here: https://github.com/rust-lang/rust/pull/99674
So hopefully this issue will be resolved once the revert goes through :)
Seems to be fixed in latest nightly due to https://github.com/rust-lang/rust/pull/99676.
Sounds like we can close this then.