compiler-builtins icon indicating copy to clipboard operation
compiler-builtins copied to clipboard

"error: undefined symbol: _fltused" is back

Open VisualEhrmanntraut opened this issue 3 years ago • 2 comments

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

VisualEhrmanntraut avatar Jul 23 '22 15:07 VisualEhrmanntraut

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 :)

nicholasbishop avatar Jul 24 '22 17:07 nicholasbishop

Seems to be fixed in latest nightly due to https://github.com/rust-lang/rust/pull/99676.

nicholasbishop avatar Jul 26 '22 02:07 nicholasbishop

Sounds like we can close this then.

thomcc avatar Aug 02 '22 12:08 thomcc