Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
never seen this building 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
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Tue Dec 26, 2017 2:57 pm    Post subject: never seen this building kernel Reply with quote

with kernel 4.14.9 I get this error after my usual procedure, which
is

cp /proc/config.gz
gunzip config.gz
cp config .config
make silentoldconfig
make -j12

the error is:

Code:
make -j12
  SYSTBL  arch/x86/include/generated/asm/syscalls_32.h
  SYSHDR  arch/x86/include/generated/asm/unistd_32_ia32.h
  SYSHDR  arch/x86/include/generated/asm/unistd_64_x32.h
  SYSTBL  arch/x86/include/generated/asm/syscalls_64.h
  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_32.h
  HOSTCC  scripts/basic/bin2c
  CHK     include/config/kernel.release
  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_64.h
  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_x32.h
  UPD     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  UPD     include/generated/uapi/linux/version.h
  DESCEND  objtool
  HOSTCC   /usr/src/linux-4.14.9-gentoo/tools/objtool/fixdep.o
gcc: fatal error: no input files
compilation terminated.
distcc[1030] ERROR: compile (null) on localhost failed
cat: /usr/src/linux-4.14.9-gentoo/tools/objtool/.fixdep.o.d: No such file or directory
make[4]: *** [/usr/src/linux-4.14.9-gentoo/tools/build/Makefile.build:97: /usr/src/linux-4.14.9-gentoo/tools/objtool/fixdep.o] Error 1
make[3]: *** [Makefile:43: /usr/src/linux-4.14.9-gentoo/tools/objtool/fixdep-in.o] Error 2
make[2]: *** [/usr/src/linux-4.14.9-gentoo/tools/build/Makefile.include:4: fixdep] Error 2
make[1]: *** [Makefile:62: objtool] Error 2
make: *** [Makefile:1629: tools/objtool] Error 2
make: *** Waiting for unfinished jobs....


I don't know but there is a file in linux/tools/build/fixdep.c that may be supposed to build fixdep.o ??? :?

quick edit: this is upgrading from 4.14.8-r1
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


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

PostPosted: Tue Dec 26, 2017 3:11 pm    Post subject: Reply with quote

Probably distcc related, try without.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Tue Dec 26, 2017 3:32 pm    Post subject: Re: never seen this building kernel Reply with quote

albright wrote:

cp /proc/config.gz
gunzip config.gz
cp config .config
make silentoldconfig
make -j12

You can simply that to
Code:
zcat /proc/config.gz >.config
make silentoldconfig
make -j12

However I prefer:
Code:
#!
cd /usr/src/linux
zcat /proc/config.gz >.config
make oldconfig       
make menuconfig
make -j4 && make -j4 modules_install && make -j4 install && echo "Don't forget to update boot loader menu"
emerge @module-rebuild
run as an executable script. If you don't see the message you know it failed.
make oldconfig vs make silentoldconfig gives you a chance to choose to change rather than just taking the defaults. For instance, the default for new drivers is usually "yes" or "M". But I don;t want them in my kernel if I don't have the hardware.
If you don have any other changes, it's easy enough to just quit the menuconfig. I've thought of making it an option but my scripting skills are poor.
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Tue Dec 26, 2017 4:19 pm    Post subject: Reply with quote

thanks jaglover; forgot to re-emerge distcc after upgrading gcc :oops:

also thanks Tony0945 - those are good tips
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Tue Dec 26, 2017 4:31 pm    Post subject: Reply with quote

spoke too soon; even with distcc bin files pointing to the new gcc,
I still get the error

say ... do I need the objc* use flags turned on in gcc ? (never did before but ...)

edit: to make clear, the kernel builds fine (if slowly) with distcc disabled
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Wed Dec 27, 2017 6:33 pm    Post subject: Reply with quote

there's now a bug about this:

https://bugs.gentoo.org/642378

and a simple fix is in the works (the patch for distcc-3.1 just
needs to be applied to later versions)
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
Flav
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2004
Posts: 95
Location: FRANCE /Montpellier

PostPosted: Fri Mar 30, 2018 1:02 pm    Post subject: Reply with quote

Solved with distcc 3.3
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