Subject: Building emacs on Solaris
To: None <email@example.com>
From: Peter Schuller <firstname.lastname@example.org>
Date: 12/25/2006 17:16:34
install emacs with GCC 3.4.5 on Solaris Express nvb54 fails with:
gmake: Entering directory
../src/emacs -batch -l /usr/pkgsrc/editors/emacs/work/emacs-21.4/lib-src/../lisp/mail/blessmail.el
Fatal error (11).gmake: *** [blessmail] Segmentation Fault (core dumped)
gmake: *** Deleting file `blessmail'
gmake: Leaving directory
gmake: *** [blessmail] Error 2
*** Error code 2
The problem is caused by the resulting emacs binary coredumping on exit. The
above symptome, aswell as the core dump generated by emacs (crashing in #6
0x0808c2c5 in __do_global_dtors_aux ()), all seem to indicate that this is
the problem discussed here:
And in some other places.
However, emacs *IS* being compiled with -fno-initialized-in-bss, as per
I have also verified through "bmake show-var" and through inspecting the build
log with PKG_DEBUG_LEVEL=2 that -fno-zero-initialized-in-bss is indeed being
used during the build.
Compiling a sample file:
int test = 0;
with and without -fno-zero-initialized-in-bss does yield the expected 4 byte
difference in the size of the resulting binary, which I take as an indication
that the option has not somehow been disabled in GCC.
Can anyone shed some light on this?
/ Peter Schuller, InfiDyne Technologies HB
PGP userID: 0xE9758B7D or 'Peter Schuller <email@example.com>'
Key retrieval: Send an E-Mail to firstname.lastname@example.org
E-Mail: email@example.com Web: http://www.scode.org