[KBUILD] Bug in make deb-pkg when using seperate source and object directories

From: Ryan Anderson (ryan_at_michonline.com)
Date: 03/13/05

  • Next message: Junfeng Yang: "Re: [CHECKER] sync doesn't flush everything out (msdos and vfat, 2.6.11)"
    Date:	Sun, 13 Mar 2005 01:09:41 -0500
    To: Sam Ravnborg <sam@ravnborg.org>
    
    

    Sam,

    When running "make O=something deb-pkg", I get a failure that claims I
    haven't configured my kernel (I have). Running it a second time tells
    me to run "make mrproper" (include/linux/version.h got built on the
    first run)

    I did some preliminary poking around, but kbuild is still, well, mostly
    magic to me - I can't see where the object directory is getting lost.

    Think you can take a look? (Note, this failure shouldn't require
    anything Debian specific on your system to trigger - it's failing, as
    far as I can tell, on the $(MAKE) right before the call build the
    builddeb script, so it should be easy to reproduce)

    The log of when I run it follows:

    ryan@mythryan2 ~/dev/linux/local-quilt$ blocal deb-pkg
    make
    make -C /home/ryan/dev/linux/local-quilt
    O=/home/ryan/dev/linux/output/local
    Makefile:487: .config: No such file or directory
      Using /home/ryan/dev/linux/local-quilt as source for kernel
      CHK include/linux/version.h
      UPD include/linux/version.h
      SYMLINK include/asm -> include/asm-i386
      HOSTCC scripts/basic/fixdep
      HOSTCC scripts/basic/split-include
      HOSTCC scripts/basic/docproc
      SHIPPED scripts/kconfig/zconf.tab.h
      SHIPPED scripts/kconfig/zconf.tab.c
      SHIPPED scripts/kconfig/lex.zconf.c
      HOSTCC scripts/kconfig/conf.o
      HOSTCC scripts/kconfig/mconf.o
      HOSTCC scripts/kconfig/zconf.tab.o
      HOSTLD scripts/kconfig/conf
    scripts/kconfig/conf -s arch/i386/Kconfig
    ***
    *** You have not yet configured your kernel!
    ***
    *** Please run some configurator (e.g. "make oldconfig" or
    *** "make menuconfig" or "make xconfig").
    ***
    make[6]: *** [silentoldconfig] Error 1
    make[5]: *** [silentoldconfig] Error 2
    make[4]: *** [include/linux/autoconf.h] Error 2
    make[3]: *** [all] Error 2
    make[2]: *** [deb-pkg] Error 2
    make[1]: *** [deb-pkg] Error 2
    make: *** [deb-pkg] Error 2

    "blocal" is a simple wrapper to cut down on retyping things, it's just
    this:

    ryan@mythryan2 ~/dev/linux/local-quilt$ cat /home/ryan/bin/blocal
    #!/bin/bash -e

    PWD=`pwd`

    if [ "$PWD" != "/home/ryan/dev/linux/local-quilt" ]; then
            cd /home/ryan/dev/linux/local-quilt
    fi

    make O=../output/local/ -j4 CC="ccache distcc" $*

    -- 
    Ryan Anderson
      sometimes Pug Majere
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Junfeng Yang: "Re: [CHECKER] sync doesn't flush everything out (msdos and vfat, 2.6.11)"

    Relevant Pages

    • Re: 2.6.12 Performance problems
      ... > The kernel is the standard kernel.org dowload ... > config with SMP turned off and the intel ethernet ... > card drivers as modules without any other ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.12 Performance problems
      ... > The kernel is the standard kernel.org dowload ... > config with SMP turned off and the intel ethernet ... > card drivers as modules without any other ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.7-rc2-mm1 (nforce2 lockup)
      ... >Does it work better if you build IOAPIC support into the kernel? ... >Please send me the complete failing .config ... disabled in .config. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: kernel 2.6.0-test1 refuses to boot on a PC with AMD Athlon XP 1800+
      ... >> am not able to boot using this new kernel. ... > .config, and search in the archives to find out how to enable your console ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.[45]-.*: weird behavior
      ... some questions to that config file. ... maybe you should find and apply the patch for kernel ... usb problems causing D state lock of processes using some usb ioctls). ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)