From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthias Schwarzott Date: Thu, 03 May 2007 17:19:41 +0000 Subject: [PATCH] Fixing volume_id Makefile for parallel make Message-Id: <200705031919.41260.zzam@gentoo.org> MIME-Version: 1 Content-Type: multipart/mixed; boundary="Boundary-00=_tmhOGBHAmiMbh/p" List-Id: To: linux-hotplug@vger.kernel.org --Boundary-00=_tmhOGBHAmiMbh/p Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline 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) --Boundary-00=_tmhOGBHAmiMbh/p Content-Type: text/x-diff; charset="utf-8"; name="udev-shlib-make-depend.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="udev-shlib-make-depend.diff" 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 $@ --Boundary-00=_tmhOGBHAmiMbh/p Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- 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/ --Boundary-00=_tmhOGBHAmiMbh/p Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --Boundary-00=_tmhOGBHAmiMbh/p--