comparison etc/PROBLEMS @ 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 8317d35172e4
children e764b3b9820d
comparison
equal deleted inserted replaced
76933:aeb076a527db 76934:6586f81fbf80
2303 shared version of libjpeg, which you need to install. Finally, rerun 2303 shared version of libjpeg, which you need to install. Finally, rerun
2304 the Emacs configure script, which should now find the jpeg library. 2304 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''.
2311 2335
2312 This was reported to happen when building Emacs on a GNU/Linux system 2336 This was reported to happen when building Emacs on a GNU/Linux system