unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* couldn't build emacs 21.4
@ 2005-02-10 13:21 Maurizio Loreti
  2005-02-10 23:45 ` Henrik Enberg
  0 siblings, 1 reply; 3+ messages in thread
From: Maurizio Loreti @ 2005-02-10 13:21 UTC (permalink / raw)


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

yes, I have read etc/PROBLEMS saying that this kind of error may
happen on mac ppc's running yellow dog gnu/Linux; but I am on a
pentium-3 machine running fedora core-3.

                                        any hint?

-- 
Maurizio Loreti                         http://www.pd.infn.it/~loreti/mlo.html
Dept. of Physics, Univ. of Padova, Italy              ROT13: ybergv@cq.vasa.vg

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

* Re: couldn't build emacs 21.4
  2005-02-10 13:21 couldn't build emacs 21.4 Maurizio Loreti
@ 2005-02-10 23:45 ` Henrik Enberg
  2005-02-11 12:46   ` Maurizio Loreti
  0 siblings, 1 reply; 3+ messages in thread
From: Henrik Enberg @ 2005-02-10 23:45 UTC (permalink / raw)


Maurizio Loreti <mlo@foobar.it> 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.

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

* Re: couldn't build emacs 21.4
  2005-02-10 23:45 ` Henrik Enberg
@ 2005-02-11 12:46   ` Maurizio Loreti
  0 siblings, 0 replies; 3+ messages in thread
From: Maurizio Loreti @ 2005-02-11 12:46 UTC (permalink / raw)


Henrik Enberg <henrik.enberg@telia.com> writes:

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

Thank you!  Your suggestion solved my problem.

-- 
Maurizio Loreti                         http://www.pd.infn.it/~loreti/mlo.html
Dept. of Physics, Univ. of Padova, Italy              ROT13: ybergv@cq.vasa.vg

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

end of thread, other threads:[~2005-02-11 12:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-10 13:21 couldn't build emacs 21.4 Maurizio Loreti
2005-02-10 23:45 ` Henrik Enberg
2005-02-11 12:46   ` Maurizio Loreti

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