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
Moderator please delete this post.
hello 5.18.14-1-ck-generic-v3 I have lost a bluetooth in this release.
fixed in 5.18.16 thanks
Last edited by Kremix (2022-08-04 22:17:33)
Offline
Nvidia-dkms dont work/dont build any modules for latest linux-ck because of:
MODPOST /var/lib/dkms/nvidia/515.65.01/build/Module.symvers
CC [M] /var/lib/dkms/nvidia/515.65.01/build/nvidia-modeset.mod.o
CC [M] /var/lib/dkms/nvidia/515.65.01/build/nvidia-drm.mod.o
CC [M] /var/lib/dkms/nvidia/515.65.01/build/nvidia-peermem.mod.o
CC [M] /var/lib/dkms/nvidia/515.65.01/build/nvidia-uvm.mod.o
CC [M] /var/lib/dkms/nvidia/515.65.01/build/nvidia.mod.o
LD [M] /var/lib/dkms/nvidia/515.65.01/build/nvidia-drm.ko
LD [M] /var/lib/dkms/nvidia/515.65.01/build/nvidia-peermem.ko
LD [M] /var/lib/dkms/nvidia/515.65.01/build/nvidia.ko
LD [M] /var/lib/dkms/nvidia/515.65.01/build/nvidia-uvm.ko
BTF [M] /var/lib/dkms/nvidia/515.65.01/build/nvidia-peermem.ko
LD [M] /var/lib/dkms/nvidia/515.65.01/build/nvidia-modeset.ko
BTF [M] /var/lib/dkms/nvidia/515.65.01/build/nvidia-drm.ko
BTF [M] /var/lib/dkms/nvidia/515.65.01/build/nvidia-modeset.ko
/bin/sh: Zeile 1: ./tools/bpf/resolve_btfids/resolve_btfids: Datei oder Verzeichnis nicht gefunden
make[3]: *** [scripts/Makefile.modfinal:61: /var/lib/dkms/nvidia/515.65.01/build/nvidia-peermem.ko] Fehler 127
make[3]: *** Datei „/var/lib/dkms/nvidia/515.65.01/build/nvidia-peermem.ko“ wird gelöscht
make[3]: *** Es wird auf noch nicht beendete Prozesse gewartet....
/bin/sh: Zeile 1: ./tools/bpf/resolve_btfids/resolve_btfids: Datei oder Verzeichnis nicht gefunden
make[3]: *** [scripts/Makefile.modfinal:61: /var/lib/dkms/nvidia/515.65.01/build/nvidia-modeset.ko] Fehler 127
make[3]: *** Datei „/var/lib/dkms/nvidia/515.65.01/build/nvidia-modeset.ko“ wird gelöscht
/bin/sh: Zeile 1: ./tools/bpf/resolve_btfids/resolve_btfids: Datei oder Verzeichnis nicht gefunden
make[3]: *** [scripts/Makefile.modfinal:61: /var/lib/dkms/nvidia/515.65.01/build/nvidia-drm.ko] Fehler 127
make[3]: *** Datei „/var/lib/dkms/nvidia/515.65.01/build/nvidia-drm.ko“ wird gelöscht
BTF [M] /var/lib/dkms/nvidia/515.65.01/build/nvidia-uvm.ko
BTF [M] /var/lib/dkms/nvidia/515.65.01/build/nvidia.ko
/bin/sh: Zeile 1: ./tools/bpf/resolve_btfids/resolve_btfids: Datei oder Verzeichnis nicht gefunden
make[3]: *** [scripts/Makefile.modfinal:61: /var/lib/dkms/nvidia/515.65.01/build/nvidia.ko] Fehler 127
make[3]: *** Datei „/var/lib/dkms/nvidia/515.65.01/build/nvidia.ko“ wird gelöscht
/bin/sh: Zeile 1: ./tools/bpf/resolve_btfids/resolve_btfids: Datei oder Verzeichnis nicht gefunden
make[3]: *** [scripts/Makefile.modfinal:61: /var/lib/dkms/nvidia/515.65.01/build/nvidia-uvm.ko] Fehler 127
make[3]: *** Datei „/var/lib/dkms/nvidia/515.65.01/build/nvidia-uvm.ko“ wird gelöscht
make[2]: *** [scripts/Makefile.modpost:140: __modpost] Fehler 2
make[1]: *** [Makefile:1753: modules] Fehler 2
make[1]: Verzeichnis „/usr/lib/modules/5.18.16-1-ck/build“ wird verlassen
make: *** [Makefile:82: modules] Fehler 2
Offline
5.19 released
Offline
5.19 released
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Do you know/heard if your patch set works with nvidia-gpus?
Because with the latest version from your repo, or build from aur, dont work properly with nvidia because the module compilation fails on dkms (module compiling for older version, or for linux-zen for example, works).
Offline
Do you have the ck headers package installed?
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Yes.
$ pacman -Q | grep linux-ck
linux-ck 5.18.16-1
linux-ck-headers 5.18.16-1
$
Offline
@tomekk - I am able to build nvidia-dkms with linux-ck:
:: Running post-transaction hooks...
(1/6) Creating system user accounts...
Creating group 'nvidia-persistenced' with GID 143.
Creating user 'nvidia-persistenced' (NVIDIA Persistence Daemon) with UID 143 and GID 143.
(2/6) Reloading system manager configuration...
Skipped: Running in chroot.
(3/6) Reloading device manager configuration...
Skipped: Running in chroot.
(4/6) Arming ConditionNeedsUpdate...
(5/6) Install DKMS modules
==> dkms install --no-depmod nvidia/515.65.01 -k 5.18.16-1-ck
==> depmod 5.18.16-1-ck
(6/6) Reloading system bus configuration...
The build log is 20M but it contains no errors/modules are built:
# ls -lh /var/lib/dkms/nvidia/515.65.01/5.18.16-1-ck/x86_64/module
total 32M
-rw-r--r-- 1 root root 29K Aug 11 12:43 nvidia-drm.ko.zst
-rw-r--r-- 1 root root 30M Aug 11 12:43 nvidia.ko.zst
-rw-r--r-- 1 root root 562K Aug 11 12:43 nvidia-modeset.ko.zst
-rw-r--r-- 1 root root 2.0K Aug 11 12:43 nvidia-peermem.ko.zst
-rw-r--r-- 1 root root 593K Aug 11 12:43 nvidia-uvm.ko.zst
Last edited by graysky (2022-08-11 16:46:06)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Hm thats strange. So im simply unlucky.
Tried again with a fresh build:
loading packages...
warning: linux-ck-5.18.16-1 is up to date -- reinstalling
warning: linux-ck-headers-5.18.16-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Packages (2) linux-ck-5.18.16-1 linux-ck-headers-5.18.16-1
Total Installed Size: 316.16 MiB
Net Upgrade Size: 0.11 MiB
:: Proceed with installation? [Y/n]
(2/2) checking keys in keyring [#######################################################] 100%
(2/2) checking package integrity [#######################################################] 100%
(2/2) loading package files [#######################################################] 100%
(2/2) checking for file conflicts [#######################################################] 100%
(2/2) checking available disk space [#######################################################] 100%
:: Running pre-transaction hooks...
(1/1) Remove upgraded DKMS modules
:: Processing package changes...
(1/2) reinstalling linux-ck [#######################################################] 100%
(2/2) reinstalling linux-ck-headers [#######################################################] 100%
:: Running post-transaction hooks...
(1/3) Updating module dependencies...
(2/3) Install DKMS modules
==> dkms install --no-depmod nvidia/515.65.01 -k 5.18.16-1-ck
Error! Bad return status for module build on kernel: 5.18.16-1-ck (x86_64)
Consult /var/lib/dkms/nvidia/515.65.01/build/make.log for more information.
==> WARNING: `dkms install --no-depmod nvidia/515.65.01 -k 5.18.16-1-ck' exited 10
And the Log:
/var/lib/dkms/nvidia/515.65.01/build/nvidia.prelink.o: warning: objtool: .data+0xa0680: data relocation to !ENDBR: _nv010807rm()+0x0
/var/lib/dkms/nvidia/515.65.01/build/nvidia.prelink.o: warning: objtool: .data+0xa0688: data relocation to !ENDBR: _nv010809rm()+0x0
/var/lib/dkms/nvidia/515.65.01/build/nvidia.prelink.o: warning: objtool: .data+0xa0690: data relocation to !ENDBR: _nv010803rm()+0x0
/var/lib/dkms/nvidia/515.65.01/build/nvidia.prelink.o: warning: objtool: .data+0xa0698: data relocation to !ENDBR: _nv010805rm()+0x0
MODPOST /var/lib/dkms/nvidia/515.65.01/build/Module.symvers
CC [M] /var/lib/dkms/nvidia/515.65.01/build/nvidia-drm.mod.o
CC [M] /var/lib/dkms/nvidia/515.65.01/build/nvidia-modeset.mod.o
CC [M] /var/lib/dkms/nvidia/515.65.01/build/nvidia-peermem.mod.o
CC [M] /var/lib/dkms/nvidia/515.65.01/build/nvidia-uvm.mod.o
CC [M] /var/lib/dkms/nvidia/515.65.01/build/nvidia.mod.o
LD [M] /var/lib/dkms/nvidia/515.65.01/build/nvidia.ko
LD [M] /var/lib/dkms/nvidia/515.65.01/build/nvidia-modeset.ko
LD [M] /var/lib/dkms/nvidia/515.65.01/build/nvidia-peermem.ko
ld: warning: /var/lib/dkms/nvidia/515.65.01/build/nvidia.prelink.o: requires executable stack (because the .note.GNU-stack section is executable)
LD [M] /var/lib/dkms/nvidia/515.65.01/build/nvidia-uvm.ko
LD [M] /var/lib/dkms/nvidia/515.65.01/build/nvidia-drm.ko
BTF [M] /var/lib/dkms/nvidia/515.65.01/build/nvidia-modeset.ko
BTF [M] /var/lib/dkms/nvidia/515.65.01/build/nvidia-peermem.ko
BTF [M] /var/lib/dkms/nvidia/515.65.01/build/nvidia-drm.ko
/bin/sh: line 1: ./tools/bpf/resolve_btfids/resolve_btfids: No such file or directory
make[3]: *** [scripts/Makefile.modfinal:61: /var/lib/dkms/nvidia/515.65.01/build/nvidia-peermem.ko] Error 127
make[3]: *** Deleting file '/var/lib/dkms/nvidia/515.65.01/build/nvidia-peermem.ko'
make[3]: *** Waiting for unfinished jobs....
/bin/sh: line 1: ./tools/bpf/resolve_btfids/resolve_btfids: No such file or directory
make[3]: *** [scripts/Makefile.modfinal:61: /var/lib/dkms/nvidia/515.65.01/build/nvidia-modeset.ko] Error 127
make[3]: *** Deleting file '/var/lib/dkms/nvidia/515.65.01/build/nvidia-modeset.ko'
/bin/sh: line 1: ./tools/bpf/resolve_btfids/resolve_btfids: No such file or directory
make[3]: *** [scripts/Makefile.modfinal:61: /var/lib/dkms/nvidia/515.65.01/build/nvidia-drm.ko] Error 127
make[3]: *** Deleting file '/var/lib/dkms/nvidia/515.65.01/build/nvidia-drm.ko'
BTF [M] /var/lib/dkms/nvidia/515.65.01/build/nvidia-uvm.ko
BTF [M] /var/lib/dkms/nvidia/515.65.01/build/nvidia.ko
/bin/sh: line 1: ./tools/bpf/resolve_btfids/resolve_btfids: No such file or directory
make[3]: *** [scripts/Makefile.modfinal:61: /var/lib/dkms/nvidia/515.65.01/build/nvidia.ko] Error 127
make[3]: *** Deleting file '/var/lib/dkms/nvidia/515.65.01/build/nvidia.ko'
/bin/sh: line 1: ./tools/bpf/resolve_btfids/resolve_btfids: No such file or directory
make[3]: *** [scripts/Makefile.modfinal:61: /var/lib/dkms/nvidia/515.65.01/build/nvidia-uvm.ko] Error 127
make[3]: *** Deleting file '/var/lib/dkms/nvidia/515.65.01/build/nvidia-uvm.ko'
make[2]: *** [scripts/Makefile.modpost:140: __modpost] Error 2
make[1]: *** [Makefile:1753: modules] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.18.16-1-ck/build'
make: *** [Makefile:82: modules] Error 2
So, i simply wait. Didnt know whats wrong, especially with any other Kernel i have installed (mainline, zen, arch) i dont have this problem.
Offline