Frogging-Family / linux-tkg

linux-tkg custom kernels
GNU General Public License v2.0
1.33k stars 168 forks source link

error compilation kernel tkg manjaro #855

Closed valfr68 closed 10 months ago

valfr68 commented 10 months ago

Hello, I am on manjaro and I would like compile the kernel tkg pds.

I followed the instructions and I have errors that exits : cd linux-tkg  ✔    ~/linux-tkg    master  makepkg -si  ✔ .---.`.---. /syhhhyso- -osyhhhys/ .syNMdhNNhss/``.---.``/sshNNhdMNys. +sdMh.+MNsssssssssssssssNM+.hMds+ :syNNdhNNhssssssssssssssshNNhdNNys: /ssyhhhysssssssssssssssssyhhhyss/ .ossssssssssssssssssssssssssssso. :sssssssssssssssssssssssssssssssss: /sssssssssssssssssssssssssssssssssss/ Linux-tkg :sssssssssssssoosssssssoosssssssssssss: kernels osssssssssssssoosssssssoossssssssssssso osssssssssssyyyyhhhhhhhyyyyssssssssssso /yyyyyyhhdmmmmNNNNNNNNNNNmmmmdhhyyyyyy/ smmmNNNNNNNNNNNNNNNNNNNNNNNNNNNNNmmms /dNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNd/ :sdNNNNNNNNNNNNNNNNNNNNNNNNNds: -+shdNNNNNNNNNNNNNNNdhs+- .-:///////:-.` -> Defaulting to Archlinux target

-> Which kernel version do you want to install? 0) v6.7-rc4

1) v6.6.4 2) v6.5.13 3) v6.4.16 4) v6.1.65 5) v5.15.141 6) Another (no longer maintained upstream)

Selected: v6.5.13 -> Which CPU sched variant do you want to build/install? -> Project C (pds) / BMQ (bmq) is usually a good balance for gaming. -> Select "cfs" (linux kernel's default) if unsure. 0) CFS (Completely Fair Scheduler) Linux kernel's default for ≤ 6.5 1) EEVDF (Earliest Eligible Virtual Deadline First scheduler) Linux kernel's default for ≥ 6.6 2) Project C / PDS 3) Project C / BMQ 4) TT (TaskType) 5) BORE (Burst-Oriented Response Enhancer) CPU Scheduler 6) BORE (Burst-Oriented Response Enhancer - EEVDF variant) CPU Scheduler

Selected: Project C / PDS Which compiler do you want to use? 0) GCC (recommended) 1) Clang/LLVM

