Page 1 of 1

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

Posted: Fri May 17, 2024 12:58 pm
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!


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

Posted: Sat May 18, 2024 4:50 pm
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


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

Posted: Fri Nov 01, 2024 4:19 pm
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.


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

Posted: Fri Nov 01, 2024 11:28 pm
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.......