Skip to content

ld.lld: error: unknown argument '--fix-cortex-a53-835769' when trying to compile rust on aarch64 #155116

@bschnei

Description

@bschnei

I'm encountering the error in the title when trying to compile rust with lld 20.1.8 as packaged by Arch on aarch64. I'm using gcc 15.2.1 compiled with --enable-fix-cortex-a53-835769 and --enable-fix-cortex-a53-843419 options.

The --fix-cortex-a53-835769 flag seems to be getting injected at some point in rust's build process and there doesn't appear to be a straightforward way to override it nor the usage of lld instead of another linker that supports this flag.

Per https://lld.llvm.org/, lld is meant to be a drop-in replacement for GNU ld. Also it appears that the work to try to support the fix was actually merged quite some time ago. But perhaps the option was simply never added to lld?

Let me know if there is any other information I can provide. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions