------- Comment #6 from ebotcazou at gcc dot gnu dot org 2006-07-14 14:08 ------- > Ok, the compile is done. In gcc/Makefile.in, I changed > -DLOCAL_INCLUDE_DIR=\"$(local_includedir)\" \ > to > -ULOCAL_INCLUDE_DIR \ > so that /usr/local/include is NOT searched by default by the preprocessor.
The preferred method is to pass --with-local-prefix on the configure line. > Suggestions: > > - make the assert.h/__eprintf trouble a FAQ: > "Whenever you see an unresolved symbol __eprintf, this most likely means > that > you have an old and buggy assert.h in some of your include directories. Note > that cpp has some built-in search paths that you may need to consider as well, > like /usr/local/include" I thought this was already documented somewhere, but may be not after all. > - remove /usr/local/include from the standard include file search path; only > the _real_ standard locations for the platform (/usr/include) should be > considered, anything else should be up to the user - and it is easy > (-I/usr/local/include) I think this one has already be discussed at length. This is probably not going to be changed since it can be overridden by --with-local-prefix. Thanks for reporting the final success. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28377