public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
* possible dependency error?
@ 2023-05-17 23:27 Bjorn Helgaas
  2023-05-18  8:26 ` Masahiro Yamada
  0 siblings, 1 reply; 7+ messages in thread
From: Bjorn Helgaas @ 2023-05-17 23:27 UTC (permalink / raw)
  To: linux-kbuild

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-07-02  0:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-17 23:27 possible dependency error? Bjorn Helgaas
2023-05-18  8:26 ` 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

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