GNU bug report logs - #5603
23.1.90; value of CPP not used in configure script

Previous Next

Package: emacs;

Reported by: Peter Dyballa <Peter_Dyballa <at> Freenet.DE>

Date: Fri, 19 Feb 2010 12:25:01 UTC

Severity: normal

Merged with 9755

Found in version 24.0.90

Fixed in version 24.2

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 5603 in the body.
You can then email your comments to 5603 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5603; Package emacs. (Fri, 19 Feb 2010 12:25:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Peter Dyballa <Peter_Dyballa <at> Freenet.DE>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 19 Feb 2010 12:25:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Peter Dyballa <Peter_Dyballa <at> Freenet.DE>
To: emacs-pretest-bug <at> gnu.org
Subject: 23.1.90; value of CPP not used in configure script
Date: Fri, 19 Feb 2010 12:34:40 +0100
Hello!

Trying to use the LLVM variant of GCC like this:

	env PATH=/Developer/usr/bin:/sw/bin:$PATH ./configure --without-sound  
--without-dbus --without-pop --with-ns --disable-ns-self-contained --x- 
libraries=/usr/X11/libs --x-includes=/usr/X11/include/X11 --enable- 
locallisppath=/Library/Application\ Support/Emacs/calendar23:/Library/ 
Application\ Support/Emacs CC=llvm-gcc-4.2 CPP=llvm-cpp-4.2

or like this

	env PATH=/Developer/usr/bin:/sw/bin:$PATH CC=llvm-gcc-4.2 CPP=llvm- 
cpp-4.2 ./configure --without-sound --without-dbus --without-pop -- 
with-ns --disable-ns-self-contained --x-libraries=/usr/X11/libs --x- 
includes=/usr/X11/include/X11 --enable-locallisppath=/Library/ 
Application\ Support/Emacs/calendar23:/Library/Application\ Support/ 
Emacs

configure just finds:

	checking build system type... powerpc-apple-darwin9.8.0
	checking host system type... powerpc-apple-darwin9.8.0
	checking for gcc... llvm-gcc-4.2
	checking for C compiler default output file name... a.out
	checking whether the C compiler works... yes
	checking whether we are cross compiling... no
	checking for suffix of executables...
	checking for suffix of object files... o
	checking whether we are using the GNU C compiler... yes
	checking whether llvm-gcc-4.2 accepts -g... yes
	checking for llvm-gcc-4.2 option to accept ISO C89... none needed
	checking how to run the C preprocessor... llvm-gcc-4.2 -E -no-cpp- 
precomp -I/sw/include -L/sw/lib

or:

	+ CC='llvm-gcc-4.2 -I/sw/include -L/sw/lib'
	+ test xyes = x
	+ ac_ext=c
	+ ac_cpp='$CPP $CPPFLAGS'
	+ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
	+ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS  
conftest.$ac_ext $LIBS >&5'
	+ ac_compiler_gnu=yes
	+ printf '%s\n' 'configure:4004: checking how to run the C  
preprocessor'
	+ printf %s 'checking how to run the C preprocessor... '
	checking how to run the C preprocessor... + test -n 'llvm-gcc-4.2 -E - 
no-cpp-precomp -I/sw/include -L/sw/lib'
	+ test -d 'llvm-gcc-4.2 -E -no-cpp-precomp -I/sw/include -L/sw/lib'
	+ test -z 'llvm-gcc-4.2 -E -no-cpp-precomp -I/sw/include -L/sw/lib'
	+ ac_cv_prog_CPP='llvm-gcc-4.2 -E -no-cpp-precomp -I/sw/include -L/sw/ 
lib'
	+ printf '%s\n' 'configure:4122: result: llvm-gcc-4.2 -E -no-cpp- 
precomp -I/sw/include -L/sw/lib'
	+ printf '%s\n' 'llvm-gcc-4.2 -E -no-cpp-precomp -I/sw/include -L/sw/ 
lib'
	llvm-gcc-4.2 -E -no-cpp-precomp -I/sw/include -L/sw/lib
	+ ac_preproc_ok=false
	+ for ac_c_preproc_warn_flag in ''\'''\''' yes
	+ cat
	+ cat confdefs.h
	+ cat
	+ ac_try='$CPP $CPPFLAGS conftest.c'
	+ case "(($ac_try" in
	+ ac_try_echo='$CPP $CPPFLAGS conftest.c'
	+ eval 'ac_try_echo="$as_me:4151: $CPP $CPPFLAGS conftest.c"'
	++ ac_try_echo='configure:4151: llvm-gcc-4.2 -E -no-cpp-precomp -I/sw/ 
include -L/sw/lib  conftest.c'
	+ printf '%s\n' 'configure:4151: llvm-gcc-4.2 -E -no-cpp-precomp -I/ 
sw/include -L/sw/lib  conftest.c'
	+ ac_status=0
	+ grep -v '^ *+' conftest.er1
	+ rm -f conftest.er1
	+ cat conftest.err
	+ printf '%s\n' 'configure:4158: $? = 0'
	+ exit 0
	+ test -z ''
	+ :
	+ rm -f conftest.err conftest.c
	+ cat
	+ cat confdefs.h
	+ cat
	+ ac_try='$CPP $CPPFLAGS conftest.c'
	+ case "(($ac_try" in
	+ ac_try_echo='$CPP $CPPFLAGS conftest.c'
	+ eval 'ac_try_echo="$as_me:4189: $CPP $CPPFLAGS conftest.c"'
	++ ac_try_echo='configure:4189: llvm-gcc-4.2 -E -no-cpp-precomp -I/sw/ 
include -L/sw/lib  conftest.c'
	+ printf '%s\n' 'configure:4189: llvm-gcc-4.2 -E -no-cpp-precomp -I/ 
sw/include -L/sw/lib  conftest.c'
	+ ac_status=1
	+ grep -v '^ *+' conftest.er1
	+ rm -f conftest.er1
	+ cat conftest.err
	+ printf '%s\n' 'configure:4196: $? = 1'
	+ exit 1
	+ printf '%s\n' 'configure: failed program was:'
	+ sed 's/^/| /' conftest.c
	+ ac_preproc_ok=:
	+ break
	+ rm -f conftest.err conftest.c
	+ :
	+ :
	+ ac_ext=c
	+ ac_cpp='$CPP $CPPFLAGS'
	+ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
	+ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS  
conftest.$ac_ext $LIBS >&5'
	+ ac_compiler_gnu=yes

There is also the question whether the option "-no-cpp-precomp" really  
is necessary on Mac OS X 10.5 or 10.6. The version of GCC 4.2 LLVM  
uses does not recognise this option:

	powerpc-apple-darwin9-llvm-gcc-4.2: unrecognized option '-no-cpp- 
precomp'


In GNU Emacs 23.1.90.1 (powerpc-apple-darwin9.8.0, X toolkit, Xaw3d  
scroll bars)
 of 2010-02-18 on Latsche.local
Windowing system distributor `The X.Org Foundation', version  
11.0.10799901
configured using `configure  '--without-sound' '--without-pop' '-- 
without-dbus' '--without-gconf' '--with-x-toolkit=athena' '--enable- 
locallisppath=/Library/Application Support/Emacs/calendar23:/Library/ 
Application Support/Emacs' 'CFLAGS=-g -Wno-pointer-sign -H -pipe -fPIC  
-Os' 'CC=gcc-4.2''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: de_DE.UTF-8
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: de_DE.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Calendar

Minor modes in effect:
  shell-dirtrack-mode: t
  diff-auto-refine-mode: t
  show-paren-mode: t
  display-time-mode: t
  desktop-save-mode: t
  delete-selection-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t



--
Greetings

  Pete

If it should exist, it doesn't.
				– Arnold's First Law of Documentation





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#5603; Package emacs. (Wed, 16 May 2012 07:26:01 GMT) Full text and rfc822 format available.

Message #8 received at 5603 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Peter Dyballa <Peter_Dyballa <at> Freenet.DE>
Cc: 5603 <at> debbugs.gnu.org
Subject: Re: bug#5603: 23.1.90; value of CPP not used in configure script
Date: Wed, 16 May 2012 03:25:26 -0400
Peter Dyballa wrote:

> Trying to use the LLVM variant of GCC like this:
>
> 	env PATH=/Developer/usr/bin:/sw/bin:$PATH ./configure
> --without-sound --without-dbus --without-pop --with-ns
> --disable-ns-self-contained --x- 
> libraries=/usr/X11/libs --x-includes=/usr/X11/include/X11 --enable-
> locallisppath=/Library/Application\ Support/Emacs/calendar23:/Library/
> Application\ Support/Emacs CC=llvm-gcc-4.2 CPP=llvm-cpp-4.2
[...]
> 	checking how to run the C preprocessor... llvm-gcc-4.2 -E
> -no-cpp-precomp -I/sw/include -L/sw/lib
[...]
> There is also the question whether the option "-no-cpp-precomp" really
> is necessary on Mac OS X 10.5 or 10.6. The version of GCC 4.2 LLVM
> uses does not recognise this option:
>
> 	powerpc-apple-darwin9-llvm-gcc-4.2: unrecognized option
> -no-cpp-
> precomp'


I can't tell what the issue is supposed to be here.
The "also the question" part is bug#9755.

Was there something else?

If not, this is a duplicate of bug#9755 (which I think is fixed in the
trunk now).




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#5603; Package emacs. (Wed, 16 May 2012 22:34:01 GMT) Full text and rfc822 format available.

Message #11 received at 5603 <at> debbugs.gnu.org (full text, mbox):

From: Peter Dyballa <Peter_Dyballa <at> Freenet.DE>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 5603 <at> debbugs.gnu.org
Subject: Re: bug#5603: 23.1.90; value of CPP not used in configure script
Date: Thu, 17 May 2012 00:30:24 +0200
Am 16.05.2012 um 09:25 schrieb Glenn Morris:

> I can't tell what the issue is supposed to be here.

It's that I have set for configure the environment variable "CPP=llvm-cpp-4.2" because './configure --help' tells:

	Some influential environment variables:
	  CC          C compiler command
	  CFLAGS      C compiler flags
	  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
	              nonstandard directory <lib dir>
	  LIBS        libraries to pass to the linker, e.g. -l<library>
	  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
	              you have headers in a nonstandard directory <include dir>
	  CPP         C preprocessor
	  XMKMF       Path to xmkmf, Makefile generator for X Window System

But this does not seem to be true because it's

	+ ac_cv_prog_CPP='llvm-gcc-4.2 -E -no-cpp-precomp -I/sw/include -L/sw/lib'

that's used as C pre-processor. So either the configure script has a bug or its help function.


The mention of "-no-cpp-precomp" is more or less an additional remark.

--
Greetings

  Pete

’Twas a woman who drove me to drink, and I never had the courtesy to thank her for it.
				— W.C. Fields





Forcibly Merged 5603 9755. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 16 May 2012 23:16:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 14 Jun 2012 11:24:02 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 64 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.