From: Sam Ravnborg <sam@ravnborg.org>
To: Jim Davis <jim.epost@gmail.com>
Cc: linux-kbuild@vger.kernel.org
Subject: Re: Problem building 3.16 with make O=...
Date: Wed, 13 Aug 2014 07:05:49 +0200 [thread overview]
Message-ID: <20140813050549.GA30459@ravnborg.org> (raw)
In-Reply-To: <CA+r1Zhg5=9Ff90Ur0Bfgrc3eCr404Ym_amn-0SDpnndYSHV++w@mail.gmail.com>
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
next prev parent reply other threads:[~2014-08-13 5:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-13 0:22 Problem building 3.16 with make O= Jim Davis
2014-08-13 5:05 ` Sam Ravnborg [this message]
2014-08-13 19:40 ` Jim Davis
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=20140813050549.GA30459@ravnborg.org \
--to=sam@ravnborg.org \
--cc=jim.epost@gmail.com \
--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;
as well as URLs for NNTP newsgroup(s).