You are not logged in.

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

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,386
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,386
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
Trusted User (TU)
Registered: 2008-07-22
Posts: 81

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,386
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
Trusted User (TU)
Registered: 2008-07-22
Posts: 81

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
Trusted User (TU)
Registered: 2008-07-22
Posts: 81

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,386
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,386
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: 3

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
Trusted User (TU)
Registered: 2008-07-22
Posts: 81

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: 3

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,386
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
Trusted User (TU)
Registered: 2008-07-22
Posts: 81

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: 2

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,386
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: 2

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

thank you for this really quick answer smile

Offline

Board footer

Powered by FluxBB