Mercurial > emacs
changeset 76934:6586f81fbf80
(Configuration): Add entries on compiler/preprocessor mismatch, and on
preprocessor inserting whitespace.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Wed, 04 Apr 2007 02:58:38 +0000 |
parents | aeb076a527db |
children | 8a550f4e2159 |
files | etc/PROBLEMS |
diffstat | 1 files changed, 24 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/etc/PROBLEMS Wed Apr 04 02:55:22 2007 +0000 +++ b/etc/PROBLEMS Wed Apr 04 02:58:38 2007 +0000 @@ -2305,6 +2305,30 @@ Alternatively, modify the generated src/Makefile to link the .a file explicitly, and edit src/config.h to define HAVE_JPEG. +*** `configure' warns ``accepted by the compiler, rejected by the preprocessor''. + +This indicates a mismatch between the C compiler and preprocessor that +configure is using. For example, on Solaris 10 trying to use +CC=/opt/SUNWspro/bin/cc (the Sun Studio compiler) together with +CPP=/usr/ccs/lib/cpp can result in errors of this form (you may also +see the error ``"/usr/include/sys/isa_defs.h", line 500: undefined control''). + +The solution is to tell configure to use the correct C preprocessor +for your C compiler (CPP="/opt/SUNWspro/bin/cc -E" in the above +example). + +*** `configure' fails with ``"junk.c", line 660: invalid input token: 8.elc'' + +The final stage of the Emacs configure process uses the C preprocessor +to generate the Makefiles. Errors of this form can occur if the C +preprocessor inserts extra whitespace into its output. The solution +is to find the switches that stop your preprocessor from inserting extra +whitespace, add them to CPPFLAGS, and re-run configure. For example, +this error can occur on Solaris 10 when using the Sun Studio compiler +``Sun C 5.8'' with its preprocessor CPP="/opt/SUNWspro/bin/cc -E". +The relevant switch in this case is "-Xs" (``compile assuming +(pre-ANSI) K & R C style code''). + ** Compilation *** Building Emacs over NFS fails with ``Text file busy''.