public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.6.11-bk10 build problems
@ 2005-03-14 19:39 Dave Hansen
  2005-03-14 19:49 ` Sam Ravnborg
  0 siblings, 1 reply; 6+ messages in thread
From: Dave Hansen @ 2005-03-14 19:39 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: kai, sam

I'm having some intermittent build problems on 2.6.11-bk10.  First of
all, doing a 'make -j8 O=... install' errors out not being able to find
a vmlinux:

$ make O=../mhp-build/i386-plain/ -j8 install
make[3]: *** No rule to make target `vmlinux', needed by
`arch/i386/boot/compressed/vmlinux.bin'.  Stop.
make[2]: *** [arch/i386/boot/compressed/vmlinux] Error 2
make[1]: *** [install] Error 2
make: *** [install] Error 2

Also, I just ran menuconfig, changed an option, and did another 'make
install', and it went straight to the install script with no
compiling.  

Note that these are with O=, so it might be just a separate build tree
problem.

Any ideas?

-- Dave


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

* Re: 2.6.11-bk10 build problems
  2005-03-14 19:39 2.6.11-bk10 build problems Dave Hansen
@ 2005-03-14 19:49 ` Sam Ravnborg
  2005-03-14 19:57   ` Dave Hansen
  2005-03-14 20:34   ` Martin J. Bligh
  0 siblings, 2 replies; 6+ messages in thread
From: Sam Ravnborg @ 2005-03-14 19:49 UTC (permalink / raw)
  To: Dave Hansen; +Cc: Linux Kernel Mailing List, kai

On Mon, Mar 14, 2005 at 11:39:37AM -0800, Dave Hansen wrote:
> I'm having some intermittent build problems on 2.6.11-bk10.  First of
> all, doing a 'make -j8 O=... install' errors out not being able to find
> a vmlinux:
> 
> $ make O=../mhp-build/i386-plain/ -j8 install
> make[3]: *** No rule to make target `vmlinux', needed by
> `arch/i386/boot/compressed/vmlinux.bin'.  Stop.
> make[2]: *** [arch/i386/boot/compressed/vmlinux] Error 2
> make[1]: *** [install] Error 2
> make: *** [install] Error 2
> 
> Also, I just ran menuconfig, changed an option, and did another 'make
> install', and it went straight to the install script with no
> compiling.  
> 
> Note that these are with O=, so it might be just a separate build tree
> problem.
> 
> Any ideas?

On popular request 'make install' no longer try to update vmlinux.
This is to avoid errornous recompilation when installing the kernel
as root especially when fetching kernel via nfs where path may have
changed.

	Sam

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

* Re: 2.6.11-bk10 build problems
  2005-03-14 19:49 ` Sam Ravnborg
@ 2005-03-14 19:57   ` Dave Hansen
  2005-03-14 20:34   ` Martin J. Bligh
  1 sibling, 0 replies; 6+ messages in thread
From: Dave Hansen @ 2005-03-14 19:57 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: Linux Kernel Mailing List, kai

On Mon, 2005-03-14 at 20:49 +0100, Sam Ravnborg wrote:
> On popular request 'make install' no longer try to update vmlinux.
> This is to avoid errornous recompilation when installing the kernel
> as root especially when fetching kernel via nfs where path may have
> changed.

That makes sense, but it's still quite a surprise, and a serious change
in behavior from as long as I've been compiling kernels.

How about a new "make install-norebuild" or something that doesn't
change current, relied-upon behavior?  Seems like the weirdos^Wusers
doing kernel fetches over nfs are probably the minority, and their small
numbers can be much more easily educated than the masses who expect
'make menuconfig; make install' to do what it's always done.  

If that's too invasive, how about restoring the old behavior with a
warning to stderr for a release or two?

-- Dave


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

* Re: 2.6.11-bk10 build problems
  2005-03-14 19:49 ` Sam Ravnborg
  2005-03-14 19:57   ` Dave Hansen
@ 2005-03-14 20:34   ` Martin J. Bligh
  2005-03-14 21:22     ` Sam Ravnborg
  1 sibling, 1 reply; 6+ messages in thread
From: Martin J. Bligh @ 2005-03-14 20:34 UTC (permalink / raw)
  To: Sam Ravnborg, Dave Hansen, Andrew Morton; +Cc: Linux Kernel Mailing List, kai

--On Monday, March 14, 2005 20:49:30 +0100 Sam Ravnborg <sam@ravnborg.org> wrote:

> On Mon, Mar 14, 2005 at 11:39:37AM -0800, Dave Hansen wrote:
>> I'm having some intermittent build problems on 2.6.11-bk10.  First of
>> all, doing a 'make -j8 O=... install' errors out not being able to find
>> a vmlinux:
>> 
>> $ make O=../mhp-build/i386-plain/ -j8 install
>> make[3]: *** No rule to make target `vmlinux', needed by
>> `arch/i386/boot/compressed/vmlinux.bin'.  Stop.
>> make[2]: *** [arch/i386/boot/compressed/vmlinux] Error 2
>> make[1]: *** [install] Error 2
>> make: *** [install] Error 2
>> 
>> Also, I just ran menuconfig, changed an option, and did another 'make
>> install', and it went straight to the install script with no
>> compiling.  
>> 
>> Note that these are with O=, so it might be just a separate build tree
>> problem.
>> 
>> Any ideas?
> 
> On popular request 'make install' no longer try to update vmlinux.
> This is to avoid errornous recompilation when installing the kernel
> as root especially when fetching kernel via nfs where path may have
> changed.

That's frigging annoying. It's worked that way for ages, and all our
scripts assume it works. 

Andrew, can we back that out?

M.

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

* Re: 2.6.11-bk10 build problems
  2005-03-14 20:34   ` Martin J. Bligh
