From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Henrik Enberg Newsgroups: gmane.emacs.help Subject: Re: couldn't build emacs 21.4 Date: Fri, 11 Feb 2005 00:45:04 +0100 Organization: Le Petomane Appreciation Society Message-ID: <87wttg3rpb.fsf@telia.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1108079248 27579 80.91.229.2 (10 Feb 2005 23:47:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 10 Feb 2005 23:47:28 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 11 00:47:28 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1CzO1h-0000Kv-2L for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Feb 2005 00:47:13 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CzOGV-0002im-TF for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Feb 2005 19:02:32 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.tiscali.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 63 Original-X-Trace: individual.net c0JkKjlEmIn4MirNDDBPBgMMETfH5aUGpEPB2kX2JHsVVK2BZp X-Now-Playing: Van Morrison - Astral Weeks User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:GAKZE3owAaL6zLUoOYXIyVyb2J8= Original-Xref: shelby.stanford.edu gnu.emacs.help:128486 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: main.gmane.org gmane.emacs.help:24018 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:24018 Maurizio Loreti writes: > MLO@lapcdf 41 $ gcc --version > gcc (GCC) 3.4.3 > Copyright (C) 2004 Free Software Foundation, Inc. > ... > > the steps followed are: > > - unpack and untar emacs-21.4 > - unpack and untar leim-21.3 > - mv emacs-21.3/leim/* emacs-21.4/leim/ > - cd emacs-21.4 > - CFLAGS=-O2 ./configure > - make > ... > Loading ediff-hook... > ((51645 . 15317) (8352 . 0) (511 . 56) 72130 134860 (14 . 9) (21 . 0) (7132 > . 1436)) > Finding pointers to doc strings... > Finding pointers to doc strings...done > Wrote /home/loreti/work/emacs-21.4/lib-src/fns-21.4.1.el > Dumping under names emacs and emacs-21.4.1 > make[1]: *** [emacs] Segmentation fault > make[1]: *** Deleting file `emacs' > make[1]: Leaving directory `/home/loreti/work/emacs-21.4/src' > make: *** [src] Error 2 >>From the PROBLEMS file of CVS Emacs: With certain recent Linux kernels (like the one of Redhat Fedora Core 1 and 2), the new "Exec-shield" functionality is enabled by default, which creates a different memory layout that breaks the emacs dumper. Configure can overcome the problem of exec-shield if the architecture is x86 and the program setarch is present. On other architectures no workaround is known. You can check the Exec-shield state like this: cat /proc/sys/kernel/exec-shield It returns non-zero when Exec-shield is enabled, 0 otherwise. Please read your system documentation for more details on Exec-shield and associated commands. Exec-shield can be turned off with this command: echo "0" > /proc/sys/kernel/exec-shield When Exec-shield is enabled, building Emacs will segfault during the execution of this command: ./temacs --batch --load loadup [dump|bootstrap] To work around this problem, it is necessary to temporarily disable Exec-shield while building Emacs, or, on x86, by using the `setarch' command when running temacs like this: setarch i386 ./temacs --batch --load loadup [dump|bootstrap] Note that the "configure can overcome the problem" bit probably doesn't apply to 21.4.