View previous topic :: View next topic |
Author |
Message |
Blind_Sniper Guru
Joined: 20 Apr 2018 Posts: 340
|
Posted: Sat Mar 16, 2019 5:49 pm Post subject: [Solved] kernel asks for old gcc |
|
|
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 |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30914 Location: here
|
Posted: Sat Mar 16, 2019 6:05 pm Post subject: |
|
|
You tried with a make clean in kernel? _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21631
|
Posted: Sat Mar 16, 2019 6:11 pm Post subject: |
|
|
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 |
|
|
toralf Developer
Joined: 01 Feb 2004 Posts: 3922 Location: Hamburg
|
Posted: Sat Mar 16, 2019 7:10 pm Post subject: |
|
|
fedeliallalinea wrote: | You tried with a make clean in kernel? | I'd advice |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6098 Location: Dallas area
|
Posted: Sat Mar 16, 2019 7:23 pm Post subject: |
|
|
toralf wrote: | fedeliallalinea wrote: | You tried with a make clean in kernel? | I'd advice |
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 |
|
|
Blind_Sniper Guru
Joined: 20 Apr 2018 Posts: 340
|
Posted: Sat Mar 16, 2019 7:44 pm Post subject: |
|
|
Yes, cleaning old files did the trick
Thanks. |
|
Back to top |
|
|
toralf Developer
Joined: 01 Feb 2004 Posts: 3922 Location: Hamburg
|
Posted: Sat Mar 16, 2019 7:49 pm Post subject: |
|
|
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 is to use something like Code: | zcat /proc/config.gz > .config |
|
|
Back to top |
|
|
|