unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#9755: 24.0.90; trying to configure with GCC 4.6.1 on intel Mac OS X 10.6.8
@ 2011-10-14 18:52 Peter Dyballa
  2012-05-16  7:17 ` Glenn Morris
  2012-05-16  9:16 ` bug#9755: 24.0.90 " Paul Eggert
  0 siblings, 2 replies; 3+ messages in thread
From: Peter Dyballa @ 2011-10-14 18:52 UTC (permalink / raw)
  To: 9755

Hello!

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

	configure:5751: checking how to run the C preprocessor
	configure:5821: result: gcc-4 -E -no-cpp-precomp -I/opt/local/include -L/opt/local/lib
	configure:5841: gcc-4 -E -no-cpp-precomp -I/opt/local/include -L/opt/local/lib  conftest.c
	gcc-4: error: unrecognized option '-no-cpp-precomp'

A configure option like "-no-apple-stuff" would be nice – or removing the -no-cpp-precomp section. Everyone who thinks this option is needed can add it to the CPPFLAGS.

--
Greetings

  Pete

Life is the only flaw in an otherwise perfect nonexistence
				– Schopenhauer






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

* bug#9755: 24.0.90; trying to configure with GCC 4.6.1 on intel Mac OS X 10.6.8
  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
  2012-05-16  9:16 ` bug#9755: 24.0.90 " Paul Eggert
  1 sibling, 0 replies; 3+ messages in thread
From: Glenn Morris @ 2012-05-16  7:17 UTC (permalink / raw)
  To: Peter Dyballa; +Cc: 9755

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





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

* bug#9755: 24.0.90 trying to configure with GCC 4.6.1 on intel Mac OS X 10.6.8
  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
@ 2012-05-16  9:16 ` Paul Eggert
  1 sibling, 0 replies; 3+ messages in thread
From: Paul Eggert @ 2012-05-16  9:16 UTC (permalink / raw)
  To: 9755

Given that CPP doesn't need to be set any more
(see <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11485#9>),
I propose this patch to emacs-24's configure.in:

=== modified file 'configure.in'
--- configure.in	2012-05-05 10:18:38 +0000
+++ configure.in	2012-05-16 09:13:51 +0000
@@ -492,8 +492,6 @@ case "${canonical}" in
       * )            unported=yes ;;
     esac
     opsys=darwin
-    # Define CPP as follows to make autoconf work correctly.
-    CPP="${CC-cc} -E -no-cpp-precomp"
     # Use fink packages if available.
     if test -d /sw/include && test -d /sw/lib; then
       GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
@@ -582,7 +580,6 @@ case "${canonical}" in
     case "${canonical}" in
       *-cygwin )                opsys=cygwin ;;
       *-darwin* )               opsys=darwin
-                                CPP="${CC-cc} -E -no-cpp-precomp"
  				;;
       *-sysv4.2uw* )	  	opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
       *-sysv5uw* )	  	opsys=unixware; NON_GNU_CPP=/lib/cpp ;;






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

end of thread, other threads:[~2012-05-16  9:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2012-05-16  9:16 ` bug#9755: 24.0.90 " Paul Eggert

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).