aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2007-04-04 02:58:38 +0000
committerGlenn Morris2007-04-04 02:58:38 +0000
commitf4b84ef468b0c789064c810b32513a4ba76c0a9e (patch)
tree502910a93def935593982eb27a59087c00393056
parent67b33cb090cbb36ca869a07be89caaa45fb70a3b (diff)
downloademacs-f4b84ef468b0c789064c810b32513a4ba76c0a9e.tar.gz
emacs-f4b84ef468b0c789064c810b32513a4ba76c0a9e.zip
(Configuration): Add entries on compiler/preprocessor mismatch, and on
preprocessor inserting whitespace.
-rw-r--r--etc/PROBLEMS24
1 files changed, 24 insertions, 0 deletions
diff --git a/etc/PROBLEMS b/etc/PROBLEMS
index e0c3666404e..17e16bfbde7 100644
--- a/etc/PROBLEMS
+++ b/etc/PROBLEMS
@@ -2305,6 +2305,30 @@ the Emacs configure script, which should now find the jpeg library.
2305Alternatively, modify the generated src/Makefile to link the .a file 2305Alternatively, modify the generated src/Makefile to link the .a file
2306explicitly, and edit src/config.h to define HAVE_JPEG. 2306explicitly, and edit src/config.h to define HAVE_JPEG.
2307 2307
2308*** `configure' warns ``accepted by the compiler, rejected by the preprocessor''.
2309
2310This indicates a mismatch between the C compiler and preprocessor that
2311configure is using. For example, on Solaris 10 trying to use
2312CC=/opt/SUNWspro/bin/cc (the Sun Studio compiler) together with
2313CPP=/usr/ccs/lib/cpp can result in errors of this form (you may also
2314see the error ``"/usr/include/sys/isa_defs.h", line 500: undefined control'').
2315
2316The solution is to tell configure to use the correct C preprocessor
2317for your C compiler (CPP="/opt/SUNWspro/bin/cc -E" in the above
2318example).
2319
2320*** `configure' fails with ``"junk.c", line 660: invalid input token: 8.elc''
2321
2322The final stage of the Emacs configure process uses the C preprocessor
2323to generate the Makefiles. Errors of this form can occur if the C
2324preprocessor inserts extra whitespace into its output. The solution
2325is to find the switches that stop your preprocessor from inserting extra
2326whitespace, add them to CPPFLAGS, and re-run configure. For example,
2327this error can occur on Solaris 10 when using the Sun Studio compiler
2328``Sun C 5.8'' with its preprocessor CPP="/opt/SUNWspro/bin/cc -E".
2329The relevant switch in this case is "-Xs" (``compile assuming
2330(pre-ANSI) K & R C style code'').
2331
2308** Compilation 2332** Compilation
2309 2333
2310*** Building Emacs over NFS fails with ``Text file busy''. 2334*** Building Emacs over NFS fails with ``Text file busy''.