Skip to content

Can't compile NVIDIA open driver for a LLVM/CLANG compiled kernel #588

Description

@mhalano

I just installed xanmod kernel, which uses clang instead of gcc, and the Nvidia driver doesn't compile.
Here are the logs for the driver compilation: make.log
I think in this case the problem is that LD variable still points to /usr/bin/ld.bfd, even /usr/bin/ld.lld is installed and available.
I found an old PR that set LD to ld.lld when the config file of the kernel shows it was linked using lld. But I saw another more recent PR that replaces it by using LLVM=1, which appears in the make command, but for some reason LD wasn't set to the correct value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions