From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sudish Joseph Newsgroups: gmane.emacs.devel Subject: Re: parallel compilation --with-ns Date: Mon, 10 Sep 2012 14:25:55 -0400 Message-ID: References: <3768F0AC-B40F-4356-90A8-47C6C6D1B270@mit.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1347301573 16945 80.91.229.3 (10 Sep 2012 18:26:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Sep 2012 18:26:13 +0000 (UTC) Cc: "emacs-devel@gnu.org discussions" To: chad Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 10 20:26:15 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TB8gW-00033z-3l for ged-emacs-devel@m.gmane.org; Mon, 10 Sep 2012 20:26:12 +0200 Original-Received: from localhost ([::1]:42025 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB8gS-0002Cg-MV for ged-emacs-devel@m.gmane.org; Mon, 10 Sep 2012 14:26:08 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33674) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB8gM-0002C4-Fu for emacs-devel@gnu.org; Mon, 10 Sep 2012 14:26:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TB8gH-0007yY-Tg for emacs-devel@gnu.org; Mon, 10 Sep 2012 14:26:02 -0400 Original-Received: from mail-gh0-f180.google.com ([209.85.160.180]:33019) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB8gH-0007yL-PB for emacs-devel@gnu.org; Mon, 10 Sep 2012 14:25:57 -0400 Original-Received: by ghbg10 with SMTP id g10so501002ghb.39 for ; Mon, 10 Sep 2012 11:25:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=ogpmql0wCDqRR99ozPEmW9/4bnEE1tnB1+NiRX+uKDM=; b=XbnSTj/CbKzOp9E4Wkn8uxzKF2tSSqcWX0bg4BcVDpqgnXXpvDYd12g239M5R4+IrX NuU+fRzmlpAlRUOUnP4o02yIsECZVuCBCtB0EChvKRPMVWd0UmDO/KSSdpc37hRAupPT IPcidWbXW0DKkXPSmFuC9Xf7ilbcwC2F9Kci8fESpr/rDl2PHRszdW45nIRvybZzFsTW nHmnZyWKQIqHRhgb5UzpZWTcyUfXxsLqhK9Kl4GsuPkXF5l6EIJ4FBJ5NH9645MGepdH nY9MHpZFFG9B51IdSPZC3KGEyr85Af9ZrmgzslyR7jwTVJRscm6kf97Vd2ZXaOvuzYaB dwRw== Original-Received: by 10.236.161.195 with SMTP id w43mr13079805yhk.42.1347301556932; Mon, 10 Sep 2012 11:25:56 -0700 (PDT) Original-Received: from barca.uss.net (ip-66-147-172-7.incomm.com. [66.147.172.7]) by mx.google.com with ESMTPS id l7sm25729061yhk.22.2012.09.10.11.25.56 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 10 Sep 2012 11:25:56 -0700 (PDT) In-Reply-To: <3768F0AC-B40F-4356-90A8-47C6C6D1B270@mit.edu> (chad's message of "Thu, 6 Sep 2012 09:19:15 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (darwin) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.160.180 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:153219 Archived-At: chad writes: > Under macosx (i.e. --with-ns), I've tried using 'make -j4' off > and on over the years, and frequently run into problems during > the build. I end up without a complete nextstep/Emacs.app most of > the time, and it seems to be a problem with directories not being > created before one of the workers wants to use it. Three > questions: > > 1.) Is the ns-app code known to be unable to use parallel > compilation? I was doing regular make -j8 builds of the ns port up until a few months ago and had no problems with it. > 2.) Does it matter that I do full rebuilds each time, starting > with autogen.sh and ending with make bootstrap install)? Here's the essence of the function I use to build the ns port. sj_emacsbuild () { local build_dir rm -rf sj-build.* build_dir=sj-build.$$ sh ./autogen.sh mkdir $build_dir || { echo "couldn't mkdir $build_dir: $!" return 1 } cd $build_dir env "$EMACS_CC_FLAGS[@]" ../configure "$EMACS_CONF_FLAGS[@]" && nice -n 20 make -j8 && nice -n 20 make install } I then copy over Emacs.app to ~/Applications using a separate func. You don't need to do a explicit make bootstrap, iirc. "make maintainer-clean && make -j8" does a full build. I used to have "git clean -xfd" in the build func above but didn't adjust for that when switching to the bzr tree. I.e., full builds should work in parallel with the ns port. -Sudish