Skip to content

warning: rustc_llvm@0.0.0: Inherited flag "-flto=thin" is not supported by the currently used CC #136338

Open
@Zeckmathederg

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: rustc_llvm@0.0.0: Inherited flag "-flto=thin" is not supported by the currently used CC
warning: rustc_llvm@0.0.0: Inherited flag "-fembed-bitcode=all" is not supported by the currently used CC
warning: rustc_llvm@0.0.0: Inherited flag "-flto=thin" is not supported by the currently used CC
warning: rustc_llvm@0.0.0: Inherited flag "-fembed-bitcode=all" is not supported by the currently used CC
warning: rustc_llvm@0.0.0: Inherited flag "-flto=thin" is not supported by the currently used CC
warning: rustc_llvm@0.0.0: Inherited flag "-fembed-bitcode=all" is not supported by the currently used CC
warning: rustc_llvm@0.0.0: Inherited flag "-flto=thin" is not supported by the currently used CC
warning: rustc_llvm@0.0.0: Inherited flag "-fembed-bitcode=all" is not supported by the currently used CC
warning: rustc_llvm@0.0.0: Inherited flag "-flto=thin" is not supported by the currently used CC
warning: rustc_llvm@0.0.0: Inherited flag "-fembed-bitcode=all" is not supported by the currently used CC
warning: rustc_llvm@0.0.0: Inherited flag "-flto=thin" is not supported by the currently used CC
warning: rustc_llvm@0.0.0: 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

Assignees

Labels

A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-bugCategory: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions