* [2.4.15pre6] Funny error on "make modules_install" - cosmetic cleanup probably needed
@ 2001-11-19 8:32 Mark Orr
2001-11-19 12:44 ` Keith Owens
0 siblings, 1 reply; 4+ messages in thread
From: Mark Orr @ 2001-11-19 8:32 UTC (permalink / raw)
To: linux-kernel
I'm running 2.4.15-pre6 here, and for several previous
versions there's been an unusual (but harmless) error message
when installing modules via "make modules_install" once the
kernel build is done.
looks like this:
make[2]: Entering directory `/usr/src/linux/drivers/cdrom'
mkdir -p /lib/modules/2.4.15-pre6/kernel/drivers/cdrom/
cp cdrom.o cdrom.o /lib/modules/2.4.15-pre6/kernel/drivers/cdrom/
cp: will not overwrite just-created `/lib/modules/2.4.15-pre6/kernel/drivers/cdrom/cdrom.o' with `cdrom.o'
make[2]: *** [_modinst__] Error 1
make[2]: Leaving directory `/usr/src/linux/drivers/cdrom'
make[1]: *** [_modinst_cdrom] Error 2
make[1]: Leaving directory `/usr/src/linux/drivers'
make: *** [_modinst_drivers] Error 2
...As I say, it's harmless. cdrom.o is getting installed, and
you can just make -i ... to get past it.
I'm guessing that I'm the only one getting this error (since I
cant find any other complaints about it) because i'm using the
latest fileutils v4.1.1 off alpha.gnu.org, which must have code
to complain about such things -- but still, that
cp cdrom.o cdrom.o /big/long/directory
...just looks weird. Somebody leave something hanging in
one of the makefiles?
--
Mark Orr
markorr@intersurf.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [2.4.15pre6] Funny error on "make modules_install" - cosmetic cleanup probably needed
2001-11-19 8:32 [2.4.15pre6] Funny error on "make modules_install" - cosmetic cleanup probably needed Mark Orr
@ 2001-11-19 12:44 ` Keith Owens
2001-11-21 14:00 ` Todd M. Roy
0 siblings, 1 reply; 4+ messages in thread
From: Keith Owens @ 2001-11-19 12:44 UTC (permalink / raw)
To: Mark Orr; +Cc: linux-kernel
On Mon, 19 Nov 2001 02:32:58 -0600,
Mark Orr <markorr@intersurf.com> wrote:
>make[2]: Entering directory `/usr/src/linux/drivers/cdrom'
>mkdir -p /lib/modules/2.4.15-pre6/kernel/drivers/cdrom/
>cp cdrom.o cdrom.o /lib/modules/2.4.15-pre6/kernel/drivers/cdrom/
>cp: will not overwrite just-created `/lib/modules/2.4.15-pre6/kernel/drivers/cdrom/cdrom.o' with `cdrom.o'
There are several places where a module gets installed twice, because
of the way that module objects are selected in 2.4 (2.5 does not have
this feature). The fix is easy but it should not be necessary. IMNSHO
it is *wrong* for fileutils to decide that it will not copy a file
twice, cp should do what the user asked. Complain to the fileutils
maintainer as a first step.
Work around for unexpected cp behaviour, against 2.4.14, untested.
Index: 14.1/Rules.make
--- 14.1/Rules.make Wed, 07 Mar 2001 23:04:43 +1100 kaos (linux-2.4/T/c/47_Rules.make 1.1.2.2 644)
+++ 14.1(w)/Rules.make Mon, 19 Nov 2001 23:42:58 +1100 kaos (linux-2.4/T/c/47_Rules.make 1.1.2.2 644)
@@ -173,7 +173,7 @@ modules: $(ALL_MOBJS) dummy \
_modinst__: dummy
ifneq "$(strip $(ALL_MOBJS))" ""
mkdir -p $(MODLIB)/kernel/$(MOD_DESTDIR)
- cp $(ALL_MOBJS) $(MODLIB)/kernel/$(MOD_DESTDIR)$(MOD_TARGET)
+ cp $(sort $(ALL_MOBJS)) $(MODLIB)/kernel/$(MOD_DESTDIR)$(MOD_TARGET)
endif
.PHONY: modules_install
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [2.4.15pre6] Funny error on "make modules_install" - cosmetic cleanup probably needed
2001-11-19 12:44 ` Keith Owens
@ 2001-11-21 14:00 ` Todd M. Roy
2001-11-22 16:39 ` Jim Meyering
0 siblings, 1 reply; 4+ messages in thread
From: Todd M. Roy @ 2001-11-21 14:00 UTC (permalink / raw)
To: kaos; +Cc: markorr, linux-kernel, bug-fileutils
I noticed this problem with the latest version of fileutils
from alpha.gnu.org, (fileutils-4.1.1.tar.bz2) I reverted to 4.1
and the problem disappeared.
-- todd --
> X-RocketRCL: 1598;1;2282498317
> X-Apparently-To: todd_m_roy@yahoo.com via web13602.mail.yahoo.com; 19 Nov 2001 04:49:52 -0800 (PST)
> X-Yahoo-Received: from mux1.sc5.mail.yahoo.com
> by web13602.mail.yahoo.com; 19 Nov 2001 04:49:52 -0800 (PST)
> X-Yahoo-Received: from mta431.mail.yahoo.com
> by mux1.sc5.mail.yahoo.com; 19 Nov 2001 04:49:52 -0800 (PST)
> X-Yahoo-Forwarded: from tavkhelidzem@yahoo.com to mikheil.tavkhelidze@btinternet.com
> X-Yahoo-Forwarded: from kratkin@yahoo.com to kratkin@egartech.com
> X-Yahoo-Forwarded: from jasondmichaelson@yahoo.com to micha044@tc.umn.edu
> X-Yahoo-Forwarded: from andrew_ip_ml@yahoo.com to aip_ml@cwlinux.com
> X-Yahoo-MsgId: <mta431.mail.yahoo.com.1006174190.94912.0000>
> X-Track: 1: 40
> From: Keith Owens <kaos@ocs.com.au>
> Cc: linux-kernel@vger.kernel.org
> Date: Mon, 19 Nov 2001 23:44:50 +1100
> Sender: linux-kernel-owner@vger.kernel.org
> X-Mailing-List: linux-kernel@vger.kernel.org
>
> On Mon, 19 Nov 2001 02:32:58 -0600,
> Mark Orr <markorr@intersurf.com> wrote:
> >make[2]: Entering directory `/usr/src/linux/drivers/cdrom'
> >mkdir -p /lib/modules/2.4.15-pre6/kernel/drivers/cdrom/
> >cp cdrom.o cdrom.o /lib/modules/2.4.15-pre6/kernel/drivers/cdrom/
> >cp: will not overwrite just-created `/lib/modules/2.4.15-pre6/kernel/drivers/cdrom/cdrom.o' with `cdrom.o'
>
> There are several places where a module gets installed twice, because
> of the way that module objects are selected in 2.4 (2.5 does not have
> this feature). The fix is easy but it should not be necessary. IMNSHO
> it is *wrong* for fileutils to decide that it will not copy a file
> twice, cp should do what the user asked. Complain to the fileutils
> maintainer as a first step.
>
> Work around for unexpected cp behaviour, against 2.4.14, untested.
>
> Index: 14.1/Rules.make
> --- 14.1/Rules.make Wed, 07 Mar 2001 23:04:43 +1100 kaos (linux-2.4/T/c/47_Rules.make 1.1.2.2 644)
> +++ 14.1(w)/Rules.make Mon, 19 Nov 2001 23:42:58 +1100 kaos (linux-2.4/T/c/47_Rules.make 1.1.2.2 644)
> @@ -173,7 +173,7 @@ modules: $(ALL_MOBJS) dummy \
> _modinst__: dummy
> ifneq "$(strip $(ALL_MOBJS))" ""
> mkdir -p $(MODLIB)/kernel/$(MOD_DESTDIR)
> - cp $(ALL_MOBJS) $(MODLIB)/kernel/$(MOD_DESTDIR)$(MOD_TARGET)
> + cp $(sort $(ALL_MOBJS)) $(MODLIB)/kernel/$(MOD_DESTDIR)$(MOD_TARGET)
> endif
>
> .PHONY: modules_install
>
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [2.4.15pre6] Funny error on "make modules_install" - cosmetic cleanup probably needed
2001-11-21 14:00 ` Todd M. Roy
@ 2001-11-22 16:39 ` Jim Meyering
0 siblings, 0 replies; 4+ messages in thread
From: Jim Meyering @ 2001-11-22 16:39 UTC (permalink / raw)
To: troy; +Cc: Padraig Brady, kaos, markorr, linux-kernel, bug-fileutils
Thanks for the report.
That will be fixed in fileutils-4.1.2.
"Todd M. Roy" <troy@holstein.com> wrote:
> I noticed this problem with the latest version of fileutils
> from alpha.gnu.org, (fileutils-4.1.1.tar.bz2) I reverted to 4.1
> and the problem disappeared.
...
[`cp a a d/' now fails]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-11-22 16:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-19 8:32 [2.4.15pre6] Funny error on "make modules_install" - cosmetic cleanup probably needed Mark Orr
2001-11-19 12:44 ` Keith Owens
2001-11-21 14:00 ` Todd M. Roy
2001-11-22 16:39 ` Jim Meyering
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox