-
Notifications
You must be signed in to change notification settings - Fork 86
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
KERNEL_CC=clang CC=clang make
#59
Comments
dreirund
changed the title
Sep 15, 2024
CC=clang make
uses gcc
instead of clang
for clang
-built kernel. Build fails with warning: the compiler differs from the one used to build the kernel
and gcc: error: unrecognized argument to ‘-fsanitize=’ option: ‘kcfi’
and gcc: error: unrecognized command-line option ‘-mretpoline-external-thunk’
.KERNEL_CC=clang CC=clang make
uses gcc
instead of clang
for clang
-built kernel. Build fails with warning: the compiler differs from the one used to build the kernel
and gcc: error: unrecognized argument to ‘-fsanitize=’ option: ‘kcfi’
and gcc: error: unrecognized command-line option ‘-mretpoline-external-thunk’
.
stappersg
changed the title
Sep 15, 2024
KERNEL_CC=clang CC=clang make
uses gcc
instead of clang
for clang
-built kernel. Build fails with warning: the compiler differs from the one used to build the kernel
and gcc: error: unrecognized argument to ‘-fsanitize=’ option: ‘kcfi’
and gcc: error: unrecognized command-line option ‘-mretpoline-external-thunk’
.KERNEL_CC=clang CC=clang make
patches welcome |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ahoj,
build for clang-build Linux 6.10.10 fails for me -- make system is trying to use gcc.
I try build as follows:
KERNEL_CC=clang CC=clang make
fails withThe kernel is built with
clang
, but this seems to be ignored.git describe --tags
of the clonedtty0tty
source shows1.2-59-gac540b8
, i.e. at commitac540b8
.Edit: With
dkms
, it works, though.Regards!
The text was updated successfully, but these errors were encountered: