Skip to content
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

src/driver/linux_resource/kernel_compat.sh fails when ARCH is set to a bogus value in the environment #147

Open
ajschorr opened this issue May 25, 2023 · 0 comments

Comments

@ajschorr
Copy link

Hi,

I happened to attempt to compile with a non-standard value of ARCH set in my environment,
and the build crapped out with this error:

kernel_compat.sh: Kernel build tree is unable to build modules

Here's a reproducer:

sh-5.1$ unset ARCH
sh-5.1$ ./src/driver/linux_resource/kernel_compat.sh -k /usr/src/kernels/5.14.0-115.el9.x86_64 -q > /dev/null && echo GOOD
GOOD
sh-5.1$ ARCH=fubar ./src/driver/linux_resource/kernel_compat.sh -k /usr/src/kernels/5.14.0-115.el9.x86_64 -q > /dev/null && echo GOOD
kernel_compat.sh: Kernel build tree is unable to build modules

Is this a bug or a feature? It seems at the very least a bit confusing that builds are vulnerable
to failing like this. Is this documented somewhere?

Regards,
Andy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant