All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Uwe Kleine-König" <Uwe.Kleine-Koenig@digi.com>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: linux-kbuild@vger.kernel.org
Subject: Re: Problems with parallel building
Date: Thu, 7 Feb 2008 08:56:25 +0100	[thread overview]
Message-ID: <20080207075625.GA6757@digi.com> (raw)
In-Reply-To: <20080207064015.GA5235@digi.com>

Uwe Kleine-König wrote:
> Hi Sam,
> 
> Sam Ravnborg wrote:
> > On Tue, Feb 05, 2008 at 03:23:43PM +0100, Uwe Kleine-König wrote:
> > > Hello,
> > > 
> > > using v2.6.24-7284-g9ef9dc6 (plus some patches that shouldn't affect
> > > kbuild) I have problems with parallel building (make -j 3).  Sometimes
> > > the build fails, the error isn't always the same.
> > 
> > Hi Uwe.
> > 
> > Is this new behaviour?
> I'm not sure, because I only recently created some scripts that use -j 3
> and use them frequently.  I'd say it started around 2.6.23 ...
> 
> > If it is it would be nice if you could bisect when it happened.
> > One suspect could be:
> > 18c32dac75b187d1a4e858f3cfdf03e844129f5e
> > or
> > 0b35786d77ba4037f181982cc8ca20a7a3bf0fd2
> ... which could match the latter.
> 
> > but they should only be relevant when you use O=...
> I do use O=...
> 
> I will try to bisect it and let you know.
With e.g. v2.6.21 it's even worse.  I get for each build:

	...
	CRC32c (Castagnoli, et al) Cyclic Redundancy-Check (LIBCRC32C) [N/m/y/?] n
	#
	# configuration written to .config
	#
	  GEN     /home/ukleinek/tmp/buildtest/obj/Makefile
	  GEN     /home/ukleinek/tmp/buildtest/obj/Makefile
	  GEN     /home/ukleinek/tmp/buildtest/obj/Makefile
	scripts/kconfig/conf -s arch/arm/Kconfig
	scripts/kconfig/conf -s arch/arm/Kconfig
	scripts/kconfig/conf -s arch/arm/Kconfig
	  CHK     include/linux/version.h
	  UPD     include/linux/version.h
	  SYMLINK include/asm-arm/arch -> include/asm-arm/arch-ns9xxx
	  CHK     include/linux/version.h
	  CHK     include/linux/version.h
	  GEN     /home/ukleinek/tmp/buildtest/obj/Makefile
	  GEN     /home/ukleinek/tmp/buildtest/obj/Makefile
	  CHK     include/linux/utsrelease.h
	  UPD     include/linux/utsrelease.h
	make[2]: `/home/ukleinek/tmp/buildtest/linux-2.6/include/asm-arm/mach-types.h' is up to date.
	  Using /home/ukleinek/tmp/buildtest/linux-2.6 as source for kernel
	  /home/ukleinek/tmp/buildtest/linux-2.6 is not clean, please run 'make mrproper'
	  in the '/home/ukleinek/tmp/buildtest/linux-2.6' directory.
	make[1]: *** [prepare3] Error 1
	make: *** [uImage] Error 2
	make: *** Waiting for unfinished jobs....
	  CHK     include/linux/utsrelease.h
	make[2]: `/home/ukleinek/tmp/buildtest/linux-2.6/include/asm-arm/mach-types.h' is up to date.
	  Using /home/ukleinek/tmp/buildtest/linux-2.6 as source for kernel
	  /home/ukleinek/tmp/buildtest/linux-2.6 is not clean, please run 'make mrproper'
	  in the '/home/ukleinek/tmp/buildtest/linux-2.6' directory.
	make[1]: *** [prepare3] Error 1
	make: *** [zImage] Error 2
	  GEN     /home/ukleinek/tmp/buildtest/obj/Makefile
	  CHK     include/linux/utsrelease.h
	make[2]: `/home/ukleinek/tmp/buildtest/linux-2.6/include/asm-arm/mach-types.h' is up to date.
	  Using /home/ukleinek/tmp/buildtest/linux-2.6 as source for kernel
	  /home/ukleinek/tmp/buildtest/linux-2.6 is not clean, please run 'make mrproper'
	  in the '/home/ukleinek/tmp/buildtest/linux-2.6' directory.
	make[1]: *** [prepare3] Error 1
	make: *** [Image] Error 2
	make: INTERNAL: Exiting with 4 jobserver tokens available; should be 3!

The result is the same for v2.6.22 and v2.6.23.

Bisecting this yielded 0b35786d77ba4037f181982cc8ca20a7a3bf0fd2.

The script used for building is:

	#! /bin/bash -e

	seq -w 1 100 | while read i; do 
		echo "********************* run $i *************************";

		rm -rf ../obj;
		mkdir ../obj;

		delmake O=../obj ns9xxx_defconfig;

		if ! delmake O=../obj -j 3 uImage zImage Image; then
			break;
		fi;
	done;

Best regards
Uwe

-- 
Uwe Kleine-König, Software Engineer
Digi International GmbH Branch Breisach, Küferstrasse 8, 79206 Breisach, Germany
Tax: 315/5781/0242 / VAT: DE153662976 / Reg. Amtsgericht Dortmund HRB 13962

      reply	other threads:[~2008-02-07  7:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-05 14:23 Problems with parallel building Uwe Kleine-König
2008-02-06 21:51 ` Sam Ravnborg
2008-02-07  6:40   ` Uwe Kleine-König
2008-02-07  7:56     ` Uwe Kleine-König [this message]

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=20080207075625.GA6757@digi.com \
    --to=uwe.kleine-koenig@digi.com \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=sam@ravnborg.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.