all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Vladimir Lomov <lomov.vl@gmail.com>
To: Chong Yidong <cyd@stupidchicken.com>, 6039@debbugs.gnu.org
Subject: bug#6039: Emacs 23.1.96 (git HEAD) crashing at startup.
Date: Mon, 10 May 2010 12:41:25 +0900	[thread overview]
Message-ID: <AANLkTikTwO_4KugMrZirR7bioyRuieEQ04BZ2M5_LNri@mail.gmail.com> (raw)
In-Reply-To: <87hbmplvmk.fsf@stupidchicken.com>

Hi.

Sorry for later response.

2010/5/3 Chong Yidong <cyd@stupidchicken.com>:
> Elias Pipping <pipping.elias@googlemail.com> writes:
>
>> Could you make the check and the error message a bit more precise? For
>> example, CFLAGS="-O2 -fno-optimize-sibling-calls" should get through
>> (CFLAGS="-O1 -foptimize-sibling-calls" should not, but that can
>> probably be ignored). It'd also be nice if either the error message or
>> the comments in configure.in referred to this bug.
>
> Sure.  Could you test this updated patch?
>
>
> *** configure.in        2010-04-20 01:29:37 +0000
> --- configure.in        2010-05-02 23:38:03 +0000
> ***************
> *** 2600,2605 ****
> --- 2600,2613 ----
>  CFLAGS="$REAL_CFLAGS"
>  CPPFLAGS="$REAL_CPPFLAGS"
>
> + ## Hack to detect a buggy GCC version.
> + if test "x$GCC" = xyes \
> +    && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
> +    && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
> +    && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
> +    AC_MSG_ERROR([GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'.])
> + fi
> +
>  #### Find out which version of Emacs this is.
>  [version=`grep 'defconst[      ]*emacs-version' ${srcdir}/lisp/version.el \
>         | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`]
>
> *** configure   2010-04-20 01:29:37 +0000
> --- configure   2010-05-02 23:38:37 +0000
> ***************
> *** 25559,25564 ****
> --- 25559,25574 ----
>  CFLAGS="$REAL_CFLAGS"
>  CPPFLAGS="$REAL_CPPFLAGS"
>
> + ## Hack to detect a buggy GCC version.
> + if test "x$GCC" = xyes \
> +    && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
> +    && test x"`echo $CFLAGS | grep '\-O23'`" != x \
> +    && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
> +    { { $as_echo "$as_me:$LINENO: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." >&5
> + $as_echo "$as_me: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." >&2;}
> +    { (exit 1); exit 1; }; }
> + fi
> +
>  #### Find out which version of Emacs this is.
>  version=`grep 'defconst[       ]*emacs-version' ${srcdir}/lisp/version.el \
>         | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
>
Why you check versus O3 option? I checked that with O3 option GCC
4.5.0 compiles emacs (BZR) fine and it works.

Could you please remove this check (actually I rather ask GCC
developers to release a bug fix but they have they own schedule).

P.S. I make custom builds for my Archlinux system (x86_64). Now I use
a patch to remove O3 check so this just a wish.

---
WBR, Vladimir Lomov






      parent reply	other threads:[~2010-05-10  3:41 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-02  0:04 Emacs 23.1.96 (git HEAD) crashing at startup Ashish SHUKLA
2010-05-02  3:12 ` Eli Zaretskii
2010-05-02  5:03   ` Ashish SHUKLA
2010-05-02 14:35     ` Chong Yidong
2010-05-02 17:29       ` Eli Zaretskii
2010-05-02 18:46         ` Chong Yidong
2010-05-02 18:55           ` Ashish SHUKLA
2010-05-02 22:05           ` Elias Pipping
2010-05-02 23:41             ` Chong Yidong
2010-05-02 23:55               ` Elias Pipping
2010-05-03  1:21               ` Miles Bader
2010-05-03  1:23               ` Miles Bader
2010-05-03  1:30               ` Ashish SHUKLA
2010-05-10  3:41               ` Vladimir Lomov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTikTwO_4KugMrZirR7bioyRuieEQ04BZ2M5_LNri@mail.gmail.com \
    --to=lomov.vl@gmail.com \
    --cc=6039@debbugs.gnu.org \
    --cc=cyd@stupidchicken.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.