2005-03-14 19:43:03

by Dave Hansen

[permalink] [raw]
Subject: 2.6.11-bk10 build problems

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


2005-03-14 19:49:26

by Sam Ravnborg

[permalink] [raw]
Subject: Re: 2.6.11-bk10 build problems

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

2005-03-14 19:58:00

by Dave Hansen

[permalink] [raw]
Subject: Re: 2.6.11-bk10 build problems

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

2005-03-14 20:36:57

by Martin J. Bligh

[permalink] [raw]
Subject: Re: 2.6.11-bk10 build problems

--On Monday, March 14, 2005 20:49:30 +0100 Sam Ravnborg <[email protected]> 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.

2005-03-14 21:23:41

by Sam Ravnborg

[permalink] [raw]
Subject: Re: 2.6.11-bk10 build problems

>
> > 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

2005-03-14 21:32:37

by Martin J. Bligh

[permalink] [raw]
Subject: Re: 2.6.11-bk10 build problems

>> > 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.