mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Error using "make KBUILD_OUTPUT=path" or "make O=path"
       [not found] <bdcb599c0804110514y7f07bd6aqfc3cb9ce6f52b08b@mail.gmail.com>
@ 2008-04-11 12:38 ` Antonio Ávila
  2008-04-11 13:00   ` Adrian Bunk
  0 siblings, 1 reply; 3+ messages in thread
From: Antonio Ávila @ 2008-04-11 12:38 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 946 bytes --]

First of all, I'd like to introduce myself, my name is Anthony and
I've been using linux during the last 8 years.
I have googled around and I haven't found anything so let's go to the question:
 It seems that when initializing either KBUILD_OUTPUT or O variables
(make KBUILD_OUTPUT="../build/" ) there is a problem, the output is
effectivly working, but the problem is that some files (.config) that
has been generated at the begining of the make process, are later used
and as a  consecuence, the make is trying to read them as the file was
created in the base path instead of $KBUILD_OUTPUT...

Or maybe I'm completely wrong about the using of that variables... :)
I've attached an output log of the error.

More info:
- The kernel has been configured
- If I omit the O= or KBUILD_OUTPUT= initializations the kernel
compiles wonderfull.

"Thanks a log" and please don't forget to add my address to the CC
since I'm not subscribed to the list.

[-- Attachment #2: output.log --]
[-- Type: application/octet-stream, Size: 2685 bytes --]

lsar@debian:/tmp/build_dir/linux-2.6.22.13$ make O="../build_files" V=1
make -C /tmp/build_dir/build_files \
        KBUILD_SRC=/tmp/build_dir/linux-2.6.22.13 \
        KBUILD_EXTMOD="" -f /tmp/build_dir/linux-2.6.22.13/Makefile _all
make -f /tmp/build_dir/linux-2.6.22.13/Makefile silentoldconfig
make -f /tmp/build_dir/linux-2.6.22.13/scripts/Makefile.build obj=scripts/basic
  gcc -Wp,-MD,scripts/basic/.fixdep.d -Iscripts/basic -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/basic/fixdep /tmp/build_dir/linux-2.6.22.13/scripts/basic/fixdep.c
  gcc -Wp,-MD,scripts/basic/.docproc.d -Iscripts/basic -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/basic/docproc /tmp/build_dir/linux-2.6.22.13/scripts/basic/docproc.c
/bin/bash /tmp/build_dir/linux-2.6.22.13/scripts/mkmakefile \
            /tmp/build_dir/linux-2.6.22.13 /tmp/build_dir/build_files 2 6
  GEN     /tmp/build_dir/build_files/Makefile
mkdir -p include/linux include/config
make -f /tmp/build_dir/linux-2.6.22.13/scripts/Makefile.build obj=scripts/kconfig silentoldconfig
  gcc -Wp,-MD,scripts/kconfig/.conf.o.d -Iscripts/kconfig -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DCURSES_LOC="<curses.h>" -DLOCALE -c -o scripts/kconfig/conf.o /tmp/build_dir/linux-2.6.22.13/scripts/kconfig/conf.c
  gcc -Wp,-MD,scripts/kconfig/.kxgettext.o.d -Iscripts/kconfig -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DCURSES_LOC="<curses.h>" -DLOCALE -c -o scripts/kconfig/kxgettext.o /tmp/build_dir/linux-2.6.22.13/scripts/kconfig/kxgettext.c
  cat /tmp/build_dir/linux-2.6.22.13/scripts/kconfig/zconf.tab.c_shipped > scripts/kconfig/zconf.tab.c
  cat /tmp/build_dir/linux-2.6.22.13/scripts/kconfig/lex.zconf.c_shipped > scripts/kconfig/lex.zconf.c
  cat /tmp/build_dir/linux-2.6.22.13/scripts/kconfig/zconf.hash.c_shipped > scripts/kconfig/zconf.hash.c
  gcc -Wp,-MD,scripts/kconfig/.zconf.tab.o.d -Iscripts/kconfig -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DCURSES_LOC="<curses.h>" -DLOCALE -I/tmp/build_dir/linux-2.6.22.13/scripts/kconfig -Iscripts/kconfig -c -o scripts/kconfig/zconf.tab.o scripts/kconfig/zconf.tab.c
  gcc  -o scripts/kconfig/conf scripts/kconfig/conf.o scripts/kconfig/zconf.tab.o
scripts/kconfig/conf -s arch/i386/Kconfig
***
*** You have not yet configured your kernel!
*** (missing kernel .config file)
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[3]: *** [silentoldconfig] Error 1
make[2]: *** [silentoldconfig] Error 2
make[1]: *** No hay ninguna regla para construir el objetivo `include/config/auto.conf', necesario para `include/config/kernel.release'.  Alto.
make: *** [_all] Error 2

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

* Re: Error using "make KBUILD_OUTPUT=path" or "make O=path"
  2008-04-11 12:38 ` Error using "make KBUILD_OUTPUT=path" or "make O=path" Antonio Ávila
@ 2008-04-11 13:00   ` Adrian Bunk
  2008-04-11 21:50     ` Antonio Ávila
  0 siblings, 1 reply; 3+ messages in thread
From: Adrian Bunk @ 2008-04-11 13:00 UTC (permalink / raw)
  To: Antonio Ávila; +Cc: linux-kernel

On Fri, Apr 11, 2008 at 02:38:29PM +0200, Antonio Ávila wrote:
> First of all, I'd like to introduce myself, my name is Anthony and
> I've been using linux during the last 8 years.
> I have googled around and I haven't found anything so let's go to the question:
>  It seems that when initializing either KBUILD_OUTPUT or O variables
> (make KBUILD_OUTPUT="../build/" ) there is a problem, the output is
> effectivly working, but the problem is that some files (.config) that
> has been generated at the begining of the make process, are later used
> and as a  consecuence, the make is trying to read them as the file was
> created in the base path instead of $KBUILD_OUTPUT...
> 
> Or maybe I'm completely wrong about the using of that variables... :)
> I've attached an output log of the error.
> 
> More info:
> - The kernel has been configured
> - If I omit the O= or KBUILD_OUTPUT= initializations the kernel
> compiles wonderfull.
>...

You also have to give the O= to the make commandline when configuring 
the kernel - this will put the .config to the right place.

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


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

* Re: Error using "make KBUILD_OUTPUT=path" or "make O=path"
  2008-04-11 13:00   ` Adrian Bunk
@ 2008-04-11 21:50     ` Antonio Ávila
  0 siblings, 0 replies; 3+ messages in thread
From: Antonio Ávila @ 2008-04-11 21:50 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: linux-kernel

D'oh!

Many thanks, I could repeat this again and again and I wouldn't have noticed :S

cu

Anthony

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

end of thread, other threads:[~2008-04-11 21:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bdcb599c0804110514y7f07bd6aqfc3cb9ce6f52b08b@mail.gmail.com>
2008-04-11 12:38 ` Error using "make KBUILD_OUTPUT=path" or "make O=path" Antonio Ávila
2008-04-11 13:00   ` Adrian Bunk
2008-04-11 21:50     ` Antonio Ávila

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

all inboxes | Powered by JetHome®