diff options
| author | Glenn Morris | 2007-04-04 02:58:38 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-04-04 02:58:38 +0000 |
| commit | f4b84ef468b0c789064c810b32513a4ba76c0a9e (patch) | |
| tree | 502910a93def935593982eb27a59087c00393056 | |
| parent | 67b33cb090cbb36ca869a07be89caaa45fb70a3b (diff) | |
| download | emacs-f4b84ef468b0c789064c810b32513a4ba76c0a9e.tar.gz emacs-f4b84ef468b0c789064c810b32513a4ba76c0a9e.zip | |
(Configuration): Add entries on compiler/preprocessor mismatch, and on
preprocessor inserting whitespace.
| -rw-r--r-- | etc/PROBLEMS | 24 |
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. | |||
| 2305 | Alternatively, modify the generated src/Makefile to link the .a file | 2305 | Alternatively, modify the generated src/Makefile to link the .a file |
| 2306 | explicitly, and edit src/config.h to define HAVE_JPEG. | 2306 | explicitly, and edit src/config.h to define HAVE_JPEG. |
| 2307 | 2307 | ||
| 2308 | *** `configure' warns ``accepted by the compiler, rejected by the preprocessor''. | ||
| 2309 | |||
| 2310 | This indicates a mismatch between the C compiler and preprocessor that | ||
| 2311 | configure is using. For example, on Solaris 10 trying to use | ||
| 2312 | CC=/opt/SUNWspro/bin/cc (the Sun Studio compiler) together with | ||
| 2313 | CPP=/usr/ccs/lib/cpp can result in errors of this form (you may also | ||
| 2314 | see the error ``"/usr/include/sys/isa_defs.h", line 500: undefined control''). | ||
| 2315 | |||
| 2316 | The solution is to tell configure to use the correct C preprocessor | ||
| 2317 | for your C compiler (CPP="/opt/SUNWspro/bin/cc -E" in the above | ||
| 2318 | example). | ||
| 2319 | |||
| 2320 | *** `configure' fails with ``"junk.c", line 660: invalid input token: 8.elc'' | ||
| 2321 | |||
| 2322 | The final stage of the Emacs configure process uses the C preprocessor | ||
| 2323 | to generate the Makefiles. Errors of this form can occur if the C | ||
| 2324 | preprocessor inserts extra whitespace into its output. The solution | ||
| 2325 | is to find the switches that stop your preprocessor from inserting extra | ||
| 2326 | whitespace, add them to CPPFLAGS, and re-run configure. For example, | ||
| 2327 | this 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". | ||
| 2329 | The 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''. |