From: Sudish Joseph <sudish@gmail.com>
To: chad <yandros@MIT.EDU>
Cc: "emacs-devel@gnu.org discussions" <emacs-devel@gnu.org>
Subject: Re: parallel compilation --with-ns
Date: Mon, 10 Sep 2012 14:25:55 -0400 [thread overview]
Message-ID: <m17gs1buq4.fsf@barca.uss.net> (raw)
In-Reply-To: <3768F0AC-B40F-4356-90A8-47C6C6D1B270@mit.edu> (chad's message of "Thu, 6 Sep 2012 09:19:15 -0700")
chad <yandros@MIT.EDU> 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
next prev parent reply other threads:[~2012-09-10 18:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-06 3:13 Speeding up parallel compilation Stefan Monnier
2012-09-06 12:32 ` joakim
2012-09-06 14:30 ` Stefan Monnier
2012-09-06 16:19 ` parallel compilation --with-ns (was: re: Speeding up parallel compilation) chad
2012-09-06 16:21 ` parallel compilation --with-ns Paul Eggert
2012-09-10 18:25 ` Sudish Joseph [this message]
2012-09-10 20:41 ` chad
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m17gs1buq4.fsf@barca.uss.net \
--to=sudish@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=yandros@MIT.EDU \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).