all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#4559: temacs core dump when compiling emacs under solaris
@ 2009-09-26  3:29 snnn
  2010-09-13 10:23 ` Mandalemula, Rajesh
  0 siblings, 1 reply; 6+ messages in thread
From: snnn @ 2009-09-26  3:29 UTC (permalink / raw)
  To: bug-gnu-emacs

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







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

* bug#4559: temacs core dump when compiling emacs under solaris
  2009-09-26  3:29 bug#4559: temacs core dump when compiling emacs under solaris snnn
@ 2010-09-13 10:23 ` Mandalemula, Rajesh
  2010-09-13 14:47   ` Andreas Schwab
  0 siblings, 1 reply; 6+ messages in thread
From: Mandalemula, Rajesh @ 2010-09-13 10:23 UTC (permalink / raw)
  To: 4559@debbugs.gnu.org

[-- Attachment #1: Type: text/plain, Size: 1376 bytes --]

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


[-- Attachment #2: Type: text/html, Size: 4041 bytes --]

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

* bug#4559: temacs core dump when compiling emacs under solaris
  2010-09-13 10:23 ` Mandalemula, Rajesh
@ 2010-09-13 14:47   ` Andreas Schwab
  2010-09-14  4:28     ` Kevin Rodgers
  0 siblings, 1 reply; 6+ messages in thread
From: Andreas Schwab @ 2010-09-13 14:47 UTC (permalink / raw)
  To: Mandalemula, Rajesh; +Cc: 4559@debbugs.gnu.org

"Mandalemula, Rajesh" <Rajesh.Mandalemula@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@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





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

* bug#4559: temacs core dump when compiling emacs under solaris
  2010-09-13 14:47   ` Andreas Schwab
@ 2010-09-14  4:28     ` Kevin Rodgers
  2010-09-14  8:02       ` Andreas Schwab
  0 siblings, 1 reply; 6+ messages in thread
From: Kevin Rodgers @ 2010-09-14  4:28 UTC (permalink / raw)
  To: bug-gnu-emacs

On 9/13/10 8:47 AM, Andreas Schwab wrote:
> "Mandalemula, Rajesh"<Rajesh.Mandalemula@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






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

* bug#4559: temacs core dump when compiling emacs under solaris
  2010-09-14  4:28     ` Kevin Rodgers
@ 2010-09-14  8:02       ` Andreas Schwab
  2011-10-06  6:55         ` Glenn Morris
  0 siblings, 1 reply; 6+ messages in thread
From: Andreas Schwab @ 2010-09-14  8:02 UTC (permalink / raw)
  To: Kevin Rodgers; +Cc: bug-gnu-emacs

Kevin Rodgers <kevin.d.rodgers@gmail.com> writes:

> On 9/13/10 8:47 AM, Andreas Schwab wrote:
>> "Mandalemula, Rajesh"<Rajesh.Mandalemula@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@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





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

* bug#4559: temacs core dump when compiling emacs under solaris
  2010-09-14  8:02       ` Andreas Schwab
@ 2011-10-06  6:55         ` Glenn Morris
  0 siblings, 0 replies; 6+ messages in thread
From: Glenn Morris @ 2011-10-06  6:55 UTC (permalink / raw)
  To: 4559-done

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.





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

end of thread, other threads:[~2011-10-06  6:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-26  3:29 bug#4559: temacs core dump when compiling emacs under solaris snnn
2010-09-13 10:23 ` Mandalemula, Rajesh
2010-09-13 14:47   ` Andreas Schwab
2010-09-14  4:28     ` Kevin Rodgers
2010-09-14  8:02       ` Andreas Schwab
2011-10-06  6:55         ` Glenn Morris

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.