From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Building cvs emacs on a dual-core machine Date: Fri, 22 Dec 2006 23:50:11 +0200 Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: dough.gmane.org X-Trace: sea.gmane.org 1166824336 8961 80.91.229.10 (22 Dec 2006 21:52:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 22 Dec 2006 21:52:16 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 22 22:52:14 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GxsJH-0003z2-Kj for ged-emacs-devel@m.gmane.org; Fri, 22 Dec 2006 22:52:13 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GxsJ8-0003kM-Vh for ged-emacs-devel@m.gmane.org; Fri, 22 Dec 2006 16:52:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GxsIv-0003ib-I5 for emacs-devel@gnu.org; Fri, 22 Dec 2006 16:51:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GxsIp-0003gC-NZ for emacs-devel@gnu.org; Fri, 22 Dec 2006 16:51:48 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GxsIp-0003g6-Fa for emacs-devel@gnu.org; Fri, 22 Dec 2006 16:51:43 -0500 Original-Received: from [192.114.186.66] (helo=romy.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GxsHu-0003QE-4L for emacs-devel@gnu.org; Fri, 22 Dec 2006 16:51:28 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-74-14.inter.net.il [80.230.74.14]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id GPM98561 (AUTH halo1); Fri, 22 Dec 2006 23:50:06 +0200 (IST) Original-To: Eric Lilja In-reply-to: (message from Eric Lilja on Thu, 21 Dec 2006 01:14:45 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:64134 Archived-At: > From: Eric Lilja > Date: Thu, 21 Dec 2006 01:14:45 +0100 > > Eli Zaretskii wrote: > >> From: Eric Lilja > >> Date: Wed, 20 Dec 2006 22:03:56 +0100 > >> > >> Ok, here's where it errors out (same with --jobs=2 and --jobs=4): > >> gcc -I. -DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=0x0400 -D_X86_=1 -c > >> -mno-cygwin -mtune=pentium4 -O2 -Di386 -D_CRTAPI1 > >> =_cdecl -o oo-spd/i386/preprep.o preprep.c > >> gcc -o oo-spd/i386/preprep.exe \ > >> -mno-cygwin oo-spd/i386/preprep.o > >> > >> Essential Lisp files seem to be missing. You should either > >> do `make bootstrap' or create `lisp/abbrev.elc' somehow. > >> > >> mingw32-make: *** [maybe-bootstrap-SH] Error 255 > >> > >> Yes, sorry, I'm on Windows. > > > > That's an important piece of knowledge ;-) > > > > What version of Make do you have? What does "mingw32-make --version" > > print? The --jobs option started to work correctly on Windows only in > > the latest version 3.81 of GNU Make. If you don't have that version > > of Make, --jobs will be very unreliable on Windows. > > $ mingw32-make --version > GNU Make 3.81 I found and fixed several problems with Windows makefile's which prevented parallel builds. Please resync with CVS and try again, I hope it will work now. Note that, since the native Windows build of Make (including mingw32-make) doesn't yet support the jobserver feature, it by default invokes sub-Make's with --jobs=1 switch, and thus defeats parallelism in recursive Make invocations. I made a provision for working around this; to use it, invoke the top-level Make in the nt/ subdirectory like this: mingw32-make bootstrap --jobs=2 XMFLAGS="--jobs=2" The XMFLAGS variable is used to pass an explicit --jobs option to sub-Make's, overriding the default --jobs=1. (There's no requirement that the argument to --jobs on the command line must be identical to what you put in XMFLAGS, you can use different numbers if you wish.) Please tell if you have any additional problems with parallel builds on Windows. And thanks again for drawing our attention to this.