- From: Ian Abbott <abbotti_at_mev.co.uk>
- Date: Wed, 05 Jul 2006 10:58:09 +0100
On 04/07/06 18:18, Torben Mikael Hansen wrote:
> Hi Ian
>
>> Hello Alessandro,
>> Could you restore it as it was and post the section of
>> the config.log file from "checking for Linux CFLAGS" onwards? That
> would show where the error occurred. It looks like the make command run
> by that test failed before it created the ${tmpdir}/flags file.
>
> Since I'm having the same problem I send my config.log
>
> The problem only occurs when compiling under 2.6.17 and not under 2.6.16.
>
> --snip config.log ----
> configure:3803: result: 2.6
> configure:3811: checking for Linux CFLAGS
> make -C /lib/modules/2.6.17-1.2139_FC5/build V=1
> SUBDIRS=/usr/src/redhat/BUILD/comedi-cvs20060704/./confstatzm7977
> LINUXDIR=/lib/modules/2.6.17-1.2139_FC5/build
> MODVERDIR=/usr/src/redhat/BUILD/comedi-cvs20060704/./confstatzm7977 modules
> make: Entering directory `/usr/src/kernels/2.6.17-1.2139_FC5-i686' mkdir
> -p /usr/src/redhat/BUILD/comedi-cvs20060704/./confstatzm7977 rm -f
> /usr/src/redhat/BUILD/comedi-cvs20060704/./confstatzm7977/*
> make -f scripts/Makefile.build
> obj=/usr/src/redhat/BUILD/comedi-cvs20060704/./confstatzm7977
> scripts/Makefile.build:17:
> /usr/src/redhat/BUILD/comedi-cvs20060704/./confstatzm7977/Makefile: No
> such file or directory
> make[1]: *** No rule to make target
> `/usr/src/redhat/BUILD/comedi-cvs20060704/./confstatzm7977/Makefile'. Stop.
> make: ***
> [_module_/usr/src/redhat/BUILD/comedi-cvs20060704/./confstatzm7977] Error 2
> make: Leaving directory `/usr/src/kernels/2.6.17-1.2139_FC5-i686'
>
> -- snip end config.log --
Thanks! It seems to have suffered from paragraph reformatting a bit,
but the killer line is:
rm -f /usr/src/redhat/BUILD/comedi-cvs20060704/./confstatzm7977/*
In the kernel Makefile for 2.6.17, that comes from the line:
$(Q)rm -f $(MODVERDIR)/*
2.6.16 has a similar line:
$(Q)rm -f $(MODVERDIR)
so I'm not sure why _that_ worked! (I may investigate further if I have
the time.)
Anoyhow, I fixed it in CVS (see attached patch) by not setting MODVERDIR
on the command line and letting the kernel Makefile figure it out by
itself. You need to re-run ./autogen.sh with your current ./configure
command-line options after applying this patch.
--
-=( Ian Abbott _at_ MEV Ltd. E-mail: <abbotti_at_mev.co.uk> )=-
-=( Tel: +44 (0)161 477 1898 FAX: +44 (0)161 718 3587 )=-
Attachments
- text/x-patch attachment: modver.patch
Received on 2006-07-05Z08:58:09