From: Olaf Hering <olh@suse.de>
To: Tom Rini <trini@kernel.crashing.org>,
linuxppc-dev@ozlabs.org, Andrew Morton <akpm@osdl.org>
Subject: [PATCH] make -j12 all fails in uImage target
Date: Tue, 12 Jul 2005 23:29:28 +0200 [thread overview]
Message-ID: <20050712212928.GA6717@suse.de> (raw)
In-Reply-To: <20050206124014.GA5880@suse.de>
On Sun, Feb 06, Olaf Hering wrote:
>
> this is what I got with 2.6.11rc3:
>
> make ARCH=ppc O=../O-2.6.11-rc3-b50-SMP -j12 all
> ...
> LD vmlinux
> SYSMAP System.map
> SYSMAP .tmp_System.map
> OBJCOPY arch/ppc/boot/images/vmlinux.bin
> HOSTCC arch/ppc/boot/utils/addnote
> HOSTCC arch/ppc/boot/utils/mknote
> HOSTCC arch/ppc/boot/utils/mkprep
> LD arch/ppc/boot/lib/built-in.o
> HOSTCC arch/ppc/boot/utils/hack-coff
> HOSTCC arch/ppc/boot/utils/mkbugboot
> OBJCOPY arch/ppc/boot/images/vmlinux.bin
> GZIP arch/ppc/boot/images/vmlinux.gz
> /bin/sh: line 1: arch/ppc/boot/images/vmlinux.bin: No such file or directory
> make[2]: *** [arch/ppc/boot/images/vmlinux.gz] Error 1
> make[1]: *** [uImage] Error 2
> make[1]: *** Waiting for unfinished jobs....
>
> also, one time that zImage.chrp was only 570K instead of the expected
> 1.4M, so netboot failed. But I got no build error.
make -j zImage may call if_changed twice at the same time,
the result is a corrupted vmlinux.gz
write to a temporary file for the time being until someone with
make skills fix the serialization properly.
Signed-off-by: Olaf Hering <olh@suse.de>
arch/ppc/boot/images/Makefile | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletion(-)
Index: linux-2.6.13-rc2-olh/arch/ppc/boot/images/Makefile
===================================================================
--- linux-2.6.13-rc2-olh.orig/arch/ppc/boot/images/Makefile
+++ linux-2.6.13-rc2-olh/arch/ppc/boot/images/Makefile
@@ -6,12 +6,17 @@ MKIMAGE := $(srctree)/scripts/mkuboot.s
extra-y := vmlinux.bin vmlinux.gz
+# two make processes may write to vmlinux.gz at the same time with make -j
+quiet_cmd_mygzip = GZIP $@
+cmd_mygzip = gzip -f -9 < $< > $@.$$$$ && mv $@.$$$$ $@
+
+
OBJCOPYFLAGS_vmlinux.bin := -O binary
$(obj)/vmlinux.bin: vmlinux FORCE
$(call if_changed,objcopy)
$(obj)/vmlinux.gz: $(obj)/vmlinux.bin FORCE
- $(call if_changed,gzip)
+ $(call if_changed,mygzip)
quiet_cmd_uimage = UIMAGE $@
cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A ppc -O linux -T kernel \
next prev parent reply other threads:[~2005-07-12 21:29 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-06 12:40 make -j12 all fails in uImage target Olaf Hering
2005-02-06 21:51 ` Tom Rini
2005-02-06 21:57 ` Olaf Hering
2005-02-06 22:53 ` Sam Ravnborg
2005-02-06 23:43 ` Benjamin Herrenschmidt
2005-02-07 5:39 ` Sam Ravnborg
2005-02-06 23:50 ` Tom Rini
2005-02-07 8:29 ` Olaf Hering
2005-02-16 15:54 ` Tom Rini
2005-05-25 21:34 ` Olaf Hering
2005-07-12 21:29 ` Olaf Hering [this message]
2005-07-12 21:36 ` [PATCH] " Tom Rini
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=20050712212928.GA6717@suse.de \
--to=olh@suse.de \
--cc=akpm@osdl.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=trini@kernel.crashing.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.