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

dynamic_linking causes linker stderr #17544

Closed
lomirus opened this issue Jan 26, 2025 · 1 comment
Closed

dynamic_linking causes linker stderr #17544

lomirus opened this issue Jan 26, 2025 · 1 comment
Labels
C-Bug An unexpected or incorrect behavior S-Needs-Investigation This issue requires detective work to figure out what's going wrong

Comments

@lomirus
Copy link
Contributor

lomirus commented Jan 26, 2025

Bevy version

0.15.1

Relevant system information

cargo 1.86.0-nightly (cecde95c1 2025-01-24)
macOS 15.2 (Apple M1 Pro)

What you did

[dependencies]
bevy = { version = "0.15.1", features = ["dynamic_linking"] }

What went wrong

$ cargo build
warning: linker stderr: ld: ignoring duplicate libraries: '-lSystem', '-lc', '-lobjc'
  |
  = note: `#[warn(linker_messages)]` on by default

warning: `bevy-3dfv-demo` (bin "bevy-3dfv-demo") generated 1 warning
    Finished `dev` profile [optimized + debuginfo] target(s) in 0.18s
@lomirus lomirus added C-Bug An unexpected or incorrect behavior S-Needs-Triage This issue needs to be labelled labels Jan 26, 2025
@BenjaminBrienen BenjaminBrienen added S-Needs-Investigation This issue requires detective work to figure out what's going wrong and removed S-Needs-Triage This issue needs to be labelled labels Jan 26, 2025
@madsmtm
Copy link
Contributor

madsmtm commented Feb 6, 2025

This was a nightly regression, and was fixed in rust-lang/rust#136098. The warning is harmless.

@lomirus lomirus closed this as completed Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Bug An unexpected or incorrect behavior S-Needs-Investigation This issue requires detective work to figure out what's going wrong
Projects
None yet
Development

No branches or pull requests

3 participants