Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Compile error with genkernel 6.12.21
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
sidamos
Apprentice
Apprentice


Joined: 16 Dec 2007
Posts: 249

PostPosted: Sat Apr 26, 2025 2:00 pm    Post subject: [SOLVED] Compile error with genkernel 6.12.21 Reply with quote

I have upgraded my system and then also tried to compile the newest stable 6.12.21 kernel and get a compile error while compiling modules.

The previous kernel 6.12.16 was compiling successfully back then.

# genkernel --microcode --kernel-config=.config --no-clean --makeopts=-j5 all

Quote:

* >> Compiling 6.12.21-gentoo-x86_64 bzImage ...
* >> Compiling 6.12.21-gentoo-x86_64 modules ...

* ERROR: compile_modules(): compile_generic() failed to compile the "modules" target!
* Please consult '/var/log/genkernel.log' for more information and any
* errors that were reported above.


Log: https://paste.gentoo.zip/1d8mop40

Quote:

/bin/sh: line 1: x86_64-pc-linux-gnu-ld: command not found
make[5]: *** [scripts/Makefile.build:425: sound/i2c/other/snd-ak4xxx-adda.o] Error 127
make[4]: *** [scripts/Makefile.build:478: sound/i2c/other] Error 2
make[3]: *** [scripts/Makefile.build:478: sound/i2c] Error 2
make[3]: *** Waiting for unfinished jobs....
LD [M] sound/core/seq/snd-seq.o
/bin/sh: line 1: x86_64-pc-linux-gnu-ld: command not found
make[5]: *** [scripts/Makefile.build:425: sound/core/seq/snd-seq.o] Error 127
make[5]: *** Waiting for unfinished jobs....
LD [M] sound/core/snd.o
/bin/sh: line 1: x86_64-pc-linux-gnu-ld: command not found
make[4]: *** [scripts/Makefile.build:425: sound/core/snd.o] Error 127
make[4]: *** Waiting for unfinished jobs....


# gcc-config -l
[1] x86_64-pc-linux-gnu-14 *

Any help would be greatly appreciated.

Edit:
I just realized that I did "emerge --depclean" in another ssh session while compiling the kernel. Maybe that was not so a good idea. I have now completely logged out and logged in again and am re-running genkernel compile.


Last edited by sidamos on Sat Apr 26, 2025 2:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23359

PostPosted: Sat Apr 26, 2025 2:08 pm    Post subject: Reply with quote

https://paste.gentoo.zip/1d8mop40:
/bin/sh: line 1: x86_64-pc-linux-gnu-ld: command not found
Your binutils appears to be broken. For me, x86_64-pc-linux-gnu-ld --version succeeds. What is the output of binutils-config -l; emerge --info?
Back to top
View user's profile Send private message
sidamos
Apprentice
Apprentice


Joined: 16 Dec 2007
Posts: 249

PostPosted: Sat Apr 26, 2025 2:11 pm    Post subject: Reply with quote

Hu wrote:
For me, x86_64-pc-linux-gnu-ld --version succeeds.

This now also works for me. Please see my edit of the original post and thanks a lot for the super quick reply.

I will report back if the 2nd try succeeds.
Back to top
View user's profile Send private message
sidamos
Apprentice
Apprentice


Joined: 16 Dec 2007
Posts: 249

PostPosted: Sat Apr 26, 2025 2:20 pm    Post subject: Reply with quote

Yes, 2nd try worked. Thanks and sorry for the noise.
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