Closed elcabaye closed 3 months ago
Thank you for the PR!
Please help us understand the root cause of the suggested patch:
CC
so that the patch wants to unset it?CC
come from?These are the first questions I can think of, but could you please provide more relevant information, such as build/DKMS logs, if that would also help?
We came across this issue in RHEL9 and DKMS 3.0.13 so that it brings more clarity, and I can answer my questions above:
CC=gcc
and KERNEL_CC=gcc
, and it triggers the cross-compilation behaviour in Onload.We believe that, ideally, Onload should handle CC=
differently. However, we anticipate that some users rely on Onload to trigger cross-compilation, and we do not want to disrupt their workflow at the moment.
It makes me more comfortable to merge this PR. If it breaks somebody's workflow, this can help us justify the effort to review the Onload build scripts.
When
CC
is set, it appears to switch into cross-compile mode which breaks the DKMS build.