linux-kbuild.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Problem building 3.16 with make O=...
@ 2014-08-13  0:22 Jim Davis
  2014-08-13  5:05 ` Sam Ravnborg
  0 siblings, 1 reply; 3+ messages in thread
From: Jim Davis @ 2014-08-13  0:22 UTC (permalink / raw)
  To: linux-kbuild

I'm trying to build 3.16 on my Ubuntu 14.04 system, starting with the
stock kernel config file.  This works just fine:

make distclean && git clean -fdx
git describe (and check that it is indeed v3.16)
make mrproper (just in case)
cp /boot/config*24-generic .config
yes "" | make oldconfig >/dev/null
make

But changing that recipe to

yes "" | make O=/tmp/$$ oldconfig >/dev/null
make O=/tmp/$$

fails with

make[1]: Entering directory `/tmp/29520'
  GEN     ./Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
  SYSTBL  arch/x86/syscalls/../include/generated/asm/syscalls_32.h
  SYSHDR  arch/x86/syscalls/../include/generated/asm/unistd_32_ia32.h
  SYSHDR  arch/x86/syscalls/../include/generated/asm/unistd_64_x32.h
  SYSTBL  arch/x86/syscalls/../include/generated/asm/syscalls_64.h
  SYSHDR  arch/x86/syscalls/../include/generated/uapi/asm/unistd_32.h
  SYSHDR  arch/x86/syscalls/../include/generated/uapi/asm/unistd_64.h
  SYSHDR  arch/x86/syscalls/../include/generated/uapi/asm/unistd_x32.h
  HOSTCC  arch/x86/tools/relocs_32.o
  HOSTCC  arch/x86/tools/relocs_64.o
  HOSTCC  arch/x86/tools/relocs_common.o
  HOSTLD  arch/x86/tools/relocs
  CHK     include/config/kernel.release
  UPD     include/config/kernel.release
  Using /home/jim/linux-rc as source for kernel
  /home/jim/linux-rc is not clean, please run 'make mrproper'
  in the '/home/jim/linux-rc' directory.
make[1]: *** [prepare3] Error 1
make: *** [sub-make] Error 2

What am I missing?

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

* Re: Problem building 3.16 with make O=...
  2014-08-13  0:22 Problem building 3.16 with make O= Jim Davis
@ 2014-08-13  5:05 ` Sam Ravnborg
  2014-08-13 19:40   ` Jim Davis
  0 siblings, 1 reply; 3+ messages in thread
From: Sam Ravnborg @ 2014-08-13  5:05 UTC (permalink / raw)
  To: Jim Davis; +Cc: linux-kbuild

On Tue, Aug 12, 2014 at 05:22:46PM -0700, Jim Davis wrote:
> I'm trying to build 3.16 on my Ubuntu 14.04 system, starting with the
> stock kernel config file.  This works just fine:
> 
> make distclean && git clean -fdx
> git describe (and check that it is indeed v3.16)
> make mrproper (just in case)
> cp /boot/config*24-generic .config
> yes "" | make oldconfig >/dev/null
> make
> 
> But changing that recipe to
> 
> yes "" | make O=/tmp/$$ oldconfig >/dev/null
> make O=/tmp/$$
> 
> fails with
> 
> make[1]: Entering directory `/tmp/29520'
>   GEN     ./Makefile
> scripts/kconfig/conf --silentoldconfig Kconfig
>   SYSTBL  arch/x86/syscalls/../include/generated/asm/syscalls_32.h
>   SYSHDR  arch/x86/syscalls/../include/generated/asm/unistd_32_ia32.h
>   SYSHDR  arch/x86/syscalls/../include/generated/asm/unistd_64_x32.h
>   SYSTBL  arch/x86/syscalls/../include/generated/asm/syscalls_64.h
>   SYSHDR  arch/x86/syscalls/../include/generated/uapi/asm/unistd_32.h
>   SYSHDR  arch/x86/syscalls/../include/generated/uapi/asm/unistd_64.h
>   SYSHDR  arch/x86/syscalls/../include/generated/uapi/asm/unistd_x32.h
>   HOSTCC  arch/x86/tools/relocs_32.o
>   HOSTCC  arch/x86/tools/relocs_64.o
>   HOSTCC  arch/x86/tools/relocs_common.o
>   HOSTLD  arch/x86/tools/relocs
>   CHK     include/config/kernel.release
>   UPD     include/config/kernel.release
>   Using /home/jim/linux-rc as source for kernel
>   /home/jim/linux-rc is not clean, please run 'make mrproper'
>   in the '/home/jim/linux-rc' directory.
> make[1]: *** [prepare3] Error 1
> make: *** [sub-make] Error 2
> 
> What am I missing?
You need to copy the config to the output directory - not the source directory.
Change this line:
    cp /boot/config*24-generic .config
to something like this:
    cp /boot/config*24-generic /tmp/$$/.config

Should do the trick.
Make sure the dir exist before you copy.

	Sam

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

* Re: Problem building 3.16 with make O=...
  2014-08-13  5:05 ` Sam Ravnborg
@ 2014-08-13 19:40   ` Jim Davis
  0 siblings, 0 replies; 3+ messages in thread
From: Jim Davis @ 2014-08-13 19:40 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: linux-kbuild

On Tue, Aug 12, 2014 at 10:05 PM, Sam Ravnborg <sam@ravnborg.org> wrote:

> You need to copy the config to the output directory - not the source directory.
> Change this line:
>     cp /boot/config*24-generic .config
> to something like this:
>     cp /boot/config*24-generic /tmp/$$/.config
>
> Should do the trick.
> Make sure the dir exist before you copy.

Thanks!  Worked like a charm.

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

end of thread, other threads:[~2014-08-13 19:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-13  0:22 Problem building 3.16 with make O= Jim Davis
2014-08-13  5:05 ` Sam Ravnborg
2014-08-13 19:40   ` Jim Davis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).