Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No rule to make target '/usr/lib/gcc/x86_64-pc help[slvd]
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
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1469
Location: Tri-Cities, WA USA

PostPosted: Mon Jan 02, 2023 3:38 pm    Post subject: No rule to make target '/usr/lib/gcc/x86_64-pc help[slvd] Reply with quote

I was updating my kernels on two different systems and I got this error:

Code:


make && make modules_install
  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/11.3.0/include/stddef.h', needed by '/usr/src/linux-5.15.80-gentoo/tools/objtool/fixdep.o'.  Stop.
make[3]: *** [Makefile:47: /usr/src/linux-5.15.80-gentoo/tools/objtool/fixdep-in.o] Error 2
make[2]: *** [/usr/src/linux-5.15.80-gentoo/tools/build/Makefile.include:5: fixdep] Error 2
make[1]: *** [Makefile:69: objtool] Error 2
make: *** [Makefile:1403: tools/objtool] Error 2


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

uname -a
Linux yoda 5.15.80-gentoo #1 SMP Wed Nov 30 11:51:30 PST 2022 x86_64 Intel(R) Core(TM) i7-3930K CPU @ 3.20GHz GenuineIntel GNU/Linux
_________________
Without diversity there can be no evolution:)


Last edited by cwc on Mon Jan 02, 2023 7:07 pm; edited 1 time in total
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2949

PostPosted: Mon Jan 02, 2023 4:17 pm    Post subject: Reply with quote

Updating as in new version, or modifying it? I assume latter given your uname is same version. Try to make clean, seeing how it's looking for gcc-11.3.0 when we use 11.3.1 now, it's probably still configured to use old gcc and is confused.

Edit: These issues should be less likely in the future on minor versions given include path was changed from /11.3.x/ to /11/ too.
Back to top
View user's profile Send private message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1469
Location: Tri-Cities, WA USA

PostPosted: Mon Jan 02, 2023 5:52 pm    Post subject: Reply with quote

I did the following after a make menuconfig setting:
[*] Diffie-Hellman operations on retained keys
<*> User-space interface for hash algorithms


make clean
make && make modules_install

So far all is better .
Thank you Ionen {that is an epic username}
_________________
Without diversity there can be no evolution:)
Back to top
View user's profile Send private message
sinanqapudan
Apprentice
Apprentice


Joined: 26 Oct 2004
Posts: 235
Location: Milan

PostPosted: Mon Jan 16, 2023 5:15 pm    Post subject: Reply with quote

Precisely same issue here and same solution as well. In my case changes were required by net-wireless/bluez

cwc wrote:
I did the following after a make menuconfig setting:
[*] Diffie-Hellman operations on retained keys
<*> User-space interface for hash algorithms


make clean
make && make modules_install

So far all is better .
Thank you Ionen {that is an epic username}
Back to top
View user's profile Send private message
Lumpy Gravy
n00b
n00b


Joined: 28 Dec 2016
Posts: 45
Location: France

PostPosted: Mon Jan 16, 2023 6:14 pm    Post subject: Reply with quote

Same thing here. make clean did the trick !
Thanks!
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