Investigate linker warnings #135828
Labels
A-linkage
Area: linking into static, shared libraries and binaries
A-linkers
Area: linkers... you gotta love linkers
C-tracking-issue
Category: An issue tracking the progress of sth. like the implementation of an RFC
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
#119286 unsilences linker warnings by default, and then promptly silences them again for rust-lang/rust itself. We should investigate and fix them.
So far I have seen the following kinds of warnings:
ignoring duplicate libraries: -lm
on MacOS when running any tests/ui-fulldeps test, and also when building rustc itself for stage 2.ld: cannot export hidden symbol compiler_builtins::int::leading_zeros::__clzdi2::ha6dd05e8d8124fab
when building compiler-builtinsld: cannot export hidden symbol ___llvm_profile_filename
when building tests/ui/issues/issue-85461.rsld: build/x86_64-unknown-linux-gnu/stage1-tools/cg_gcc/mini_core.mini_core.2ab949a2a8595fff-cgu.0.rcgu.o: relocation in read-only section `.rodata.global.c'
andld: creating DT_TEXTREL in a shared object
when building rustc_codegen_gccand they are silenced in these places:
rust/src/bootstrap/src/core/build_steps/test.rs
Lines 1869 to 1872 in 4b4007a
rust/src/bootstrap/src/core/build_steps/test.rs
Lines 3587 to 3588 in 4b4007a
rust/src/bootstrap/src/core/builder/cargo.rs
Line 276 in 4b4007a
@rustbot label S-tracking-issue
The text was updated successfully, but these errors were encountered: