Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] kernel asks for old 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
Blind_Sniper
Guru
Guru


Joined: 20 Apr 2018
Posts: 340

PostPosted: Sat Mar 16, 2019 5:49 pm    Post subject: [Solved] kernel asks for old gcc Reply with quote

I have gcc 8.2 installed:
# gcc-config --list-profiles
[1] x86_64-pc-linux-gnu-8.2.0 *

gcc-7.3 was removed after depclean (month or so ago). I performed few system update with current gcc-8.2, but when I trying to compile kernel (I want to add wireless module) I getting this error:

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


Looks like kernel requiers old gcc-7.3
How do I fix this?


Last edited by Blind_Sniper on Sat Mar 16, 2019 7:45 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30914
Location: here

PostPosted: Sat Mar 16, 2019 6:05 pm    Post subject: Reply with quote

You tried with a make clean in kernel?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21631

PostPosted: Sat Mar 16, 2019 6:11 pm    Post subject: Reply with quote

You built that kernel with gcc-7.3.0, so some objects now have a Make dependency on the headers from that version. As fedeliallalinea said, clean out generated files and start fresh. Fortunately, your kernel is also out of date, so you can take this opportunity to upgrade to a newer kernel release.
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3922
Location: Hamburg

PostPosted: Sat Mar 16, 2019 7:10 pm    Post subject: Reply with quote

fedeliallalinea wrote:
You tried with a make clean in kernel?
I'd advice
Code:
make distclean
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6098
Location: Dallas area

PostPosted: Sat Mar 16, 2019 7:23 pm    Post subject: Reply with quote

toralf wrote:
fedeliallalinea wrote:
You tried with a make clean in kernel?
I'd advice
Code:
make distclean



If you're going to do a distclean then save your .config file (unless you want to start the configuration from scratch)
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
Blind_Sniper
Guru
Guru


Joined: 20 Apr 2018
Posts: 340

PostPosted: Sat Mar 16, 2019 7:44 pm    Post subject: Reply with quote

Yes, cleaning old files did the trick
Thanks.
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3922
Location: Hamburg

PostPosted: Sat Mar 16, 2019 7:49 pm    Post subject: Reply with quote

Anon-E-moose wrote:
If you're going to do a distclean then save your .config file (unless you want to start the configuration from scratch)
Indeed I forgot to mention how useful the config option
Code:
CONFIG_IKCONFIG=y
is to use something like
Code:
zcat /proc/config.gz > .config
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