2002-06-24 20:05:33

by Torrey Hoffman

[permalink] [raw]
Subject: 2.4.19-rc1 make modules_install: cp warning source file `foo.o' specified more than once

During make modules_install I got dozens of these warnings,
here is a short example.

cp: warning: source file `ad1848.o' specified more than once
cp: warning: source file `ad1848.o' specified more than once
cp: warning: source file `ad1848.o' specified more than once
cp: warning: source file `uart401.o' specified more than once
cp: warning: source file `ad1848.o' specified more than once
cp: warning: source file `mpu401.o' specified more than once
cp: warning: source file `ad1848.o' specified more than once
cp: warning: source file `sb_lib.o' specified more than once
cp: warning: source file `uart401.o' specified more than once
cp: warning: source file `cs4232.o' specified more than once
cp: warning: source file `uart401.o' specified more than once

Torrey Hoffman
[email protected]



2002-06-24 22:02:23

by Keith Owens

[permalink] [raw]
Subject: Re: 2.4.19-rc1 make modules_install: cp warning source file `foo.o' specified more than once

On 24 Jun 2002 12:59:08 -0700,
Torrey Hoffman <[email protected]> wrote:
>During make modules_install I got dozens of these warnings,
>here is a short example.
>
>cp: warning: source file `ad1848.o' specified more than once

That warning does not appear for me, I guess that you are running a
bleeding edge version of fileutils. Fix is easy (untested).

--- Rules.make Tue Jun 4 13:32:52 2002
+++ Rules.make.new Tue Jun 25 07:59:38 2002
@@ -176,7 +176,7 @@
_modinst__: dummy
ifneq "$(strip $(ALL_MOBJS))" ""
mkdir -p $(MODLIB)/kernel/$(MOD_DESTDIR)
- cp $(ALL_MOBJS) $(MODLIB)/kernel/$(MOD_DESTDIR)
+ cp $(sort $(ALL_MOBJS)) $(MODLIB)/kernel/$(MOD_DESTDIR)
endif

.PHONY: modules_install