GNU bug report logs -
#4559
temacs core dump when compiling emacs under solaris
Previous Next
Reported by: snnn <snnn119 <at> gmail.com>
Date: Sat, 26 Sep 2009 03:40:06 UTC
Severity: normal
Tags: notabug, wontfix
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 4559 in the body.
You can then email your comments to 4559 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4559; Package
emacs.
(Sat, 26 Sep 2009 03:40:06 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
snnn <snnn119 <at> gmail.com>:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>.
(Sat, 26 Sep 2009 03:40:09 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
I have try to compile emacs under opensolaris. I got emacs from cvs this
morning. The compiling progress stoped at
make[2]: Leaving directory `/usr/software/emacs/lisp'
`/bin/pwd`/temacs --batch --load loadup bootstrap
make[1]: *** [bootstrap-emacs] Segmentation Fault (core dumped)
make[1]: Leaving directory `/usr/software/emacs/src'
make: *** [src] Error 2
backtrace:
#0 0x00000000005133d1 in Fdefine_charset_internal (nargs=17,
args=0xfffffd7fffdff3b0) at charset.c:1268
#1 0x0000000000513775 in define_charset_internal (name=2305843009227275568,
dimension=3, code_space=0x71eda8 "", min_code=0, max_code=1114111,
iso_final=-1, iso_revision=0, emacs_mule_id=-1, ascii_compatible=1,
supplementary=0, code_offset=0) at charset.c:1341
#2 0x000000000051a36a in syms_of_charset () at charset.c:2430
#3 0x00000000005da26d in main (argc=5, argv=0xfffffd7fffdff658)
at emacs.c:1380
the configure arg is:
./configure CC=gcc-4.3.2 CXX=g++-4.3.2 CFLAGS="-m64 -ggdb -mtune=native"
CXXFLAGS="-m64 -ggdb -mtune=native" LDFLAGS="-m64" --with-gif=no
--with-xft=no
My OS version is: opensolaris 2009.6
SunOS opensolaris 5.11 snv_111b i86pc i386 i86pc Solaris
bug reassigned from package 'emacs' to 'emacs,solaris'.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> emacsbugs.donarmstrong.com.
(Sat, 26 Sep 2009 20:20:07 GMT)
Full text and
rfc822 format available.
bug reassigned from package 'emacs,solaris' to 'emacs'.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org.
(Tue, 30 Mar 2010 07:12:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#4559; Package
emacs.
(Mon, 13 Sep 2010 10:35:02 GMT)
Full text and
rfc822 format available.
Message #12 received at 4559 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi,
I faced the same issue on Solaris 10 x86 while building a 64-bit emacs. Eventually, it turned out to be a wrong build host (guessed by config.guess) causing the segfault.
<<<< from config.guess >>>>
i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
eval $set_cc_for_build
SUN_ARCH="i386"
# If there is a compiler, see if it is configured for 64-bit objects.
# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
# This test works for both compilers.
if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
grep IS_64BIT_ARCH >/dev/null
then
SUN_ARCH="x86_64"
fi
fi
echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
<<<< from config.guess >>>>
config.guess sets SUN_ARCH to 'x86_64' only if preprocessor defines '__amd64' - however, the config.guess script does not use the CFLAGS passed (which actually sets -m64) for this preprocessor check and hence the build host is not set correctly.
Passing an explicit "--build=x86_64-pc-solaris2.10" to the configure script or setting CC="<compiler> -m64" solves the issue.
Hope this helps.
Thanks. Rajesh
[Message part 2 (text/html, inline)]
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#4559; Package
emacs.
(Mon, 13 Sep 2010 14:46:02 GMT)
Full text and
rfc822 format available.
Message #15 received at 4559 <at> debbugs.gnu.org (full text, mbox):
"Mandalemula, Rajesh" <Rajesh.Mandalemula <at> deshaw.com> writes:
> config.guess sets SUN_ARCH to 'x86_64' only if preprocessor defines '__amd64' - however, the config.guess script does not use the CFLAGS passed (which actually sets -m64) for this preprocessor check and hence the build host is not set correctly.
You should put -m64 into CC, not CFLAGS.
Andreas.
--
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#4559; Package
emacs.
(Tue, 14 Sep 2010 04:27:01 GMT)
Full text and
rfc822 format available.
Message #18 received at submit <at> debbugs.gnu.org (full text, mbox):
On 9/13/10 8:47 AM, Andreas Schwab wrote:
> "Mandalemula, Rajesh"<Rajesh.Mandalemula <at> deshaw.com> writes:
>
>> config.guess sets SUN_ARCH to 'x86_64' only if preprocessor defines '__amd64' - however, the config.guess script does not use the CFLAGS passed (which actually sets -m64) for this preprocessor check and hence the build host is not set correctly.
>
> You should put -m64 into CC, not CFLAGS.
Because?
--
Kevin Rodgers
Denver, Colorado, USA
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#4559; Package
emacs.
(Tue, 14 Sep 2010 08:01:02 GMT)
Full text and
rfc822 format available.
Message #21 received at submit <at> debbugs.gnu.org (full text, mbox):
Kevin Rodgers <kevin.d.rodgers <at> gmail.com> writes:
> On 9/13/10 8:47 AM, Andreas Schwab wrote:
>> "Mandalemula, Rajesh"<Rajesh.Mandalemula <at> deshaw.com> writes:
>>
>>> config.guess sets SUN_ARCH to 'x86_64' only if preprocessor defines '__amd64' - however, the config.guess script does not use the CFLAGS passed (which actually sets -m64) for this preprocessor check and hence the build host is not set correctly.
>>
>> You should put -m64 into CC, not CFLAGS.
>
> Because?
Because it's a different compiler.
Andreas.
--
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Reply sent
to
Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility.
(Thu, 06 Oct 2011 06:56:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
snnn <snnn119 <at> gmail.com>:
bug acknowledged by developer.
(Thu, 06 Oct 2011 06:56:04 GMT)
Full text and
rfc822 format available.
Message #26 received at 4559-done <at> debbugs.gnu.org (full text, mbox):
tag 4559 notabug wontfix
stop
So in summary it sounds like this not an Emacs bug, but rather that one
should put -m64 in CC rather than CFLAGS.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org.
(Thu, 03 Nov 2011 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 12 years and 266 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.