You are not logged in.

#3776 2022-04-14 13:27:16

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,645
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

Ah, I built with gcc without errors.  Thanks for reporting.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3777 2022-04-14 16:00:06

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,645
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

@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 packagesZsh and other configs

Offline

#3778 2022-04-14 16:09:46

inglor
Package Maintainer (PM)
Registered: 2008-07-22
Posts: 88

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

JacBoTe wrote:

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

#3779 2022-04-14 16:40:18

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,645
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

@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 packagesZsh and other configs

Offline

#3780 2022-04-14 16:41:35

inglor
Package Maintainer (PM)
Registered: 2008-07-22
Posts: 88

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

graysky wrote:

@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 smile

Offline

#3781 2022-04-14 16:45:43

inglor
Package Maintainer (PM)
Registered: 2008-07-22
Posts: 88

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

@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

#3782 2022-04-14 17:42:50

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,645
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

My bad, they are present now.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3783 2022-04-14 18:27:18

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,645
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

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 packagesZsh and other configs

Offline

#3784 2022-04-15 02:08:22

JacBoTe
Member
Registered: 2022-04-14
Posts: 5

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

@graysky - Compiled successfully with clang

Offline

#3785 2022-04-15 10:05:59

inglor
Package Maintainer (PM)
Registered: 2008-07-22
Posts: 88

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

@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

#3786 2022-04-15 10:51:19

JacBoTe
Member
Registered: 2022-04-14
Posts: 5

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

inglor wrote:

@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

#3787 2022-04-15 11:08:39

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,645
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

Thanks, fixed in 5.17.3-4 just now.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3788 2022-04-15 11:47:13

inglor
Package Maintainer (PM)
Registered: 2008-07-22
Posts: 88

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

A bit out of subject here but what is the real benefit of using clang instead of gcc?

Offline

#3789 2022-05-31 08:21:06

brikler
Member
Registered: 2020-01-20
Posts: 4

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

hi smile

a question: does "clang" honor in the PKGBUILD selected cpu? because "clang" supports LTO for the kernel…

Offline

#3790 2022-05-31 09:52:07

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,645
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

It should.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3791 2022-05-31 12:09:08

brikler
Member
Registered: 2020-01-20
Posts: 4

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

thank you for this really quick answer smile

Offline

#3792 2022-07-27 22:49:33

Kremix
Member
Registered: 2022-07-27
Posts: 2

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

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

#3793 2022-08-04 16:39:15

tomekk228
Member
Registered: 2020-04-24
Posts: 16

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

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

#3794 2022-08-07 23:30:48

JacBoTe
Member
Registered: 2022-04-14
Posts: 5

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

5.19 released tongue

Offline

#3795 2022-08-08 10:38:21

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,645
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3796 2022-08-10 14:32:02

tomekk228
Member
Registered: 2020-04-24
Posts: 16

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

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

#3797 2022-08-10 17:28:29

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,645
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

Do you have the ck headers package installed?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3798 2022-08-11 16:22:42

tomekk228
Member
Registered: 2020-04-24
Posts: 16

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

Yes.

$ pacman -Q | grep linux-ck
linux-ck 5.18.16-1
linux-ck-headers 5.18.16-1
$

Offline

#3799 2022-08-11 16:43:57

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,645
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

@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 packagesZsh and other configs

Offline

#3800 2022-08-12 15:14:16

tomekk228
Member
Registered: 2020-04-24
Posts: 16

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

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

Board footer

Powered by FluxBB