Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Compiling Kernel error
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
skiwarz
Tux's lil' helper
Tux's lil' helper


Joined: 23 Feb 2014
Posts: 128

PostPosted: Fri Nov 02, 2018 3:21 pm    Post subject: [solved] Compiling Kernel error Reply with quote

I'm trying to compile my kernel sources (gentoo-sources-4.14.78), and I'm getting an error immediately upon issuing "make"...
I have gcc-7.3.0 installed and selected via gcc-config. However, it seems that "make" is trying to use gcc-6.4.0. Here's what it spits out:
Code:
  HOSTCC  scripts/basic/fixdep
  HOSTCC  arch/x86/tools/relocs_32.o
  HOSTCC  arch/x86/tools/relocs_64.o
  HOSTCC  arch/x86/tools/relocs_common.o
  HOSTLD  arch/x86/tools/relocs
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CC      kernel/bounds.s
  CHK     include/generated/bounds.h
  CHK     include/generated/timeconst.h
  CC      arch/x86/kernel/asm-offsets.s
  CHK     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  DESCEND  objtool
make[4]: *** No rule to make target '/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/include/stddef.h', needed by '/usr/src/linux-4.14.78-gentoo/tools/objtool/fixdep.o'.  Stop.
make[3]: *** [Makefile:43: /usr/src/linux-4.14.78-gentoo/tools/objtool/fixdep-in.o] Error 2
make[2]: *** [/usr/src/linux-4.14.78-gentoo/tools/build/Makefile.include:4: fixdep] Error 2
make[1]: *** [Makefile:62: objtool] Error 2
make: *** [Makefile:1652: tools/objtool] Error 2


How do I fix this so that it uses my installed compiler?
I've tried unmerging and then re-emerging the gentoo-sources, hoping that a "clean" emerge will set it up for the right compiler, but no joy there.
I've also re-emerged my gcc, binutils, and glibc.


Last edited by skiwarz on Fri Nov 02, 2018 8:20 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21551
Location: here

PostPosted: Fri Nov 02, 2018 3:25 pm    Post subject: Reply with quote

Can help this?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
skiwarz
Tux's lil' helper
Tux's lil' helper


Joined: 23 Feb 2014
Posts: 128

PostPosted: Fri Nov 02, 2018 8:20 pm    Post subject: Reply with quote

fedeliallalinea wrote:
Can help this?

Yep... 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