Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
make && make_modules_install gives a bunch of errors
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Scriptod
n00b
n00b


Joined: 05 Sep 2019
Posts: 24

PostPosted: Thu Sep 05, 2019 12:19 am    Post subject: make && make_modules_install gives a bunch of errors Reply with quote

Code:
make && make modules_install


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                                                                                                                                                                 
  CC      kernel/bounds.s                                                                                                                                                                       
  CC      arch/x86/kernel/asm-offsets.s                                                                                                                                                         
  CALL    scripts/checksyscalls.sh                                                                                                                                                             
  DESCEND  objtool                                                                                                                                                                             
In file included from <stdin>:1:
/usr/include/libelf/libelf.h:28:5: error: "__LIBELF_INTERNAL__" is not defined, evaluates to 0 [-Werror=undef]
 #if __LIBELF_INTERNAL__
     ^~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors                                                                                                                                                       
  HOSTCC   /usr/src/linux-4.19.66-gentoo/tools/objtool/fixdep.o                                                                                                                                 
  HOSTLD   /usr/src/linux-4.19.66-gentoo/tools/objtool/fixdep-in.o                                                                                                                             
  LINK     /usr/src/linux-4.19.66-gentoo/tools/objtool/fixdep                                                                                                                                   
  CC       /usr/src/linux-4.19.66-gentoo/tools/objtool/exec-cmd.o                                                                                                                               
  CC       /usr/src/linux-4.19.66-gentoo/tools/objtool/help.o                                                                                                                                   
  CC       /usr/src/linux-4.19.66-gentoo/tools/objtool/pager.o                                                                                                                                 
  CC       /usr/src/linux-4.19.66-gentoo/tools/objtool/parse-options.o
  CC       /usr/src/linux-4.19.66-gentoo/tools/objtool/run-command.o
  CC       /usr/src/linux-4.19.66-gentoo/tools/objtool/sigchain.o
  CC       /usr/src/linux-4.19.66-gentoo/tools/objtool/subcmd-config.o
  LD       /usr/src/linux-4.19.66-gentoo/tools/objtool/libsubcmd-in.o
  AR       /usr/src/linux-4.19.66-gentoo/tools/objtool/libsubcmd.a
  CC       /usr/src/linux-4.19.66-gentoo/tools/objtool/arch/x86/decode.o
In file included from arch/x86/../../elf.h:22,
                 from arch/x86/decode.c:26:
/usr/include/libelf/gelf.h:25:5: error: "__LIBELF_INTERNAL__" is not defined, evaluates to 0 [-Werror=undef]
 #if __LIBELF_INTERNAL__
     ^~~~~~~~~~~~~~~~~~~
In file included from arch/x86/../../elf.h:22,
                 from arch/x86/decode.c:26:
/usr/include/libelf/gelf.h:31:5: error: "__LIBELF_NEED_LINK_H" is not defined, evaluates to 0 [-Werror=undef]
 #if __LIBELF_NEED_LINK_H
     ^~~~~~~~~~~~~~~~~~~~
/usr/include/libelf/gelf.h:33:7: error: "__LIBELF_NEED_SYS_LINK_H" is not defined, evaluates to 0 [-Werror=undef]
 #elif __LIBELF_NEED_SYS_LINK_H
       ^~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
mv: cannot stat '/usr/src/linux-4.19.66-gentoo/tools/objtool/arch/x86/.decode.o.tmp': No such file or directory
make[4]: *** [/usr/src/linux-4.19.66-gentoo/tools/build/Makefile.build:97: /usr/src/linux-4.19.66-gentoo/tools/objtool/arch/x86/decode.o] Error 1
make[3]: *** [/usr/src/linux-4.19.66-gentoo/tools/build/Makefile.build:139: arch/x86] Error 2
make[2]: *** [Makefile:50: /usr/src/linux-4.19.66-gentoo/tools/objtool/objtool-in.o] Error 2
make[1]: *** [Makefile:63: objtool] Error 2
make: *** [Makefile:1646: tools/objtool] Error 2


What can I do with it?
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6480

PostPosted: Thu Sep 05, 2019 1:42 am    Post subject: Reply with quote

Which virtual/libelf and dev-libs/elfutils do you have installed? I don't have a /usr/include/libelf/ on my systems at all.
Back to top
View user's profile Send private message
Scriptod
n00b
n00b


Joined: 05 Sep 2019
Posts: 24

PostPosted: Thu Sep 05, 2019 2:10 am    Post subject: Reply with quote

Ant P. wrote:
Which virtual/libelf and dev-libs/elfutils do you have installed? I don't have a /usr/include/libelf/ on my systems at all.

https://pastebin.com/EE971FeN
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


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

PostPosted: Thu Sep 05, 2019 4:20 am    Post subject: Reply with quote

You should have told us you are using experimental uclibc. Anyhow, 'cc1: all warnings being treated as errors', I'd disable this and see what happens.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
jburns
Veteran
Veteran


Joined: 18 Jan 2007
Posts: 1079
Location: Massachusetts USA

PostPosted: Thu Sep 05, 2019 4:22 am    Post subject: Reply with quote

Try
Code:
emerge virtual/libelf
and then build the kernel.

Edit:
ignore emerge virtual/libelf since it is masked for uclibc-ng.
Is dev-libs/libelf installed?
Back to top
View user's profile Send private message
Mappy
n00b
n00b


Joined: 21 Jun 2019
Posts: 29

PostPosted: Mon Sep 09, 2019 7:30 pm    Post subject: Reply with quote

I had a similar error but it ended up working fine for me in later kernel versions. Have you synced portage recently?

If you're still having the issue with the latest kernel you can try some of the solutions from this thread https://forums.gentoo.org/viewtopic-t-1095778-start-0.html
Both temporarily removing pkgconf and using -Wno-error=undef worked for me. I would recommend the latter.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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