Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Cannot make linux-6.14.4-gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
cfgauss
l33t
l33t


Joined: 18 May 2005
Posts: 749
Location: USA

PostPosted: Sun Apr 27, 2025 5:28 pm    Post subject: [SOLVED] Cannot make linux-6.14.4-gentoo Reply with quote

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
View user's profile Send private message
keekkenen
n00b
n00b


Joined: 05 Oct 2024
Posts: 67

PostPosted: Sun Apr 27, 2025 5:50 pm    Post subject: Re: Cannot make linux-6.14.4-gentoo Reply with quote

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
View user's profile Send private message
cfgauss
l33t
l33t


Joined: 18 May 2005
Posts: 749
Location: USA

PostPosted: Sun Apr 27, 2025 7:36 pm    Post subject: Re: Cannot make linux-6.14.4-gentoo Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23407

PostPosted: Sun Apr 27, 2025 7:40 pm    Post subject: Re: Cannot make linux-6.14.4-gentoo Reply with quote

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
View user's profile Send private message
cfgauss
l33t
l33t


Joined: 18 May 2005
Posts: 749
Location: USA

PostPosted: Sun Apr 27, 2025 9:04 pm    Post subject: Reply with quote

Here is make.log.
Here is emerge --info.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23407

PostPosted: Sun Apr 27, 2025 9:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
skellr
l33t
l33t


Joined: 18 Jun 2005
Posts: 997
Location: The Village, Portmeirion

PostPosted: Sun Apr 27, 2025 9:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23407

PostPosted: Sun Apr 27, 2025 10:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
skellr
l33t
l33t


Joined: 18 Jun 2005
Posts: 997
Location: The Village, Portmeirion

PostPosted: Sun Apr 27, 2025 10:40 pm    Post subject: Reply with quote

Hu wrote:
The kernel allows users to set CONFIG_WERROR, if they wish.


Ok, I just ran
Code:
make mrproper
and then
Code:
make menuconfig
,

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
View user's profile Send private message
cfgauss
l33t
l33t


Joined: 18 May 2005
Posts: 749
Location: USA

PostPosted: Sun Apr 27, 2025 10:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5659
Location: Bavaria

PostPosted: Mon Apr 28, 2025 12:51 am    Post subject: Reply with quote

Linus himself wrote:
Quote:
Occasionally, new compiler versions end up enabling new warnings, and it
can take a while before we have them fixed (or the warnings disabled if
that is what it takes), so the config option allows for that situation.

-> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3fe617ccafd6f5bb33c2391d6f4eeb41c1fd0151
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 2311

PostPosted: Mon Apr 28, 2025 8:10 pm    Post subject: Reply with quote

I consider it safe now, or I wouldn't have keyworded it. Just unset CONFIG_WERROR.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum