Skip to content

Invalid LLVMRustVisibility value! error on cargo build after upgrading from 1.53.0 to 1.54.0 #87933

Closed
@datdenkikniet

Description

@datdenkikniet

After upgrading our toolchains from 1.53.0 to 1.54.0, our bootloader rust crates stopped building.

Instead, the build command produced the error message LLVM ERROR: Invalid LLVMRustVisibility value!.

Code

As these are a closed-source projects I cannot share any code publicly, but it can be shared privately if necessary.

I expected to see this happen: the build to succeed

Instead, this happened: the build failed

Version it worked on

It most recently worked on: Rust 1.53

Version with regression

rustc --version --verbose:

rustc 1.54.0 (a178d0322 2021-07-26)
binary: rustc
commit-hash: a178d0322ce20e33eac124758e837cbd80a6f633
commit-date: 2021-07-26
host: x86_64-unknown-linux-gnu
release: 1.54.0
LLVM version: 12.0.1

Backtrace

The compiler did not crash or produce a backtrace.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.P-highHigh priorityregression-from-stable-to-stablePerformance or correctness regression from one stable version to another.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions