Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] GCC-error compiling kernel
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
Martux
Veteran
Veteran


Joined: 04 Feb 2005
Posts: 1917

PostPosted: Mon Jun 20, 2016 6:17 pm    Post subject: [SOLVED] GCC-error compiling kernel Reply with quote

Guys, just trying to change somethin in my kernel, getting this error message, what does it mean? Seems gcc related, just recently updated to 5.4.0, did a fix_libtool_files.sh afterwards...
Code:

scripts/kconfig/conf  --oldconfig Kconfig
#
# configuration written to .config
#
scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  DESCEND  objtool
make[4]: *** Keine Regel vorhanden, um das Ziel „/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include/stddef.h“,
  benötigt von „/usr/src/linux-4.6.2-gentoo/tools/objtool/fixdep.o“, zu erstellen.  Schluss.
make[3]: *** [Makefile:36: /usr/src/linux-4.6.2-gentoo/tools/objtool/fixdep-in.o] Fehler 2
make[2]: *** [/usr/src/linux-4.6.2-gentoo/tools/build/Makefile.include:7: fixdep] Fehler 2
make[1]: *** [Makefile:59: objtool] Fehler 2
make: *** [Makefile:1551: tools/objtool] Fehler 2
make: *** Es wird auf noch nicht beendete Prozesse gewartet....

_________________
"Coincidence is God's way of remaining anonymous."
Albert Einstein
"The road to success is always under construction"


Last edited by Martux on Thu Jun 23, 2016 4:33 am; edited 1 time in total
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7253
Location: almost Mile High in the USA

PostPosted: Mon Jun 20, 2016 6:47 pm    Post subject: Reply with quote

Seems like the makefile is somewhat confused trying to build an include file, perhaps it's due to gcc5... I'm not sure if the kernel was gcc5-ized yet, but anecdotal evidence seems like it should work...

In any case, did you do a make clean in your kernel? Is this a fresh kernel tree?
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Martux
Veteran
Veteran


Joined: 04 Feb 2005
Posts: 1917

PostPosted: Mon Jun 20, 2016 6:49 pm    Post subject: Reply with quote

Naa, I used make menuconfig to implement some changes, then some script I use to install kernels, calling make oldconfig && make && make_modules
_________________
"Coincidence is God's way of remaining anonymous."
Albert Einstein
"The road to success is always under construction"
Back to top
View user's profile Send private message
Martux
Veteran
Veteran


Joined: 04 Feb 2005
Posts: 1917

PostPosted: Mon Jun 20, 2016 6:57 pm    Post subject: Reply with quote

Just checked, doesn't work either if I only call make.
What confuses me is this „/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include/stddef.h“
I am using gcc-5.4.0, not 5.3.0
_________________
"Coincidence is God's way of remaining anonymous."
Albert Einstein
"The road to success is always under construction"
Back to top
View user's profile Send private message
gerard27
Advocate
Advocate


Joined: 04 Jan 2004
Posts: 2377
Location: Netherlands

PostPosted: Mon Jun 20, 2016 7:30 pm    Post subject: Reply with quote

Did you run gcc-config -l?
Gerard.
_________________
To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download
Back to top
View user's profile Send private message
Martux
Veteran
Veteran


Joined: 04 Feb 2005
Posts: 1917

PostPosted: Mon Jun 20, 2016 7:35 pm    Post subject: Reply with quote

Yes, after a gcc update I always check the version and depclean old ones. It only gives this:
Code:

gcc-config -l
 [1] x86_64-pc-linux-gnu-5.4.0 *

_________________
"Coincidence is God's way of remaining anonymous."
Albert Einstein
"The road to success is always under construction"
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 14276

PostPosted: Tue Jun 21, 2016 12:59 am    Post subject: Reply with quote

Martux wrote:
Just checked, doesn't work either if I only call make.
What confuses me is this „/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include/stddef.h“
I am using gcc-5.4.0, not 5.3.0
I suspect that you are using a build tree that recorded the 5.3.0 version of stddef.h as a dependency of some file. When you upgraded to 5.4.0, the 5.3.0 version was removed. Now Make needs 5.3.0 stddef.h (because the build tree requested it), that file does not exist, and there is no way to build it. You could try to modify the build tree to request the 5.4.0 version, but the simplest thing to do would be to clean out all generated files and start over. This will also protect against any oddities from building some files with 5.3.0 and some with 5.4.0. Mixing minor versions should be safe, but do you want to use a production kernel build to test it? ;)

If you decide to clean out the build tree, set aside a copy of your .config, since a full clean will delete it.
Back to top
View user's profile Send private message
Martux
Veteran
Veteran


Joined: 04 Feb 2005
Posts: 1917

PostPosted: Tue Jun 21, 2016 4:39 am    Post subject: Reply with quote

What exactly do you mean by cleaning out the build tree?
Removing /usr/src/linux/ and building it again with the old config file?
Or start with a new default kernel from scratch (I would rather like to avoid that)?
_________________
"Coincidence is God's way of remaining anonymous."
Albert Einstein
"The road to success is always under construction"
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7321
Location: Saint Amant, Acadiana

PostPosted: Tue Jun 21, 2016 10:53 am    Post subject: Reply with quote

Code:
cd /usr/src/linux
make clean

_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 14276

PostPosted: Thu Jun 23, 2016 1:10 am    Post subject: Reply with quote

I was thinking of make mrproper, rather than make clean, since the Makefile comments state:
Code:
# make clean     Delete most generated files
#                Leave enough to build external modules
# make mrproper  Delete the current configuration, and all generated files
# make distclean Remove editor backup files, patch leftover files and the like
Deleting "most" generated files might or might not be enough to solve OP's problem, since it is a problem in the generated dependencies, rather than just a stale object file. Using make clean is fine as a first attempt. It should not cause any new problems, but I am not sure that it will solve the OP's reported problem. Regarding mrproper, I stated this above, but I should reiterate, since losing the last copy of a configuration is very annoying: make mrproper will delete .config, so the user must explicitly save that file aside first.
Back to top
View user's profile Send private message
Martux
Veteran
Veteran


Joined: 04 Feb 2005
Posts: 1917

PostPosted: Thu Jun 23, 2016 4:33 am    Post subject: Reply with quote

"make clean" just worked fine :) I think in all my years with Gentoo, this was the first time I ever used it. With the lost config files, it's always good to have one or two being in /boot as well (make install does that).
_________________
"Coincidence is God's way of remaining anonymous."
Albert Einstein
"The road to success is always under construction"
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7253
Location: almost Mile High in the USA

PostPosted: Thu Jun 23, 2016 2:12 pm    Post subject: Reply with quote

I need to write my posts differently, solution was found 2 days ago :-(
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 14276

PostPosted: Fri Jun 24, 2016 1:03 am    Post subject: Reply with quote

I make it a point to use BBcode to bold commands that I want someone to run, both to make it easier for them to know what to execute and to call attention to the presence of a command. In some cases, it may also help to use an imperative rather than a question: Please run command foo. If that does not help, post the output of bar. rather than Have you tried running foo? Some readers interpret the question form as a speculative suggestion rather than a polite directive.
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