lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220801192016.raoab6wtuimosocg@altlinux.org>
Date:   Mon, 1 Aug 2022 22:20:16 +0300
From:   Vitaly Chikunov <vt@...linux.org>
To:     linux-kernel@...r.kernel.org, Josh Poimboeuf <jpoimboe@...nel.org>,
        Peter Zijlstra <peterz@...radead.org>,
        Miroslav Benes <mbenes@...e.cz>
Cc:     Vitaly Chikunov <vt@...linux.org>,
        "Dmitry V. Levin" <ldv@...linux.org>
Subject: tools/objtool: check.c:11:10: fatal error: arch/elf.h: No such file
 or directory

Hello,

git bisect shows that commit b51277eb9775 ("objtool: Ditch subcommands")
included in v5.19 introduces build failure on aarch64 for tools/objtool:

  builder@...ch64:~/linux/tools$ make clean
  builder@...ch64:~/linux/tools$ make objtool
    DESCEND objtool
  make -C /usr/src/linux/tools/build CFLAGS= LDFLAGS= fixdep
    HOSTCC  fixdep.o
    HOSTLD  fixdep-in.o
    LINK    fixdep
  make -C /usr/src/linux/tools/lib/subcmd/ OUTPUT=/usr/src/linux/tools/objtool/
  make -C /usr/src/linux/tools/build CFLAGS= LDFLAGS= /usr/src/linux/tools/objtool/fixdep
    HOSTCC  /usr/src/linux/tools/objtool/fixdep.o
    HOSTLD  /usr/src/linux/tools/objtool/fixdep-in.o
    LINK    /usr/src/linux/tools/objtool/fixdep
    CC      /usr/src/linux/tools/objtool/exec-cmd.o
    CC      /usr/src/linux/tools/objtool/help.o
    CC      /usr/src/linux/tools/objtool/pager.o
    CC      /usr/src/linux/tools/objtool/parse-options.o
    CC      /usr/src/linux/tools/objtool/run-command.o
    CC      /usr/src/linux/tools/objtool/sigchain.o
    CC      /usr/src/linux/tools/objtool/subcmd-config.o
    LD      /usr/src/linux/tools/objtool/libsubcmd-in.o
    AR      /usr/src/linux/tools/objtool/libsubcmd.a
    LD      arch/arm64/objtool-in.o
    CC      weak.o
    CC      check.o
  check.c:11:10: fatal error: arch/elf.h: No such file or directory
     11 | #include <arch/elf.h>
	|          ^~~~~~~~~~~~
  compilation terminated.
  make[2]: *** [/usr/src/linux/tools/build/Makefile.build:97: check.o] Error 1
  make[1]: *** [Makefile:54: objtool-in.o] Error 2
  make: *** [Makefile:73: objtool] Error 2

This is on ALT Linux using gcc-12.

Thanks,

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