From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Mandalemula, Rajesh" Newsgroups: gmane.emacs.bugs Subject: bug#4559: temacs core dump when compiling emacs under solaris Date: Mon, 13 Sep 2010 15:53:51 +0530 Message-ID: <6404320ADBB23E4BAB6DBFEB925CFFCD2796CE77B6@HYDMBX2.winmail.deshaw.com> References: <4ABD8AAD.9010400@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_6404320ADBB23E4BAB6DBFEB925CFFCD2796CE77B6HYDMBX2winmai_" X-Trace: dough.gmane.org 1284387764 13083 80.91.229.12 (13 Sep 2010 14:22:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Sep 2010 14:22:44 +0000 (UTC) To: "4559@debbugs.gnu.org" <4559@debbugs.gnu.org> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 13 16:22:43 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ov9ve-0006wu-IW for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Sep 2010 16:22:43 +0200 Original-Received: from localhost ([127.0.0.1]:33755 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ov9vd-0007jS-Ry for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Sep 2010 10:22:41 -0400 Original-Received: from [140.186.70.92] (port=35351 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ov6Sh-0005IG-BX for bug-gnu-emacs@gnu.org; Mon, 13 Sep 2010 06:40:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ov6SZ-0006YZ-4w for bug-gnu-emacs@gnu.org; Mon, 13 Sep 2010 06:40:28 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52817) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ov6SZ-0006YT-2z for bug-gnu-emacs@gnu.org; Mon, 13 Sep 2010 06:40:27 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Ov6NK-0001an-3f; Mon, 13 Sep 2010 06:35:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <4ABD8AAD.9010400@gmail.com> Resent-From: "Mandalemula, Rajesh" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Sep 2010 10:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 4559 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 4559-submit@debbugs.gnu.org id=B4559.12843740666058 (code B ref 4559); Mon, 13 Sep 2010 10:35:02 +0000 Original-Received: (at 4559) by debbugs.gnu.org; 13 Sep 2010 10:34:26 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ov6Mj-0001Zf-Ka for submit@debbugs.gnu.org; Mon, 13 Sep 2010 06:34:26 -0400 Original-Received: from deputy.hyd.deshaw.com ([149.77.160.2]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ov6AS-0001Si-0v for 4559@debbugs.gnu.org; Mon, 13 Sep 2010 06:21:45 -0400 Original-Received: from winmail.deshaw.com (exchange.hyd.deshaw.com [149.77.163.80]) by deputy.hyd.deshaw.com (8.13.8+Sun/8.13.7/2.0.kim.desco.357) with ESMTP id o8DANqw6013904 for <4559@debbugs.gnu.org>; Mon, 13 Sep 2010 15:53:53 +0530 (IST) Original-Received: from HYDMBX2.winmail.deshaw.com ([149.77.163.92]) by mailhydhts1.winmail.deshaw.com ([149.77.163.80]) with mapi; Mon, 13 Sep 2010 15:53:52 +0530 Thread-Topic: Re: temacs core dump when compiling emacs under solaris Thread-Index: ActTLcKg1WwFwhg6Q8afDRp/IfHR2g== Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US X-Mailman-Approved-At: Mon, 13 Sep 2010 06:34:24 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 13 Sep 2010 06:35:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Mon, 13 Sep 2010 10:22:31 -0400 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:40130 Archived-At: --_000_6404320ADBB23E4BAB6DBFEB925CFFCD2796CE77B6HYDMBX2winmai_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I faced the same issue on Solaris 10 x86 while building a 64-bit emacs. Ev= entually, 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=3D"i386" # If there is a compiler, see if it is configured for 64-bit object= s. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. if [ "$CC_FOR_BUILD" !=3D 'no_compiler_found' ]; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') |= \ (CCOPTS=3D $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH=3D"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 '__amd6= 4' - however, the config.guess script does not use the CFLAGS passed (which= actually sets -m64) for this preprocessor check and hence the build host i= s not set correctly. Passing an explicit "--build=3Dx86_64-pc-solaris2.10" to the configure scri= pt or setting CC=3D" -m64" solves the issue. Hope this helps. Thanks. Rajesh --_000_6404320ADBB23E4BAB6DBFEB925CFFCD2796CE77B6HYDMBX2winmai_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Hi,
 
I faced the same issue on Solaris 10 x86 while= building a 64-bit emacs.  Eventually, it turned out to be a wrong bui= ld host (guessed by config.guess) causing the segfault.
 =
<<<< from config.guess >>>= ;>
    i86pc:SunOS:5.*:* | i86xen:= SunOS:5.*:*)
        eva= l $set_cc_for_build
        SUN= _ARCH=3D"i386"
        # I= f there is a compiler, see if it is configured for 64-bit objects.
        # N= ote that the Sun cc does not turn __LP64__ into 1 like gcc does.
        # T= his test works for both compilers.
        if = [ "$CC_FOR_BUILD" !=3D 'no_compiler_found' ]; then
       &nbs= p;    if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#= endif') | \
       &nbs= p;        (CCOPTS=3D $CC_FOR_BUILD -E - = 2>/dev/null) | \
       &nbs= p;        grep IS_64BIT_ARCH >/dev/nu= ll
       &nbs= p;    then
       &nbs= p;        SUN_ARCH=3D"x86_64"<= /font>
       &nbs= p;    fi
        fi<= /font>
        ech= o ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`<= /div>
<<<< from config.guess >>>= ;>
 =
config.guess sets SUN_ARCH to ‘x86_64= 217; only if preprocessor defines ‘__amd64’ - however, the conf= ig.guess script does not use the CFLAGS passed (which actually sets -m64) f= or this preprocessor check and hence the build host is not set correctly.
 
Passing an explicit “--build=3Dx86_64-pc= -solaris2.10” to the configure script or setting CC=3D”<comp= iler> -m64” solves the issue.
 =
 =
Hope this helps.
 
Thanks.  Rajesh
 
--_000_6404320ADBB23E4BAB6DBFEB925CFFCD2796CE77B6HYDMBX2winmai_--