Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] linux-5.5.10-gentoo - No rule to make target
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
kdvgent
Guru
Guru


Joined: 29 Sep 2004
Posts: 336
Location: Belgium

PostPosted: Sat Mar 21, 2020 9:16 am    Post subject: [SOLVED] linux-5.5.10-gentoo - No rule to make target Reply with quote

I am using the linux-5.5.10-gentoo kernel.

Today, I wanted to change one parameter in my .config file (from M to Y) but when I tried to compile the kernel, I got the following error:
Quote:
HOSTCC scripts/kconfig/confdata.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --syncconfig Kconfig
CC arch/x86/kernel/asm-offsets.s
CALL scripts/checksyscalls.sh
CALL scripts/atomic/check-atomics.sh
DESCEND objtool
make[4]: *** No rule to make target '/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/include/stddef.h', needed by '/usr/src/linux-5.5.10-gentoo/tools/objtool/fixdep.o'. Stop.
make[3]: *** [Makefile:43: /usr/src/linux-5.5.10-gentoo/tools/objtool/fixdep-in.o] Error 2
make[2]: *** [/usr/src/linux-5.5.10-gentoo/tools/build/Makefile.include:5: fixdep] Error 2
make[1]: *** [Makefile:67: objtool] Error 2
make: *** [Makefile:1796: tools/objtool] Error 2

Since I build the kernel I am using now I synced and updated a number of packages but can this cause such problem? I re-emerged my kernel but that did not help.

Any suggestions?

Many thanks in advance for helping.


Last edited by kdvgent on Sat Mar 21, 2020 9:43 am; edited 1 time in total
Back to top
View user's profile Send private message
kdvgent
Guru
Guru


Joined: 29 Sep 2004
Posts: 336
Location: Belgium

PostPosted: Sat Mar 21, 2020 9:28 am    Post subject: I know the reason but not the cure Reply with quote

Reason:

Since I build the kernel, there was a gcc update (from 9.2.0 to 9.3.0). The old version has been removed from my computer.

But I do not understand why the kernel building process insists on using the old gcc version. I re-emerge libtool but that does not do the trick.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7501
Location: Saint Amant, Acadiana

PostPosted: Sat Mar 21, 2020 9:38 am    Post subject: Reply with quote

Quote:
Any suggestions?

Code:
make clean

_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
kdvgent
Guru
Guru


Joined: 29 Sep 2004
Posts: 336
Location: Belgium

PostPosted: Sat Mar 21, 2020 9:42 am    Post subject: Reply with quote

Jaglover, you made my day.

Thank you very much.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 14957

PostPosted: Sat Mar 21, 2020 4:24 pm    Post subject: Reply with quote

The kernel build recorded a dependency on a file provided by gcc-9.2.0. Cleaning caused it to forget that dependency and recompute, so now it depends on the corresponding file from gcc-9.3.0.
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