Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] kernel compile wants previous gcc
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
equaeghe
l33t
l33t


Joined: 22 Feb 2005
Posts: 637

PostPosted: Wed Mar 06, 2019 5:20 pm    Post subject: [solved] kernel compile wants previous gcc Reply with quote

I'm trying to recompile my kernel. However, there was a gcc update since the installation of the sources/previous compile. Now the build process aborts:

Code:
make[4]: *** No rule to make target '/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/stddef.h', needed by '/usr/src/linux-4.19.23-gentoo/tools/objtool/fixdep.o'.  Stop.                           
make[3]: *** [Makefile:43: /usr/src/linux-4.19.23-gentoo/tools/objtool/fixdep-in.o] Error 2
make[2]: *** [/usr/src/linux-4.19.23-gentoo/tools/build/Makefile.include:4: fixdep] Error 2
make[1]: *** [Makefile:63: objtool] Error 2
make: *** [Makefile:1647: tools/objtool] Error 2


I guess I need to update some configuration file. Can anyone tell me what to do? (I did the gcc-config change.)


Last edited by equaeghe on Wed Mar 06, 2019 8:00 pm; edited 1 time in total
Back to top
View user's profile Send private message
Tyler_Durden
Apprentice
Apprentice


Joined: 27 Jul 2004
Posts: 189
Location: Germany

PostPosted: Wed Mar 06, 2019 5:56 pm    Post subject: Re: kernel compile wants previous gcc Reply with quote

equaeghe wrote:
I'm trying to recompile my kernel. However, there was a gcc update since the installation of the sources/previous compile. Now the build process aborts:

Code:
make[4]: *** No rule to make target '/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/stddef.h', needed by '/usr/src/linux-4.19.23-gentoo/tools/objtool/fixdep.o'.  Stop.                           
make[3]: *** [Makefile:43: /usr/src/linux-4.19.23-gentoo/tools/objtool/fixdep-in.o] Error 2
make[2]: *** [/usr/src/linux-4.19.23-gentoo/tools/build/Makefile.include:4: fixdep] Error 2
make[1]: *** [Makefile:63: objtool] Error 2
make: *** [Makefile:1647: tools/objtool] Error 2


I guess I need to update some configuration file. Can anyone tell me what to do? (I did the gcc-config change.)


do a
Code:
make clean
at first to remove all previous generated object files by the older gcc.
_________________
Gentoo 17.1 x86_64
Intel Core i9-9900K
Asus MAXIMUS XI HERO
AMD Radeon 6800XT
64GB DDR4
Samsung SSD 970 EVO Plus 1TB
8x Seagate Archive (SATA-RAID 64TB)
Digital Devices Cine S2 V6.5 DVB Adapter
Back to top
View user's profile Send private message
equaeghe
l33t
l33t


Joined: 22 Feb 2005
Posts: 637

PostPosted: Wed Mar 06, 2019 8:00 pm    Post subject: Re: kernel compile wants previous gcc Reply with quote

Tyler_Durden wrote:
do a
Code:
make clean
at first to remove all previous generated object files by the older gcc.

Thanks, obviously :-)
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