Re: 2.6.8.1-mm1: parallel make doesn't.

William Lee Irwin III
2004-08-18T00:08:38Z

On Wed, Aug 18, 2004 at 10:01:11AM +1000, Rusty Russell wrote:
> Need to make the first few files without -j, othewise it barfs. This is
> a regression over 2.6.8.1 (sorry, don't know when it crept into the -mm
> tree). .config attached in case it matters.
> cd ~/devel/kernel/.28758-linux-2.6.8.1-mm1.updated/
> make -j5
> CHK include/linux/version.h
> SYMLINK include/asm -> include/asm-i386
> UPD include/linux/version.h
> SPLIT include/linux/autoconf.h -> include/config/*
> make: *** No rule to make target `.tmp_kallsyms2.S', needed by
> `.tmp_kallsyms2.o'. Stop.
> make: *** Waiting for unfinished jobs....
> make: *** Waiting for unfinished jobs....
> make: *** Waiting for unfinished jobs....
> Compilation exited abnormally with code 2 at Wed Aug 18 09:54:47

Sam Ravnborg already posted a fix. Yes, the semicolon is necessary.

Index: mm1-2.6.8.1/Makefile
===================================================================
--- mm1-2.6.8.1.orig/Makefile 2004-08-16 23:47:11.979962024 -0700
+++ mm1-2.6.8.1/Makefile 2004-08-17 00:03:56.918188192 -0700
@@ -610,6 +610,8 @@
.tmp_vmlinux3: $(vmlinux-objs) .tmp_kallsyms2.o arch/$(ARCH)/kernel/vmlinux.lds FORCE
$(call if_changed_rule,vmlinux__)

+$(KALLSYMS): scripts;
+
endif

# Finally the vmlinux rule