Selected: GCC (recommended) github.com https://github.com/gregkh/linux.git (fetch) github.com https://github.com/gregkh/linux.git (push) torvalds https://github.com/torvalds/linux.git (fetch) torvalds https://github.com/torvalds/linux.git (push) googlesource.com https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable (fetch) googlesource.com https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable (push) kernel.org https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git (fetch) kernel.org https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git (push) torvalds https://github.com/torvalds/linux.git (fetch) torvalds https://github.com/torvalds/linux.git (push) -> Fetching tag: v6.5.13 from mirror kernel.org remote: Enumerating objects: 1, done. remote: Counting objects: 100% (1/1), done. remote: Total 1 (delta 0), reused 1 (delta 0), pack-reused 0 Dépaquetage des objets: 100% (1/1), 807 octets | 807.00 Kio/s, fait. -> Checking out tag: v6.5.13 -> in the work folder: /home/valentin/linux-tkg//linux-src-git Préparation de l'arbre de travail (HEAD détachée 4631960b4) Mise à jour des fichiers: 100% (81115/81115), fait. HEAD est maintenant à 4631960b4 Linux 6.5.13 ==> Création du paquet linux65-tkg-pds 6.5.13-273 (mer. 06 déc. 2023 11:53:45) ==> Vérification des dépendances pour l’exécution… ==> Vérification des dépendances pour la compilation… ==> Récupération des sources… -> 90-cleanup.hook trouvé -> cleanup trouvé -> config.x86_64 trouvé -> minimal-modprobed.db trouvé -> 0001-add-sysctl-to-disallow-unprivileged-CLONE_NEWUSER-by.patch trouvé -> 0002-clear-patches.patch trouvé -> 0003-eevdf.patch trouvé -> 0003-glitched-base.patch trouvé -> 0003-glitched-cfs-additions.patch trouvé -> 0003-glitched-cfs.patch trouvé -> 0004-eevdf-Disable-DELAY_DEQUEUE.patch trouvé -> 0005-glitched-pds.patch trouvé -> 0006-add-acs-overrides_iommu.patch trouvé -> 0007-v6.5-fsync1_via_futex_waitv.patch trouvé -> 0007-v6.5-winesync.patch trouvé -> 0008-6.5-bcachefs.patch trouvé -> 0009-glitched-bmq.patch trouvé -> 0009-glitched-ondemand-bmq.patch trouvé -> 0009-prjc_v6.5-r0.patch trouvé -> 0012-misc-additions.patch trouvé -> 0013-fedora-rpm.patch trouvé -> 0013-optimize_harder_O3.patch trouvé -> 0013-suse-additions.patch trouvé -> 0014-OpenRGB.patch trouvé ==> Validation des fichiers source avec sha256sums… 90-cleanup.hook ... Ignoré cleanup ... Ignoré config.x86_64 ... Ignoré minimal-modprobed.db ... Ignoré 0001-add-sysctl-to-disallow-unprivileged-CLONE_NEWUSER-by.patch ... Ignoré 0002-clear-patches.patch ... Ignoré 0003-eevdf.patch ... Ignoré 0003-glitched-base.patch ... Ignoré 0003-glitched-cfs-additions.patch ... Ignoré 0003-glitched-cfs.patch ... Ignoré 0004-eevdf-Disable-DELAY_DEQUEUE.patch ... Ignoré 0005-glitched-pds.patch ... Ignoré 0006-add-acs-overrides_iommu.patch ... Ignoré 0007-v6.5-fsync1_via_futex_waitv.patch ... Ignoré 0007-v6.5-winesync.patch ... Ignoré 0008-6.5-bcachefs.patch ... Ignoré 0009-glitched-bmq.patch ... Ignoré 0009-glitched-ondemand-bmq.patch ... Ignoré 0009-prjc_v6.5-r0.patch ... Ignoré 0012-misc-additions.patch ... Ignoré 0013-fedora-rpm.patch ... Ignoré 0013-optimize_harder_O3.patch ... Ignoré 0013-suse-additions.patch ... Ignoré 0014-OpenRGB.patch ... Ignoré ==> Extraction des sources… ==> Lancement de prepare()… -> Using Arch patches /home/valentin/linux-tkg/linux-tkg-config/prepare: ligne 618: patch : commande introuvable ==> ERREUR : An error was encountered applying patches. It was logged to the prepare.log.txt file. % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 28874 100 28874 0 0 147k 0 --:--:-- --:--:-- --:--:-- 148k -> Applying graysky's cpu opts patch /home/valentin/linux-tkg/linux-tkg-config/prepare: ligne 618: patch : commande introuvable ==> ERREUR : An error was encountered applying patches. It was logged to the prepare.log.txt file. -> Applying clear linux patches /home/valentin/linux-tkg/linux-tkg-config/prepare: ligne 618: patch : commande introuvable ==> ERREUR : An error was encountered applying patches. It was logged to the prepare.log.txt file. -> Applying glitched base patch /home/valentin/linux-tkg/linux-tkg-config/prepare: ligne 618: patch : commande introuvable ==> ERREUR : An error was encountered applying patches. It was logged to the prepare.log.txt file. -> Skipping patch 0003-glitched-base-nonrt.patch... (unavailable for this kernel version) -> RPM: fixing spec generator /home/valentin/linux-tkg/linux-tkg-config/prepare: ligne 618: patch : commande introuvable ==> ERREUR : An error was encountered applying patches. It was logged to the prepare.log.txt file. -> Applying misc additions patch /home/valentin/linux-tkg/linux-tkg-config/prepare: ligne 618: patch : commande introuvable ==> ERREUR : An error was encountered applying patches. It was logged to the prepare.log.txt file. -> Skipping patch 0001-mm-Support-soft-dirty-flag-reset-for-VA-range.patch... (unavailable for this kernel version) -> Skipping patch 0002-mm-Support-soft-dirty-flag-read-with-reset.patch... (unavailable for this kernel version) -> Applying PDS base patch /home/valentin/linux-tkg/linux-tkg-config/prepare: ligne 618: patch : commande introuvable ==> ERREUR : An error was encountered applying patches. It was logged to the prepare.log.txt file. -> Applying prjc PDS/BMQ agressive ondemand governor patch /home/valentin/linux-tkg/linux-tkg-config/prepare: ligne 618: patch : commande introuvable ==> ERREUR : An error was encountered applying patches. It was logged to the prepare.log.txt file. -> Applying Glitched PDS patch /home/valentin/linux-tkg/linux-tkg-config/prepare: ligne 618: patch : commande introuvable ==> ERREUR : An error was encountered applying patches. It was logged to the prepare.log.txt file. -> Using archlinux's default config file for kernel 6.5 Disable MLX5_CORE for Prjc -> Please select the desired CPU micro-architecture 0) native_amd 1) native_intel 2) generic_cpu 3) generic_cpu2 4) generic_cpu3 5) generic_cpu4 6) k8 7) k8sse3 8) k10 9) barcelona 10) bobcat 11) jaguar 12) bulldozer 13) piledriver 14) steamroller 15) excavator 16) zen 17) zen2 18) zen3 19) zen4 20) mpsc 21) atom 22) core2 23) nehalem 24) westmere 25) bonnell 26) silvermont 27) sandybridge 28) ivybridge 29) haswell 30) broadwell 31) skylake 32) skylakex 33) cannonlake 34) icelake 35) goldmont 36) goldmontplus 37) cascadelake 38) emeraldrapids 39) cooperlake 40) tigerlake 41) sapphirerapids 42) rocketlake 43) alderlake 44) raptorlake 45) meteorlake

Selected: zen2

CPU sched_yield_type - Choose what sort of yield sched_yield will perform.

For (U)PDS
  > 0) No yield.
    Recommended option for gaming - "tkg" default
    1) Yield only to better priority/deadline tasks.
    Could lead to stability issues on some (Intel) platforms
    2) Expire timeslice and recalculate deadline.
    Can be a good option with low rr_interval
Selected: No yield.
    Recommended option for gaming - "tkg" default

sed: impossible de lire ./kernel/sched/alt_core.c: Aucun fichier ou dossier de ce type ==> ERREUR : Une erreur s’est produite dans prepare(). Abandon… -> exit cleanup done

Do you know because that's not work ?

Thanks in advance.

ptr1337 commented 10 months ago

PDS is not supported by the 6.6 Kernel. Use a different scheduler.

Tk-Glitch commented 10 months ago

You need to install the patch package.

valfr68 commented 10 months ago

You need to install the patch package.

How I do ?

valfr68 commented 10 months ago

PDS is not supported by the 6.6 Kernel. Use a different scheduler.

I choose 6.5.13

robson-66 commented 10 months ago

How I do ?

Simply, pacman -Sy patch

valfr68 commented 10 months ago

How I do ?

Simply, pacman -Sy patch

That works, thank you very much :)