unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: Peter Dyballa <Peter_Dyballa@Freenet.DE>
Cc: 9755@debbugs.gnu.org
Subject: bug#9755: 24.0.90; trying to configure with GCC 4.6.1 on intel Mac OS X 10.6.8
Date: Wed, 16 May 2012 03:17:40 -0400	[thread overview]
Message-ID: <k2sjf0zjaj.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <9814A5F3-71A0-4D59-A03F-5FF89EF41416@Freenet.DE> (Peter Dyballa's message of "Fri, 14 Oct 2011 20:52:57 +0200")

close 9755 24.2
stop

Peter Dyballa wrote:

> The configure scripts adds "-no-cpp-precomp" to CPPFLAGS although GCC
> 4.6.1 does not support this Apple addition:


The history here is that -no-cpp-precomp was needed for some reason with
some older versions of Apple's version of gcc. The Emacs configure
script unconditionally set CPP to 'cc -E -no-cpp-precomp' on all darwin
builds for this reason, without bothering to test which compiler was
being used.

This is not too much of an issue in gcc prior to 4.6, because gcc
-no-foo returns status 0, even when -no-foo is an unknown option
(it warns but continues). In gcc 4.6 and later, it returns an error.

Hence Emacs 24.1 will not configure with gcc 4.6 and later on OS X.

The Hydra darwin builds of Emacs seem to have been failing for this
reason for some time.

I just installed a change to the trunk to hopefully fix this (r108250).

It might be better to just remove this -no-cpp-precomp altogether.
AFAICS, it is only needed for Apple gcc earlier than 3.3 (not sure).
That is pretty old.


This might be something to backport to 24.1, I'm not sure.
The patch might need altering if bug#11485 is fixed in 24.1.

Also even after making this change, the build fails during dumping.
http://debbugs.gnu.org/9927
http://hydra.nixos.org/build/2630203





  reply	other threads:[~2012-05-16  7:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-14 18:52 bug#9755: 24.0.90; trying to configure with GCC 4.6.1 on intel Mac OS X 10.6.8 Peter Dyballa
2012-05-16  7:17 ` Glenn Morris [this message]
2012-05-16  9:16 ` bug#9755: 24.0.90 " Paul Eggert

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=k2sjf0zjaj.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=9755@debbugs.gnu.org \
    --cc=Peter_Dyballa@Freenet.DE \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).