View previous topic :: View next topic |
Author |
Message |
cfgauss l33t


Joined: 18 May 2005 Posts: 749 Location: USA
|
Posted: Sun Apr 27, 2025 5:28 pm Post subject: [SOLVED] Cannot make linux-6.14.4-gentoo |
|
|
I'm running 6.14.3. When I copy the .config from that to 6.14.4 and make -j33 2>&1|tee /tmp/make.log, then grep error: /tmp/make.log|wc -l gives 65 errors.
Here's the last:
Code: | make[2]: *** [scripts/Makefile.build:465: drivers] Error 2
make[1]: *** [/usr/src/linux-6.14.4-gentoo/Makefile:1996: .] Error 2
make: *** [Makefile:251: __sub-make] Error 2 |
Any debugging hints will be gratefully received.
[SOLVED] Hu points out that gcc-14 works for this kernel so I installed it and used gcc-config to choose it. The make works without error. [/SOLVED]
Last edited by cfgauss on Sun Apr 27, 2025 11:00 pm; edited 1 time in total |
|
Back to top |
|
 |
keekkenen n00b

Joined: 05 Oct 2024 Posts: 67
|
Posted: Sun Apr 27, 2025 5:50 pm Post subject: Re: Cannot make linux-6.14.4-gentoo |
|
|
cfgauss wrote: | I'm running 6.14.3. When I copy the .config from that to 6.14.4 and make -j33 2>&1|tee /tmp/make.log, then grep error: /tmp/make.log|wc -l gives 65 errors.
Here's the last:
Code: | make[2]: *** [scripts/Makefile.build:465: drivers] Error 2
make[1]: *** [/usr/src/linux-6.14.4-gentoo/Makefile:1996: .] Error 2
make: *** [Makefile:251: __sub-make] Error 2 |
Any debugging hints will be gratefully received. |
Maybe you forgot run command 'make oldconfig' for tune new kernel options before make kernel. _________________ 7950x3d / x670e MSI Tomagawk / Sapphire RX 7800XT 16Gb / G.Skill 64Gb 5600 / A-Data Legend 960 2Tb (x2), A-Data SX8200PNP 256Gb |
|
Back to top |
|
 |
cfgauss l33t


Joined: 18 May 2005 Posts: 749 Location: USA
|
Posted: Sun Apr 27, 2025 7:36 pm Post subject: Re: Cannot make linux-6.14.4-gentoo |
|
|
keekkenen wrote: | Maybe you forgot run command 'make oldconfig' for tune new kernel options before make kernel. |
I did make oldconfig. My usual process is to copy the old .config from the prior running kernel, then make config and make. This is the first time that process has failed. |
|
Back to top |
|
 |
Hu Administrator

Joined: 06 Mar 2007 Posts: 23407
|
Posted: Sun Apr 27, 2025 7:40 pm Post subject: Re: Cannot make linux-6.14.4-gentoo |
|
|
cfgauss wrote: | grep error: /tmp/make.log|wc -l | This could be simplified to grep -c error: /tmp/make.log. cfgauss wrote: | Here's the last:
Code: | make[2]: *** [scripts/Makefile.build:465: drivers] Error 2
make[1]: *** [/usr/src/linux-6.14.4-gentoo/Makefile:1996: .] Error 2
make: *** [Makefile:251: __sub-make] Error 2 |
Any debugging hints will be gratefully received. | This tells us that an error occurred building something in the drivers directory. If you need more specific help, then you need to give us something with which we can work. Start by showing us all the errors, and the output of emerge --info (so we can see toolchain versions). |
|
Back to top |
|
 |
cfgauss l33t


Joined: 18 May 2005 Posts: 749 Location: USA
|
Posted: Sun Apr 27, 2025 9:04 pm Post subject: |
|
|
Here is make.log.
Here is emerge --info. |
|
Back to top |
|
 |
Hu Administrator

Joined: 06 Mar 2007 Posts: 23407
|
Posted: Sun Apr 27, 2025 9:32 pm Post subject: |
|
|
This appears to be the same error that was reported in [SOLVED] linux-6.14.4-gentoo compile error. Do not use gcc-15 to build kernel sources that were released before gcc-15 was released. Also, I expect that if you tried to rebuild the older kernel with gcc-15, you would get a failure there, too. |
|
Back to top |
|
 |
skellr l33t


Joined: 18 Jun 2005 Posts: 997 Location: The Village, Portmeirion
|
Posted: Sun Apr 27, 2025 9:54 pm Post subject: |
|
|
cfgauss wrote: | Here is make.log.
Here is emerge --info. |
Quote: | cc1: all warnings being treated as errors |
I don't know why this is happening?
Why is the kernel CONFIG_WERROR enabled? Has it always been enabled and gcc-15 is more strict about things?
6.14.4 compiles fine for me with gcc-15 and CONFIG_WERROR disabled. Am I just sticking my head in the sand by disabling CONFIG_WERROR?
I'm not in the position to whip up patches to "fix" warnings, why even bother looking at them? |
|
Back to top |
|
 |
Hu Administrator

Joined: 06 Mar 2007 Posts: 23407
|
Posted: Sun Apr 27, 2025 10:32 pm Post subject: |
|
|
The kernel allows users to set CONFIG_WERROR, if they wish. This is primarily meant for kernel developers, but could be interesting for anyone who wants to work on the kernel. It seems several users have set this option despite not needing it.
Yes, gcc-15 is stricter about some warnings. It is very common for new compiler versions to be stricter than older ones.
If you don't plan to fix the warnings and submit the change, then yes, there is little point in looking at them, and less point in making them be hard errors. |
|
Back to top |
|
 |
skellr l33t


Joined: 18 Jun 2005 Posts: 997 Location: The Village, Portmeirion
|
Posted: Sun Apr 27, 2025 10:40 pm Post subject: |
|
|
Hu wrote: | The kernel allows users to set CONFIG_WERROR, if they wish. |
Ok, I just ran and then ,
CONFIG_WERROR is enabled by default.
I suppose it is a "safe" default to employ.
If i was being paid big bucks to roll out production systems, or as a developer, I might want to explore warnings. But to have them just fail outright by default?
Interesting times. Is it a bug or a feature? |
|
Back to top |
|
 |
cfgauss l33t


Joined: 18 May 2005 Posts: 749 Location: USA
|
Posted: Sun Apr 27, 2025 10:57 pm Post subject: |
|
|
Hu wrote: | Do not use gcc-15 to build kernel sources that were released before gcc-15 was released. |
gcc-14 works. Thanks. Is there any way to know when it's "safe" to upgrade to gcc-15? |
|
Back to top |
|
 |
pietinger Moderator

Joined: 17 Oct 2006 Posts: 5659 Location: Bavaria
|
|
Back to top |
|
 |
sam_ Developer


Joined: 14 Aug 2020 Posts: 2311
|
Posted: Mon Apr 28, 2025 8:10 pm Post subject: |
|
|
I consider it safe now, or I wouldn't have keyworded it. Just unset CONFIG_WERROR. |
|
Back to top |
|
 |
|