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]
Quoted 4 lines · Torrey Hoffman
During make
modules_installI 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.new renamed from Rules.make +1 -1
@@ -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