mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [tip:objtool/core 3/8] <stdin>:1:10: fatal error: libelf.h: No such file or directory
@ 2023-02-03 22:42 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-02-03 22:42 UTC (permalink / raw)
  To: Ian Rogers; +Cc: oe-kbuild-all, linux-kernel, x86, Josh Poimboeuf

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git objtool/core
head:   391e6d2abd652b460d9017b2f8a8ded508c09558
commit: 93eacc15687a491a9cf829f94b6891bf544084f3 [3/8] objtool: Fix HOSTCC flag usage
config: powerpc-allmodconfig (https://download.01.org/0day-ci/archive/20230204/202302040614.HtRK9IrP-lkp@intel.com/config)
compiler: powerpc-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=93eacc15687a491a9cf829f94b6891bf544084f3
        git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
        git fetch --no-tags tip objtool/core
        git checkout 93eacc15687a491a9cf829f94b6891bf544084f3
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=powerpc olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=powerpc prepare

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> <stdin>:1:10: fatal error: libelf.h: No such file or directory
   compilation terminated.
   scripts/genksyms/parse.y: warning: 9 shift/reduce conflicts [-Wconflicts-sr]
   scripts/genksyms/parse.y: warning: 5 reduce/reduce conflicts [-Wconflicts-rr]
   scripts/genksyms/parse.y: note: rerun with option '-Wcounterexamples' to generate conflict counterexamples
   elf.c: In function 'read_sections':
   elf.c:273:9: error: 'elf_getshnum' is deprecated [-Werror=deprecated-declarations]
     273 |         if (elf_getshdrnum(elf->elf, &sections_nr)) {
         |         ^~
   In file included from /usr/include/gelf.h:32,
                    from tools/objtool/include/objtool/elf.h:10,
                    from elf.c:22:
   /usr/include/libelf.h:310:12: note: declared here
     310 | extern int elf_getshnum (Elf *__elf, size_t *__dst)
         |            ^~~~~~~~~~~~
   elf.c:278:9: error: 'elf_getshstrndx' is deprecated [-Werror=deprecated-declarations]
     278 |         if (elf_getshdrstrndx(elf->elf, &shstrndx)) {
         |         ^~
   /usr/include/libelf.h:322:12: note: declared here
     322 | extern int elf_getshstrndx (Elf *__elf, size_t *__dst)
         |            ^~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors
   make[4]: *** [tools/build/Makefile.build:96: tools/objtool/elf.o] Error 1
   make[4]: *** Waiting for unfinished jobs....
   make[3]: *** [Makefile:66: tools/objtool/objtool-in.o] Error 2
   make[2]: *** [Makefile:73: objtool] Error 2
   make[1]: *** [Makefile:1439: tools/objtool] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:242: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-03 22:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-03 22:42 [tip:objtool/core 3/8] <stdin>:1:10: fatal error: libelf.h: No such file or directory kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®