From: Elad Lahav <elahav@blackberry.com>
To: "eliz@gnu.org" <eliz@gnu.org>
Cc: "eggert@cs.ucla.edu" <eggert@cs.ucla.edu>,
"Emacs-devel@gnu.org" <Emacs-devel@gnu.org>
Subject: Re: Emacs on QNX
Date: Thu, 30 Nov 2017 17:43:44 +0000 [thread overview]
Message-ID: <1512063823.24472.8.camel@blackberry.com> (raw)
In-Reply-To: <83inejqsca.fsf@gnu.org>
On Thu, 2017-11-09 at 19:23 +0200, Eli Zaretskii wrote:
> I think you definitely need to increase the stack. Emacs needs at
> least 2MB of stack space; on MS-Windows we use 8MB, and for a good
> reason. So 512K is definitely too little.
Sorry, it took me a while to get back to this.
The following patch fixes the problem, and emacs/HEAD now builds and
runs on QNX:
=====
diff --git a/configure.ac b/configure.ac
index 469ad00eaa..e0944dd12b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -702,7 +702,11 @@ AC_DEFUN
## QNX Neutrino
*-nto-qnx* )
opsys=qnxnto
+ ## Need to use qcc and the -N flag to increase the default stack
+ ## size for the main thread.
+ CC=qcc
CFLAGS="$CFLAGS -D__NO_EXT_QNX"
+ LDFLAGS=-N2MB
;;
## Intel 386 machines where we don't care about the manufacturer.
=====
qcc is a simple wrapper around gcc. It takes some extra arguments,
including -N, which sets the stack size of the main thread.
For the record, this is the command line I used to configure emacs:
# LIBXML2_CFLAGS=-I/usr/include LIBXML2_LIBS=-lxml2 -lm ./configure
--without-makeinfo --with-gnutls=no --with-x-toolkit=no
The LIBXML2_CFLAGS variable is bogus, as no special flags are required.
However, unless this variable being is set to a non-empty string the
configure script tries to use pkg-config for libxml2, which doesn't
work.
--Elad
next prev parent reply other threads:[~2017-11-30 17:43 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-22 22:13 Emacs on QNX Elad Lahav
2017-10-23 4:51 ` Paul Eggert
2017-10-23 11:27 ` Elad Lahav
2017-10-24 1:52 ` Elad Lahav
2017-10-24 20:14 ` Paul Eggert
2017-10-25 2:27 ` Elad Lahav
2017-10-26 3:52 ` Paul Eggert
2017-11-09 17:17 ` Elad Lahav
2017-11-09 17:23 ` Eli Zaretskii
2017-11-30 17:43 ` Elad Lahav [this message]
2017-11-30 23:41 ` Paul Eggert
2017-12-01 2:06 ` Elad Lahav
2017-12-01 3:37 ` Paul Eggert
2017-12-01 11:55 ` Elad Lahav
2017-12-11 0:25 ` Elad Lahav
2017-11-09 17:30 ` Noam Postavsky
2017-11-09 17:33 ` Elad Lahav
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=1512063823.24472.8.camel@blackberry.com \
--to=elahav@blackberry.com \
--cc=Emacs-devel@gnu.org \
--cc=eggert@cs.ucla.edu \
--cc=eliz@gnu.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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.