-
Notifications
You must be signed in to change notification settings - Fork 13.5k
warning: [email protected]: Inherited flag "-flto=thin" is not supported by the currently used CC #136338
Copy link
Copy link
Closed
Labels
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-bugCategory: This is a bug.Category: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Description
On my x86_64-unknown-linux-gnu system when compiling Rustc-1.84.1, I get the following warnings:
Compiling rustc_parse v0.0.0 (/sources/mesa/rustc-1.84.1-src/compiler/rustc_parse)
Compiling rustc_middle v0.0.0 (/sources/mesa/rustc-1.84.1-src/compiler/rustc_middle)
Compiling rustc_ast_passes v0.0.0 (/sources/mesa/rustc-1.84.1-src/compiler/rustc_ast_passes)
Compiling rustc_expand v0.0.0 (/sources/mesa/rustc-1.84.1-src/compiler/rustc_expand)
warning: [email protected]: Inherited flag "-flto=thin" is not supported by the currently used CC
warning: [email protected]: Inherited flag "-fembed-bitcode=all" is not supported by the currently used CC
warning: [email protected]: Inherited flag "-flto=thin" is not supported by the currently used CC
warning: [email protected]: Inherited flag "-fembed-bitcode=all" is not supported by the currently used CC
warning: [email protected]: Inherited flag "-flto=thin" is not supported by the currently used CC
warning: [email protected]: Inherited flag "-fembed-bitcode=all" is not supported by the currently used CC
warning: [email protected]: Inherited flag "-flto=thin" is not supported by the currently used CC
warning: [email protected]: Inherited flag "-fembed-bitcode=all" is not supported by the currently used CC
warning: [email protected]: Inherited flag "-flto=thin" is not supported by the currently used CC
warning: [email protected]: Inherited flag "-fembed-bitcode=all" is not supported by the currently used CC
warning: [email protected]: Inherited flag "-flto=thin" is not supported by the currently used CC
warning: [email protected]: Inherited flag "-fembed-bitcode=all" is not supported by the currently used CC
Compiling rustc_builtin_macros v0.0.0 (/sources/mesa/rustc-1.84.1-src/compiler/rustc_builtin_macros)
Compiling rustc_infer v0.0.0 (/sources/mesa/rustc-1.84.1-src/compiler/rustc_infer)
This occurs a few more times. This seems similar to issue #134657, although that issue involved MSVC, whereas I am using system LLVM-19.1.6 compiled by GCC-14.2.0 on a glibc-2.40 system. From what I understand of the linked issue, these warnings are harmless and have to do with the cc version in Cargo.lock
and other similar files. Rustc compiled just fine and compiles Rust packages fine.
Thanks in advance!
Metadata
Metadata
Assignees
Labels
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-bugCategory: This is a bug.Category: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)