You are not logged in.
Ah, I built with gcc without errors. Thanks for reporting.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
@JacBoTe - Please try again with 5.17.3-2 ... replacement PKGBUILD is on repo-ck http://repo-ck.com/testing/
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
I compiled with clang and got the following error
kernel/sysctl.c:1681:14: error: initializing 'void *' with an expression of type 'const int *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] .extra2 = &ten_thousand, ^~~~~~~~~~~~~ kernel/sysctl.c:1690:14: error: initializing 'void *' with an expression of type 'const int *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] .extra2 = &ten_thousand, ^~~~~~~~~~~~~ 2 errors generated. make[1]: *** [scripts/Makefile.build:288: kernel/sysctl.o] Error 1 make: *** [Makefile:1829: kernel] Error 2 make: *** Waiting for unfinished jobs....
with gcc its warning
kernel/sysctl.c:1681:35: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 1681 | .extra2 = &ten_thousand, | ^ kernel/sysctl.c:1690:35: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 1690 | .extra2 = &ten_thousand,
but I want to use clang for compilation
Maybe this is upstream and not coming from -ck patchset. Have you tried linux package with clang to see if you can reproduce it?
EDIT: I see it's from the patches - ignore me.
Last edited by inglor (2022-04-14 16:14:02)
Offline
@inglor - did you get that error building 5.17.3-2 which I uploaded a few min ago?
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
@inglor - did you get that error building 5.17.3-2 which I uploaded a few min ago?
No, I was replied on the previous msg. I haven't tried building it as I'm not sure how to build with clang
Offline
@graysky: the testing repo has the PKGBUILD and config but not all source files. Where do we find those if one wants to compile it?
Offline
My bad, they are present now.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
FYI - can you build with clang using this PKGBUILD. I did not edit it to work with modprobed-db, just the full set.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
@graysky - Compiled successfully with clang
Offline
@graysky when building with clang the 5.17.3-3 (7adddf4380beaa07703f26d3c99950d078e9e75f) in clean chroot it fails due to missing makedepends:
...
CC [M] drivers/gpu/drm/nouveau/nv84_fence.o
CC [M] drivers/gpu/drm/nouveau/nvc0_fence.o
AR [M] drivers/gpu/drm/nouveau/nouveau.o
LTO [M] drivers/gpu/drm/nouveau/nouveau.lto.o
AR drivers/gpu/built-in.a
AR drivers/built-in.a
GEN .version
CHK include/generated/compile.h
GEN .tmp_initcalls.lds
/usr/bin/env: ‘python3’: No such file or directory
make: *** [Makefile:1155: vmlinux] Error 127
==> ERROR: A failure occurred in build().
Aborting...
Offline
@graysky when building with clang the 5.17.3-3 (7adddf4380beaa07703f26d3c99950d078e9e75f) in clean chroot it fails due to missing makedepends:
... CC [M] drivers/gpu/drm/nouveau/nv84_fence.o CC [M] drivers/gpu/drm/nouveau/nvc0_fence.o AR [M] drivers/gpu/drm/nouveau/nouveau.o LTO [M] drivers/gpu/drm/nouveau/nouveau.lto.o AR drivers/gpu/built-in.a AR drivers/built-in.a GEN .version CHK include/generated/compile.h GEN .tmp_initcalls.lds /usr/bin/env: ‘python3’: No such file or directory make: *** [Makefile:1155: vmlinux] Error 127 ==> ERROR: A failure occurred in build(). Aborting...
makedepends+=(clang llvm lld python)
Offline
Thanks, fixed in 5.17.3-4 just now.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
A bit out of subject here but what is the real benefit of using clang instead of gcc?
Offline
hi
a question: does "clang" honor in the PKGBUILD selected cpu? because "clang" supports LTO for the kernel…
Offline
It should.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
thank you for this really quick answer
Offline