From owner-freebsd-stable Tue Jan 22 12:12:47 2002 Delivered-To: freebsd-stable@freebsd.org Received: from femail11.sdc1.sfba.home.com (femail11.sdc1.sfba.home.com [24.0.95.107]) by hub.freebsd.org (Postfix) with ESMTP id 417DA37B404 for ; Tue, 22 Jan 2002 12:12:44 -0800 (PST) Received: from math.missouri.edu ([24.12.197.197]) by femail11.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with ESMTP id <20020122201243.WXES3699.femail11.sdc1.sfba.home.com@math.missouri.edu>; Tue, 22 Jan 2002 12:12:43 -0800 Message-ID: <3C4DC7B6.B6C55696@math.missouri.edu> Date: Tue, 22 Jan 2002 14:12:38 -0600 From: Stephen Montgomery-Smith X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.2 i386) X-Accept-Language: en MIME-Version: 1.0 To: mikea Cc: freebsd-stable@FreeBSD.ORG Subject: Re: Error in make buildworld References: <3C4D86A0.1BDE2840@math.missouri.edu> <20020122094857.A5407@mikea.ath.cx> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG mikea wrote: > > On Tue, Jan 22, 2002 at 09:34:56AM -0600, Stephen Montgomery-Smith wrote: > > I have recent sources (the most recent CTM delta). I do make -j4 > > buildworld > > on three different computers. It works on two of them, but on one of > > them (the fastest), I get: > > > > ===> usr.sbin/i4b/ispppcontrol > > rm -f .depend > > mkdep -f .depend -a -I/usr/obj/usr/src/i386/usr/include > > /usr/src/usr.sbin/i4b/ispppcontrol/ispppcontrol.c > > cd /usr/src/usr.sbin/i4b/ispppcontrol; make _EXTRADEPEND > > echo ispppcontrol: /usr/obj/usr/src/i386/usr/lib/libc.a >> .depend > > ===> usr.sbin/i4b/man > > ===> usr.sbin/boot0cfg > > rm -f .depend > > mkdep -f .depend -a -I/usr/obj/usr/src/i386/usr/include > > /usr/src/usr.sbin/boot0cfg/boot0cfg.c > > cd /usr/src/usr.sbin/boot0cfg; make _EXTRADEPEND > > echo boot0cfg: /usr/obj/usr/src/i386/usr/lib/libc.a >> .depend > > 1 error > > *** Error code 2 > > 1 error > > *** Error code 2 > > 1 error > > > > I didn't get this problem when I removed the -j4. This computer had a > > hard drive failure a few months ago, and the replacement drive is > > exceedingly fast. So maybe this computer is "too fast" for -j4 to > > work. As computers get faster and faster, maybe more and more people > > will have this problem. > > This is a known difficulty with multiple make threads. Note that > I do _NOT_ call it a problem. It is caused by a thread that > needs getting to the part that expects to have been > built before the thread that actually builds gets to the > build-foo code. I have found that I frequently can reissue the > same command and will get built before it is required by > something in another thread, and the make will run to completion > the second time. > But shouldn't the make wait until the first thread finishes before starting the dependent thread? (But I guess if the computer is really fast, it doesn't matter if you don't have -j4. make buildworld takes 45 minutes on the "fast" machine.) -- Stephen Montgomery-Smith stephen@math.missouri.edu http://www.math.missouri.edu/~stephen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message