View previous topic :: View next topic |
Author |
Message |
sidamos Apprentice

Joined: 16 Dec 2007 Posts: 249
|
Posted: Sat Apr 26, 2025 2:00 pm Post subject: [SOLVED] Compile error with genkernel 6.12.21 |
|
|
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 |
|
 |
Hu Administrator

Joined: 06 Mar 2007 Posts: 23359
|
Posted: Sat Apr 26, 2025 2:08 pm Post subject: |
|
|
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 |
|
 |
sidamos Apprentice

Joined: 16 Dec 2007 Posts: 249
|
Posted: Sat Apr 26, 2025 2:11 pm Post subject: |
|
|
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 |
|
 |
sidamos Apprentice

Joined: 16 Dec 2007 Posts: 249
|
Posted: Sat Apr 26, 2025 2:20 pm Post subject: |
|
|
Yes, 2nd try worked. Thanks and sorry for the noise. |
|
Back to top |
|
 |
|