linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fixing volume_id Makefile for parallel make
@ 2007-05-03 17:19 Matthias Schwarzott
  2007-05-03 21:29 ` Kay Sievers
  0 siblings, 1 reply; 2+ messages in thread
From: Matthias Schwarzott @ 2007-05-03 17:19 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 1011 bytes --]

Hi!

Calling parallel make with ugly options to allow forking real huge number of 
processes seems to break on machines with more cpus.

  CC       .shlib/squashfs.o
  CC       .shlib/vxfs.o
Assembler messages:
FATAL: can't create .shlib/util.o: No such file or directory
  CC       .shlib/ocfs.o
  CC       .shlib/luks.o
  CC       .shlib/gfs.o
Assembler messages:
FATAL: can't create .shlib/netware.o: No such file or directory
make[2]: *** [.shlib/util.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [.shlib/netware.o] Error 1


As compiling .shlib/*.o needs the directory .shlib, but it does not state that 
in makefile:

Only this command list .shlib as dependency:
$(SHLIB): $(HEADERS) .shlib $(addprefix .shlib/,$(OBJS))

But make knows that .shlib/*.o does not depend on .shlib explicitly
.shlib/%.o: %.c

changing that to 
.shlib/%.o: %.c .shlib
makes it no longer fail on missing directory.

http://bugs.gentoo.org/show_bug.cgi?id=176918

Matthias
-- 
Matthias Schwarzott (zzam)

[-- Attachment #2: udev-shlib-make-depend.diff --]
[-- Type: text/x-diff, Size: 378 bytes --]

diff --git a/extras/volume_id/lib/Makefile b/extras/volume_id/lib/Makefile
index fafcc52..5618b96 100644
--- a/extras/volume_id/lib/Makefile
+++ b/extras/volume_id/lib/Makefile
@@ -69,7 +69,7 @@ all: libvolume_id.a $(SHLIB) libvolume_id.pc
 .shlib:
 	$(Q) mkdir .shlib
 
-.shlib/%.o: %.c
+.shlib/%.o: %.c .shlib
 	$(E) "  CC      " $@
 	$(Q) $(CC) -c $(CFLAGS) -fPIC $< -o $@
 

[-- Attachment #3: Type: text/plain, Size: 286 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

[-- Attachment #4: Type: text/plain, Size: 226 bytes --]

_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fixing volume_id Makefile for parallel make
  2007-05-03 17:19 [PATCH] Fixing volume_id Makefile for parallel make Matthias Schwarzott
@ 2007-05-03 21:29 ` Kay Sievers
  0 siblings, 0 replies; 2+ messages in thread
From: Kay Sievers @ 2007-05-03 21:29 UTC (permalink / raw)
  To: linux-hotplug

On 5/3/07, Matthias Schwarzott <zzam@gentoo.org> wrote:
> Calling parallel make with ugly options to allow forking real huge number of
> processes seems to break on machines with more cpus.
>
>   CC       .shlib/squashfs.o
>   CC       .shlib/vxfs.o
> Assembler messages:
> FATAL: can't create .shlib/util.o: No such file or directory
>   CC       .shlib/ocfs.o
>   CC       .shlib/luks.o
>   CC       .shlib/gfs.o
> Assembler messages:
> FATAL: can't create .shlib/netware.o: No such file or directory
> make[2]: *** [.shlib/util.o] Error 1
> make[2]: *** Waiting for unfinished jobs....
> make[2]: *** [.shlib/netware.o] Error 1
>
>
> As compiling .shlib/*.o needs the directory .shlib, but it does not state that
> in makefile:
>
> Only this command list .shlib as dependency:
> $(SHLIB): $(HEADERS) .shlib $(addprefix .shlib/,$(OBJS))
>
> But make knows that .shlib/*.o does not depend on .shlib explicitly
> .shlib/%.o: %.c
>
> changing that to
> .shlib/%.o: %.c .shlib
> makes it no longer fail on missing directory.
>
> http://bugs.gentoo.org/show_bug.cgi?id\x176918

Nice. Applied.

Thanks,
Kay

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-05-03 21:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-03 17:19 [PATCH] Fixing volume_id Makefile for parallel make Matthias Schwarzott
2007-05-03 21:29 ` Kay Sievers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).