-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Workaround for activating rhel's software collection toolchain #299
Comments
Can |
When running with So, when dkms has both gcc on PATH it finds the correct one, I presume because the newer is first on PATH? probably with #298 will get it always, besides the PATH order |
I see. With #298, you can create a little script to help dkms choose the right toolchain.
Save it to |
This should be solved by adding a
Or calling a specific script shipped along with the module in the Anyway, the specific Red Hat Software Collection enablement mechanism should not be in DKMS. |
On Oracle Linux 8, with its uek kernel (a newer kernel they distribute besides the rhel8 one) dkms will fail to build a driver due to trying to build it using an old gcc, with incompatible flags required by the newer kernel:
This is with a hello world kernel module and this dkms.conf
This could be solved by building it with:
scl enable gcc-toolset-11 -- dkms install -m <driver>/<version> --force
, but that hard to integrate into the package manager. For example, if the dkms module was packaged in an rpm, doingscl enable gcc-toolset-11 -- rpm -i example-dkms.rpm
would also fail, probably because the variables thatscl
set are not set when dkms runs.The
scl enable
command is basically setting some environment variables, extending the$PATH
pointing to the newer binaries, etc. Is there other alternative to make dkms aware of this new tools?The text was updated successfully, but these errors were encountered: