Skip to content

Improvment request: zfs, translate kernel makeFlags to what zfs expects. #408428

Description

@yshui

currently, we pass unchanged kernelModuleMakeFlags directly to zfs's configure script, but this is exactly correct.

zfs expects CC to be the compiler for compiling user space programs, equivalent to HOSTCC for the kernel. and the equivalent for CC would be KERNEL_CC:

https://github.com/openzfs/zfs/blob/e55225be3e2a49488a13e2d5247c071040466dd1/config/kernel.m4#L686-L695

I was trying to build the kernel with unwrapped clang, because of the constant warnings caused by --target. obviously the unwrapped compiler can't compile user space programs, thus zfs configure fails.

Activity

  1. added
    0.kind: enhancement
    on May 19, 2025
  2. added a commit that references this issue on May 19, 2025
    97919f6
  3. added
    2.status: stale
    on Nov 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: enhancement2.status: stale

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions