From: Bjorn Helgaas <helgaas@kernel.org>
To: linux-kbuild@vger.kernel.org
Subject: possible dependency error?
Date: Wed, 17 May 2023 18:27:48 -0500 [thread overview]
Message-ID: <ZGVi9HbI43R5trN8@bhelgaas> (raw)
This is on v6.4-rc1. I fat-fingered the make target (I intended
"pciehp.o", not "pciehp.c"), then interrupted the build when I noticed
my mistake:
06:04:15 ~/linux (hotplug)$ make drivers/pci/hotplug/pciehp.c
SYNC include/config/auto.conf.cmd
^Cmake: *** [include/config/auto.conf.cmd] Deleting file 'include/generated/rustc_cfg'
make: *** [include/config/auto.conf.cmd] Deleting file 'include/generated/autoconf.h'
make[2]: *** [scripts/kconfig/Makefile:77: syncconfig] Interrupt
make[1]: *** [Makefile:692: syncconfig] Interrupt
make: *** [Makefile:793: include/config/auto.conf.cmd] Interrupt
Subsequent builds now fail ("pciehp.o" is *also* an incorrect target,
but doesn't seem related to the error):
06:04:22 ~/linux (hotplug)$ make drivers/pci/hotplug/pciehp.o
SYNC include/config/auto.conf.cmd
UPD include/config/kernel.release
UPD include/generated/utsrelease.h
UPD include/generated/compile.h
CC scripts/mod/empty.o
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/modpost.o
CC scripts/mod/devicetable-offsets.s
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
CC kernel/bounds.s
CC arch/x86/kernel/asm-offsets.s
CALL scripts/checksyscalls.sh
DESCEND objtool
HOSTCC /home/bjorn/linux/tools/objtool/fixdep.o
HOSTLD /home/bjorn/linux/tools/objtool/fixdep-in.o
LINK /home/bjorn/linux/tools/objtool/fixdep
make[4]: *** No rule to make target '/usr/include/x86_64-linux-gnu/bits/sys_errlist.h', needed by '/home/bjorn/linux/tools/objtool/libsubcmd/exec-cmd.o'. Stop.
make[3]: *** [Makefile:80: /home/bjorn/linux/tools/objtool/libsubcmd/libsubcmd-in.o] Error 2
make[2]: *** [Makefile:78: /home/bjorn/linux/tools/objtool/libsubcmd/libsubcmd.a] Error 2
make[1]: *** [Makefile:73: objtool] Error 2
make: *** [Makefile:1440: tools/objtool] Error 2
I finally got the right target, but the build still fails:
06:04:39 ~/linux (hotplug)$ make drivers/pci/hotplug/
CALL scripts/checksyscalls.sh
DESCEND objtool
make[4]: *** No rule to make target '/usr/include/x86_64-linux-gnu/bits/sys_errlist.h', needed by '/home/bjorn/linux/tools/objtool/libsubcmd/exec-cmd.o'. Stop.
make[3]: *** [Makefile:80: /home/bjorn/linux/tools/objtool/libsubcmd/libsubcmd-in.o] Error 2
make[2]: *** [Makefile:78: /home/bjorn/linux/tools/objtool/libsubcmd/libsubcmd.a] Error 2
make[1]: *** [Makefile:73: objtool] Error 2
make: *** [Makefile:1440: tools/objtool] Error 2
After "make distclean", everything works as expected, so maybe this is
just the expected behavior after my initial user error? I dunno; it
seemed surprising. Just FYI.
Bjorn
next reply other threads:[~2023-05-17 23:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-17 23:27 Bjorn Helgaas [this message]
2023-05-18 8:26 ` possible dependency error? Masahiro Yamada
2024-05-23 17:54 ` Brian Norris
2024-05-25 16:35 ` Masahiro Yamada
2024-06-18 23:29 ` Brian Norris
2024-06-19 6:02 ` Masahiro Yamada
2024-07-02 0:37 ` Brian Norris
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=ZGVi9HbI43R5trN8@bhelgaas \
--to=helgaas@kernel.org \
--cc=linux-kbuild@vger.kernel.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