@ 2005-03-14 21:22     ` Sam Ravnborg
  0 siblings, 0 replies; 6+ messages in thread
From: Sam Ravnborg @ 2005-03-14 21:22 UTC (permalink / raw)
  To: Martin J. Bligh
  Cc: Dave Hansen, Andrew Morton, Linux Kernel Mailing List, kai

 > 
> > On popular request 'make install' no longer try to update vmlinux.
> > This is to avoid errornous recompilation when installing the kernel
> > as root especially when fetching kernel via nfs where path may have
> > changed.
> 
> That's frigging annoying. It's worked that way for ages, and all our
> scripts assume it works. 

The reason to put it in -mm is to check how things are used.
I will change it back and add an:
make kernel_install

kernel_install is then analogous to modules_install

	Sam

===== arch/i386/Makefile 1.80 vs edited =====
--- 1.80/arch/i386/Makefile	2005-03-12 08:48:59 +01:00
+++ edited/arch/i386/Makefile	2005-03-14 22:20:56 +01:00
@@ -123,7 +123,7 @@
 boot := arch/i386/boot
 
 .PHONY: zImage bzImage compressed zlilo bzlilo \
-	zdisk bzdisk fdimage fdimage144 fdimage288 install
+	zdisk bzdisk fdimage fdimage144 fdimage288 install kernel_install
 
 all: bzImage
 
@@ -145,8 +145,9 @@
 fdimage fdimage144 fdimage288: vmlinux
 	$(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) $@
 
-install:
-	$(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) $@
+install: vmlinux
+install kernel_install:
+	$(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) install
 
 prepare: include/asm-$(ARCH)/asm_offsets.h
 CLEAN_FILES += include/asm-$(ARCH)/asm_offsets.h


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

* Re: 2.6.11-bk10 build problems
@ 2005-03-14 21:31 Martin J. Bligh
  0 siblings, 0 replies; 6+ messages in thread
From: Martin J. Bligh @ 2005-03-14 21:31 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: Dave Hansen, Andrew Morton, Linux Kernel Mailing List, kai

>> > On popular request 'make install' no longer try to update vmlinux.
>> > This is to avoid errornous recompilation when installing the kernel
>> > as root especially when fetching kernel via nfs where path may have
>> > changed.
>> 
>> That's frigging annoying. It's worked that way for ages, and all our
>> scripts assume it works. 
> 
> The reason to put it in -mm is to check how things are used.

Heh, good plan - except it got sent upstream rather quickly ;-)

> I will change it back and add an:
> make kernel_install
> 
> kernel_install is then analogous to modules_install

Splendid. thanks very much. Apologies for being in a pissy mood - is one
of those days where NOTHING works ;-)

M.


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

end of thread, other threads:[~2005-03-14 21:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-14 19:39 2.6.11-bk10 build problems Dave Hansen
2005-03-14 19:49 ` Sam Ravnborg
2005-03-14 19:57   ` Dave Hansen
2005-03-14 20:34   ` Martin J. Bligh
2005-03-14 21:22     ` Sam Ravnborg
  -- strict thread matches above, loose matches on Subject: below --
2005-03-14 21:31 Martin J. Bligh

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