unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Emacs compilation problem
@ 2004-04-23 20:16 Philip S. Kong
  2004-04-23 21:59 ` Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: Philip S. Kong @ 2004-04-23 20:16 UTC (permalink / raw)


Hi,

I installed a down-sized fedora core 1. (With everything related to X
removed) I want to compile emacs from source but didn't get any good news.

_This is the configure setting._

./configure i586-althon-linux-gnu --prefix=/usr/local --disable-debug
--enable-final --with-x=no


_This is the configure result._
Configured for `i586-althon-linux-gnu'.

  Where should the build process find the source code?    /root/emacs-21.3
  What operating system and machine description files should Emacs use?
        `s/gnu-linux.h' and `m/intel386.h'
  What compiler should emacs be built with?               gcc -g -O2
  Should Emacs use the GNU version of malloc?             yes
      (Using Doug Lea's new malloc from the GNU C Library.)
  Should Emacs use a relocating allocator for buffers?    yes
  Should Emacs use mmap(2) for buffer allocation?         no
  What window system should Emacs use?                    none
  What toolkit should Emacs use?                          none
  Where do we find X Windows header files?                NONE
  Where do we find X Windows libraries?                   NONE
  Does Emacs use -lXaw3d?                                 no
  Does Emacs use -lXpm?                                   no
  Does Emacs use -ljpeg?                                  no
  Does Emacs use -ltiff?                                  no
  Does Emacs use -lungif?                                 no
  Does Emacs use -lpng?                                   no
  Does Emacs use X toolkit scroll bars?                   no

During make, an error like this occured.
_Error during make_

Loading buff-menu...
Loading float-sup...
((49937 . 16951) (7948 . 0) (475 . 61) 68066 134417 (13 . 9) (21 . 0)
(6945 . 1434))
Loading vc-hooks...
Loading ediff-hook...
((50891 . 15997) (8038 . 0) (476 . 60) 68962 134434 (13 . 9) (21 . 0)
(7004 . 1375))
Finding pointers to doc strings...
Finding pointers to doc strings...done
Wrote /root/emacs-21.3/lib-src/fns-21.3.1.el
Dumping under names emacs and emacs-21.3.1
make[1]: *** [emacs] Segmentation fault
make[1]: *** Deleting file `emacs'
make[1]: Leaving directory `/root/emacs-21.3/src'
make: *** [src] Error 2

Anyone got an idea what goes wrong?

Regards,
Philip S. Kong

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Emacs compilation problem
  2004-04-23 20:16 Emacs compilation problem Philip S. Kong
@ 2004-04-23 21:59 ` Stefan Monnier
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2004-04-23 21:59 UTC (permalink / raw)


> I installed a down-sized fedora core 1. (With everything related to X
> removed) I want to compile emacs from source but didn't get any good news.

The problem has nothing to do with X but with Fedora's security thingy:


        Stefan


* Segfault on GNU/Linux using certain recent versions of the Linux kernel.

With certain recent Linux kernels (like the one of Redhat Fedora Core
1), the new "Exec-shield" functionality is enabled by default, which
creates a different memory layout that breaks the emacs dumper.

You can check the Exec-shield state like this:

    cat /proc/sys/kernel/exec-shield

It returns 1 or 2 when Exec-shield is enabled, 0 otherwise.  Please
read your system documentation for more details on Exec-shield and
associated commands.

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, using the `setarch' command like
this:

    setarch i386 ./configure <configure parameters>
    setarch i386 make <make parameters>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-04-23 21:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-23 20:16 Emacs compilation problem Philip S. Kong
2004-04-23 21:59 ` Stefan Monnier

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).