[CLOSED] Problem building kernel 6.9.x with GCC-14

Moderator: Forum moderators

Post Reply
User avatar
peebee
Posts: 1630
Joined: Mon Jul 13, 2020 10:54 am
Location: Worcestershire, UK
Has thanked: 157 times
Been thanked: 713 times
Contact:

[CLOSED] Problem building kernel 6.9.x with GCC-14

Post by peebee »

Slackware Current has recently moved to GCC-14 which has much stricter error checking.... viewtopic.php?t=11473

Kernel 6.9.x fails to build with GCC-14 on Slackware Current - log attached. Problem may be very early in build at line 75:

Creating the kernel headers package
make[1]: *** No rule to make target 'headers_check'. Stop.
make: *** [Makefile:240: __sub-make] Error 2

Any ideas on how to fix or investigate welcomed!

Attachments
k690-gcc14-build.log
(74.35 KiB) Downloaded 17 times

Builder of LxPups, SPups, UPup32s, VoidPups; LXDE, LXQt, Xfce addons; Chromium, Firefox etc. sfs; & Kernels

User avatar
peebee
Posts: 1630
Joined: Mon Jul 13, 2020 10:54 am
Location: Worcestershire, UK
Has thanked: 157 times
Been thanked: 713 times
Contact:

Re: Problem building kernel 6.9.x with GCC-14

Post by peebee »

OK - going to follow the advice at:
https://gcc.gnu.org/gcc-14/porting_to.html

and create a gcc wrapper script /usr/bin/gcc:

Code: Select all

#!/bin/sh
exec /usr/bin/gcc-14.1.0 -fpermissive "$@"

This "reverts" GCC-14 to GCC-13 behaviour so fixes the problem for now..... but should allow kernel-6.9.x to build with GCC-14

Builder of LxPups, SPups, UPup32s, VoidPups; LXDE, LXQt, Xfce addons; Chromium, Firefox etc. sfs; & Kernels

User avatar
rockedge
Site Admin
Posts: 6522
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2733 times
Been thanked: 2615 times
Contact:

Re: Problem building kernel 6.9.x with GCC-14

Post by rockedge »

@peebee While attempting to compile kernel 6.11 as a full real time PREEMPTION kernel with both AUFS and overlayfs, I am seeing the same error no rule to make target 'headers_check' which causes build failure early in the process. Same place as you experienced.

I have run the latest kernel-kit from woof-CE with both AUFS and overlayfs and just overlayfs and both variations fail.

I have tried on gcc version 9+ and 13+ on NoblePup64 (really problematic to compile things on), KLV-vmHost, F96-CE_4 and KLV-Airedale-sr15 all with the same result and error in the same steps on all the attempts across all of the systems.

The AUFS and real time patches are successfully applied. I tried overlayfs only but same results.

User avatar
peebee
Posts: 1630
Joined: Mon Jul 13, 2020 10:54 am
Location: Worcestershire, UK
Has thanked: 157 times
Been thanked: 713 times
Contact:

Re: Problem building kernel 6.9.x with GCC-14

Post by peebee »

rockedge wrote: Fri Nov 01, 2024 4:19 pm

@peebee While attempting to compile kernel 6.11 as a full real time PREEMPTION kernel with both AUFS and overlayfs, I am seeing the same error no rule to make target 'headers_check' which causes build failure early in the process. Same place as you experienced.

I have run the latest kernel-kit from woof-CE with both AUFS and overlayfs and just overlayfs and both variations fail.

I have tried on gcc version 9+ and 13+ on NoblePup64 (really problematic to compile things on), KLV-vmHost, F96-CE_4 and KLV-Airedale-sr15 all with the same result and error in the same steps on all the attempts across all of the systems.

The AUFS and real time patches are successfully applied. I tried overlayfs only but same results.

I have had no problems building 6.9 then 6.10 and now 6.11 since adding -fpermissive to gcc-14 .......... I haven't tried reverting the "hack" to see if the problem still occurs.......

Builder of LxPups, SPups, UPup32s, VoidPups; LXDE, LXQt, Xfce addons; Chromium, Firefox etc. sfs; & Kernels

Post Reply

Return to “Kernels”