2006-01-13 19:18:10

by Volker Armin Hemmann

[permalink] [raw]
Subject: Re: Fw: two (little) problems wit 2.6.15-git7 one with build, one with acpi

Hi,

On Friday 13 January 2006 08:15, you wrote:
> Volker, I think the `make install' thing is fixed, or will soon be.
>
> If the resume problem doesn't get fixed within the next few days, please
> raise a report at bugzilla.kernel.org.
>
> This is a regression wrt 2.6.15, so we're keen to fix it.
>

I tried -git8 last night.
make all modules_install install gave me again this error:

if [ -r System.map -a -x /sbin/depmod ]; then /sbin/depmod -ae -F System.map
2.6.15-git8; fi
WARNING: Couldn't open directory /lib/modules/2.6.15-git8: No such file or
directory
FATAL: Could not open /lib/modules/2.6.15-git8/modules.dep.temp for writing:
No such file or directory
make: *** [_modinst_post] Fehler 1


and trying echo mem > /sys/power/state again made my box more or less dead.
I had to pull the plug, because the reset switch did not work.

I will try the nexft git version this night, but I have to wait some more
hours.


Gl?ck Auf
Volker


2006-01-15 12:55:49

by Sam Ravnborg

[permalink] [raw]
Subject: Re: Fw: two (little) problems wit 2.6.15-git7 one with build, one with acpi

On Fri, Jan 13, 2006 at 08:18:03PM +0100, Hemmann, Volker Armin wrote:
> I tried -git8 last night.
> make all modules_install install gave me again this error:
>
> if [ -r System.map -a -x /sbin/depmod ]; then /sbin/depmod -ae -F System.map
> 2.6.15-git8; fi
> WARNING: Couldn't open directory /lib/modules/2.6.15-git8: No such file or
> directory
> FATAL: Could not open /lib/modules/2.6.15-git8/modules.dep.temp for writing:
> No such file or directory
> make: *** [_modinst_post] Fehler 1

Do you have KBUILD_OUTPUT set in your environment?
That may explain it since things are running too much in parallel with
KBUILT_OUTPUT set - reported by Keith Owns a few days ago.

I have tried the above on my machine and was not able to reproduce it.

Can you please drop me the output with V=1 so I can see what is
happening. Maybe in private mail if it gets too big.

Sam

2006-01-15 20:51:51

by Volker Armin Hemmann

[permalink] [raw]
Subject: Re: Fw: two (little) problems wit 2.6.15-git7 one with build, one with acpi

On Sunday 15 January 2006 13:55, Sam Ravnborg wrote:
> On Fri, Jan 13, 2006 at 08:18:03PM +0100, Hemmann, Volker Armin wrote:
> > I tried -git8 last night.
> > make all modules_install install gave me again this error:
> >
> > if [ -r System.map -a -x /sbin/depmod ]; then /sbin/depmod -ae -F
> > System.map 2.6.15-git8; fi
> > WARNING: Couldn't open directory /lib/modules/2.6.15-git8: No such file
> > or directory
> > FATAL: Could not open /lib/modules/2.6.15-git8/modules.dep.temp for
> > writing: No such file or directory
> > make: *** [_modinst_post] Fehler 1
>
> Do you have KBUILD_OUTPUT set in your environment?

no, at least I don't find it, when I type env.

> That may explain it since things are running too much in parallel with
> KBUILT_OUTPUT set - reported by Keith Owns a few days ago.
>
> I have tried the above on my machine and was not able to reproduce it.
>
> Can you please drop me the output with V=1 so I can see what is
> happening. Maybe in private mail if it gets too big.

I tried make all modules_install install V=1 &>/tmp/kernel2.log and found
something interessting.

The kernel-sources directory has to be 'virgin'. As soon as I build a kernel
in it once, it worked without any problems - even after a make clean and make
mrproper.

So the steps to reproduce it are:
unpack 2.6.15, patch it, copy .config from other kernel (this time I took the
one from git8 I built earlier), make oldconfig, make all_modules_install
install:

f [ -r System.map -a -x /sbin/depmod ]; then /sbin/depmod -ae -F System.map
2.
6.15-git7; fi
WARNING: Couldn't open directory /lib/modules/2.6.15-git7: No such file or
direc
tory
FATAL: Could not open /lib/modules/2.6.15-git7/modules.dep.temp for writing:
No
such file or directory
make: *** [_modinst_post] Fehler 1

because kernel2.log is 748kb big., I packed it.

Gl?ck Auf
Volker



Attachments:
(No filename) (1.82 kB)
kernel2.log.bz2 (25.70 kB)
config.bz2 (6.70 kB)
Download all attachments

2006-01-16 11:39:47

by Sam Ravnborg

[permalink] [raw]
Subject: Re: Fw: two (little) problems wit 2.6.15-git7 one with build, one with acpi

On Sun, Jan 15, 2006 at 09:48:02PM +0100, Hemmann, Volker Armin wrote:

> The kernel-sources directory has to be 'virgin'. As soon as I build a kernel
> in it once, it worked without any problems - even after a make clean and make
> mrproper.

This proved to be why it worked for me.
The fix was simple. We have to evaluate MODLIB late so we have
.kernelrelease created when evaluating MODLIB.
Following patch fixes it:

Sam


diff --git a/Makefile b/Makefile
index 22e322f..37a4b67 100644
--- a/Makefile
+++ b/Makefile
@@ -545,7 +545,7 @@ export INSTALL_PATH ?= /boot
# makefile but the arguement can be passed to make if needed.
#

-MODLIB := $(INSTALL_MOD_PATH)/lib/modules/$(KERNELRELEASE)
+MODLIB = $(INSTALL_MOD_PATH)/lib/modules/$(KERNELRELEASE)
export MODLIB


2006-01-16 18:05:30

by Volker Armin Hemmann

[permalink] [raw]
Subject: Re: Fw: two (little) problems wit 2.6.15-git7 one with build, one with acpi

On Monday 16 January 2006 12:39, Sam Ravnborg wrote:
> On Sun, Jan 15, 2006 at 09:48:02PM +0100, Hemmann, Volker Armin wrote:
> > The kernel-sources directory has to be 'virgin'. As soon as I build a
> > kernel in it once, it worked without any problems - even after a make
> > clean and make mrproper.
>
> This proved to be why it worked for me.
> The fix was simple. We have to evaluate MODLIB late so we have
> .kernelrelease created when evaluating MODLIB.
> Following patch fixes it:
>
> Sam
>
>
> diff --git a/Makefile b/Makefile
> index 22e322f..37a4b67 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -545,7 +545,7 @@ export INSTALL_PATH ?= /boot
> # makefile but the arguement can be passed to make if needed.
> #
>
> -MODLIB := $(INSTALL_MOD_PATH)/lib/modules/$(KERNELRELEASE)
> +MODLIB = $(INSTALL_MOD_PATH)/lib/modules/$(KERNELRELEASE)
> export MODLIB

yes, that fixed it, thank you

Gl?ck Auf,
Volker