Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerged gcc now i get an error when building kernel [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Majed17
Guru
Guru


Joined: 31 Aug 2011
Posts: 328
Location: Minsk, Belarus

PostPosted: Tue Nov 21, 2017 2:00 pm    Post subject: emerged gcc now i get an error when building kernel [solved] Reply with quote

Peace, the error is pointing to the old gcc, i tried restarting after following the guide after installing gcc.
Code:
make -j3
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  DESCEND  objtool
make[4]: *** No rule to make target '/usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/include/stddef.h', needed by '/usr/src/linux-4.12.12-gentoo/tools/objtool/fixdep.o'.  Stop.
make[3]: *** [Makefile:42: /usr/src/linux-4.12.12-gentoo/tools/objtool/fixdep-in.o] Error 2
make[2]: *** [/usr/src/linux-4.12.12-gentoo/tools/build/Makefile.include:4: fixdep] Error 2
make[1]: *** [Makefile:61: objtool] Error 2
make: *** [Makefile:1640: tools/objtool] Error 2
make: *** Waiting for unfinished jobs....
  CHK     scripts/mod/devicetable-offsets.h

what must I do?
_________________
Seek and you shall find, Knock and it shall be opened, cry and you shall find comfort.


Last edited by Majed17 on Tue Nov 21, 2017 2:18 pm; edited 1 time in total
Back to top
View user's profile Send private message
Majed17
Guru
Guru


Joined: 31 Aug 2011
Posts: 328
Location: Minsk, Belarus

PostPosted: Tue Nov 21, 2017 2:18 pm    Post subject: Reply with quote

Code:
make clean

solved the problem, hope it helps someone.
_________________
Seek and you shall find, Knock and it shall be opened, cry and you shall find comfort.
Back to top
View user's profile Send private message
f1tz
Tux's lil' helper
Tux's lil' helper


Joined: 27 Aug 2020
Posts: 88

PostPosted: Fri Nov 13, 2020 2:24 pm    Post subject: Reply with quote

it just did, thanks a lot.

I had this error pop up after a typo "make && make modules_insta". make clean did the trick!
Back to top
View user's profile Send private message
Majed17
Guru
Guru


Joined: 31 Aug 2011
Posts: 328
Location: Minsk, Belarus

PostPosted: Thu Nov 19, 2020 1:57 pm    Post subject: Reply with quote

i'm so happy to read this after doing prison time ;)
_________________
Seek and you shall find, Knock and it shall be opened, cry and you shall find comfort.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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