Skip to content

LLVM ERROR: Attributes 'readnone and readonly' are incompatible! #24713

Closed
@TyOverby

Description

@TyOverby

When I use cargo to set [profile.dev] to use opt-level = 1, cargo build fails with this error. Any other opt-level and it's fine.

Attributes 'readnone and readonly' are incompatible!
void ({ i8*, void (i8*)** }*, { i8*, void (i8*)** }*)* @"_ZN25Box$LT$CloneAny$GT$.Clone5clone20hea41b2e97e38689bjhaE"
LLVM ERROR: Broken function found, compilation aborted!

The project that I'm getting this error on is private for now, but it is breaking when compiling typemap v0.2.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions