public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Vitaly Chikunov <vt@altlinux.org>
To: linux-kernel@vger.kernel.org,
	Josh Poimboeuf <jpoimboe@kernel.org>,
	Peter Zijlstra <peterz@infradead.org>,
	Miroslav Benes <mbenes@suse.cz>
Cc: Vitaly Chikunov <vt@altlinux.org>, "Dmitry V. Levin" <ldv@altlinux.org>
Subject: tools/objtool: check.c:11:10: fatal error: arch/elf.h: No such file or directory
Date: Mon, 1 Aug 2022 22:20:16 +0300	[thread overview]
Message-ID: <20220801192016.raoab6wtuimosocg@altlinux.org> (raw)

Hello,

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

  builder@aarch64:~/linux/tools$ make clean
  builder@aarch64:~/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,


             reply	other threads:[~2022-08-01 19:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-01 19:20 Vitaly Chikunov [this message]
2022-08-03  0:07 ` tools/objtool: check.c:11:10: fatal error: arch/elf.h: No such file or directory Josh Poimboeuf
2022-08-03  0:19   ` Vitaly Chikunov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220801192016.raoab6wtuimosocg@altlinux.org \
    --to=vt@altlinux.org \
    --cc=jpoimboe@kernel.org \
    --cc=ldv@altlinux.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mbenes@suse.cz \
    --cc=peterz@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox