From: Matthias Schwarzott <zzam@gentoo.org>
To: linux-hotplug@vger.kernel.org
Subject: [PATCH] Fixing volume_id Makefile for parallel make
Date: Thu, 03 May 2007 17:19:41 +0000 [thread overview]
Message-ID: <200705031919.41260.zzam@gentoo.org> (raw)
[-- 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
next reply other threads:[~2007-05-03 17:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-03 17:19 Matthias Schwarzott [this message]
2007-05-03 21:29 ` [PATCH] Fixing volume_id Makefile for parallel make Kay Sievers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200705031919.41260.zzam@gentoo.org \
--to=zzam@gentoo.org \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).