FWIW the kernel can be successfully built with both CONFIG_X86_KERNEL_IBT
and CONFIG_DEBUG_INFO_BTF
in the config like in the Arch kernel by applying this patch: https://lore.kernel.org/bpf/20230418214925.ay3jpf2zhw75kgmd@treble/
Search Criteria
Package Details: linux-mainline-git-headers v6.4.rc1.r0.ac9a78681b92-1
Git Clone URL: | https://aur.archlinux.org/linux-mainline-git.git (read-only, click to copy) |
---|---|
Package Base: | linux-mainline-git |
Description: | Headers and scripts for building modules for the Linus Torvalds' Mainline Linux kernel |
Upstream URL: | https://www.kernel.org |
Licenses: | GPL2 |
Submitter: | osimarr |
Maintainer: | osimarr |
Last Packager: | osimarr |
Votes: | 4 |
Popularity: | 0.61 |
First Submitted: | 2022-03-01 04:10 (UTC) |
Last Updated: | 2023-05-07 21:23 (UTC) |
Dependencies (15)
- pahole (pahole-git)
- bc (bc-gh) (make)
- cpio (cpio-git) (make)
- gettext (gettext-git) (make)
- git (git-vfs, git-run-command-patch-git, git-git, git-fc) (make)
- graphviz (make)
- imagemagick (graphicsmagick-imagemagick-compat, imagemagick-git, imagemagick-full-git, imagemagick-no-hdri, imagemagick-full, imagemagick-fftw) (make)
- libelf (libelf-minimal-git, elfutils-git) (make)
- pahole (pahole-git) (make)
- perl (perl-git) (make)
- python-sphinx (python-sphinx-git, python-sphinx-2) (make)
- python-sphinx_rtd_theme (make)
- tar (tar-parallel, tar-git) (make)
- xmlto (xmlto-git) (make)
- xz (xz-git) (make)
Required by (0)
Sources (6)
Latest Comments
gamezelda commented on 2023-04-24 22:49 (UTC)
osimarr commented on 2023-02-28 04:12 (UTC)
@gamezelda I noticed that, thanks for the report. scripts/setlocalversion was modified on mainline for v6.3. I just updated PKGBUILD to fix the compilation problem.
gamezelda commented on 2023-02-27 20:49 (UTC)
The build is failing at the beginning now due to some changes to setlocalversion
. This is how linux-next-git fixed it:
osimarr commented on 2023-02-22 02:31 (UTC) (edited on 2023-02-22 14:56 (UTC) by osimarr)
@gamezelda thanks for the heads up. I updated PKGBUILD and config to match v6.2-arch1 and while at it, I used your suggestion to disable CONFIG_DEBUG_INFO_BTF on config.extra. I believe we can remove that once pahole package is updated.
@soloturn I'll look into the partial clone and see if there's something I can include in the build scripts.
gamezelda commented on 2023-02-21 20:54 (UTC) (edited on 2023-02-21 21:00 (UTC) by gamezelda)
As of 2023-02-21 20:00:00Z the build is broken with the default Arch packages and default config due to an upstream issue, with the following error after most of the build is done:
btf_encoder__encode: btf__dedup failed!
Current workarounds are to either:
-
Disable
CONFIG_DEBUG_INFO_BTF
in the config, or -
Disable
CONFIG_X86_KERNEL_IBT
in the config (note that this has security implications), or -
Apply this patch over the pahole package: https://lore.kernel.org/bpf/SY4P282MB1084A0E31D4228DF89FC42639DA29@SY4P282MB1084.AUSP282.PROD.OUTLOOK.COM
soloturn commented on 2023-02-07 21:57 (UTC)
we now have flags for the repo cloning which saves quite some bandwith, e.g.:
GITFLAGS="--depth=1" makepkg
GITFLAGS="--depth=1" paru -S linux-mainline
in case the repo supports partial clones, --filter=tree:0
would be an option as well. this then even updates the repo correctly as soon as this is merged:
https://gitlab.archlinux.org/pacman/pacman/-/merge_requests/53
i'd be glad if you could try out your use case and maybe put a comment into the merge request?
osimarr commented on 2022-05-14 06:28 (UTC) (edited on 2022-05-14 06:30 (UTC) by osimarr)
Hey @RealOrRandom. The localversion.* files are needed by the building stage because kernel building scripts will look for those files to set the kernel version in the binary (the version you see with e.g. 'uname -a'). There are 3 files created by the prepare() stage: localversion.10-pkgrel, localversion.20-pkgname, and version. But those 3 files aren't touched by the kernel git tree, which means after you ran prepare() once (e.g. using makepkg -o), you can git bisect, git checkout, git rebase, etc, and the 3 files will remain untouched. Although I'd suggest to run 'make kernelversion > version' before running 'makepkg -e'.
RealOrRandom commented on 2022-05-09 08:32 (UTC)
Hi, thanks for making a new -git
package. Could you move
echo "-$pkgrel" > localversion.10-pkgrel
echo "${pkgbase#linux}" > localversion.20-pkgname
to the _package
functions? This is needed when playing around in the source tree (e.g., checking out other versions) and then running makepkg -e
. I did this change for bisecting a regression in the kernel.
osimarr commented on 2022-03-01 04:17 (UTC)
While we do have another AUR package (linux-git) that follows Linux mainline too, unfortunately it does not update the build script and config file.
osimarr commented on 2022-03-01 04:17 (UTC) (edited on 2023-05-12 03:59 (UTC) by osimarr)
This package has moved to https://aur.archlinux.org/pkgbase/linux-git
I've created this package to follow official Linux mainline from Linus Torvalds' repository. The build script and config file are going to be up-to-date with Arch's official Linux package, unless it's required an update to be functional. But I removed the documentation package on purpose because it consumes too much build time.
Pinned Comments
osimarr commented on 2022-03-01 04:17 (UTC) (edited on 2023-05-12 03:59 (UTC) by osimarr)
This package has moved to https://aur.archlinux.org/pkgbase/linux-git
I've created this package to follow official Linux mainline from Linus Torvalds' repository. The build script and config file are going to be up-to-date with Arch's official Linux package, unless it's required an update to be functional. But I removed the documentation package on purpose because it consumes too much build time.