Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"error: undefined symbol: _fltused" is back #479

Closed
VisualEhrmanntraut opened this issue Jul 23, 2022 · 3 comments
Closed

"error: undefined symbol: _fltused" is back #479

VisualEhrmanntraut opened this issue Jul 23, 2022 · 3 comments

Comments

@VisualEhrmanntraut
Copy link

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

@nicholasbishop
Copy link
Contributor

I used cargo bisect-rustc to find where this regressed: rust-lang/rust@ceeb5ad

There is already a revert PR for that change here: rust-lang/rust#99674

So hopefully this issue will be resolved once the revert goes through :)

@nicholasbishop
Copy link
Contributor

Seems to be fixed in latest nightly due to rust-lang/rust#99676.

@thomcc
Copy link
Member

thomcc commented Aug 2, 2022

Sounds like we can close this then.

@thomcc thomcc closed this as completed Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants