"warning: changing search order", will it ever be fixed?
Ben Wing
ben@666.com
Sat Oct 26 00:16:00 GMT 2002
hello. i am one of the XEmacs maintainers.
i've been happily away from the programming world for a few months, but just
came back to fix a few problems. after updating to the latest Cygwin i got the
dreaded warning
cpp0: warning: changing search order for system directory "/usr/local/include"
cpp0: warning: as it has already been specified as a non-system directory
in my case I'm configuring XEmacs with /usr/local/include as an added site
include file. there is very little in /usr/local/include (two files, to be
specific) and certainly nothing that gcc can possibly have touched with
fixincludes. but the warnings mak eautoconf preprocessor tests fail and ... you
guys obviously know the drill by know, since a search on google yields numerous
complaints dating back 6 months. bruno haible clearly identifies this as a gcc
bug and suggests it should be gone by gcc 3.2, but it's not:
% gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/specs
Configured with: /netrel/src/gcc-3.2-1/configure --enable-languages=c,c++,f77,ja
va --enable-libgcj --enable-threads=posix --with-system-zlib --enable-nls --with
out-included-gettext --enable-interpreter --disable-sjlj-exceptions --disable-ve
rsion-specific-runtime-libs --enable-shared --build=i686-pc-linux --host=i686-pc
-cygwin --target=i686-pc-cygwin --enable-haifa --prefix=/usr --exec-prefix=/usr
--sysconfdir=/etc --libdir=/usr/lib --includedir=/nonexistent/include --libexecd
ir=/usr/sbin
Thread model: posix
gcc version 3.2 20020818 (prerelease)
if you care, here's config.log:
configure:6578: checking for X11/Intrinsic.h
configure:6586:
c -E -I/usr/local/include -fno-caller-saves -fvtable-thunks -I/usr/X11R6/in
clude conftest.c >/dev/null 2>conftest.out
cpp0: warning: changing search order for system directory "/usr/local/include"
cpp0: warning: as it has already been specified as a non-system directory
configure: failed program was:
#line 6581 "configure"
#include "confdefs.h"
#include <X11/Intrinsic.h>
so, what's the status? when will this be fixed?
anyone considered this [imho, quite reasonable] suggestion?
--------------------------------------------------------------------------------
----------------------------------------------------------------
suggestion for cygwin gcc-3.2
a.. From: Nicholas Wourms <nwourms at yahoo dot com>
b.. To: cygwin at cygwin dot com
c.. Date: Fri, 16 Aug 2002 09:41:40 -0700 (PDT)
d.. Subject: suggestion for cygwin gcc-3.2
--------------------------------------------------------------------------------
This may generate some flames, so flame away if you want to.
I don't know about anyone else, but there is one particular "feature"
of the new gcc that is driving me crazy. I refer to:
"warning: changing search order for system directory..."
which appears if you redefine the system include directory. Many
times this isn't intentional as you may have an autotool macro which
inadvertently does this for you. Sometimes you may want to use an
explicit include search path because you are cross-compiling. Other
times, because you want a certain header to trump the system default
header. To the autotools, such a warning will cause a c preprocessor
test to fail. This is highly aggravating, as it adds yet another
unknown to the equation when you are porting packages. Also, it
makes tracking potential issues harder because it clutters the screen
with useless garbage. I mean, dangnabit, if I wanted a pedantic
level of warnings, I would say so with -pedantic. This warning has
no business being in the default warning level, for the
aforementioned reasons. I know that passing "-w" will disable it,
but that also disables the warnings which are actually useful.
Therefore, I suggest that this warning be disabled by default and
enabled only on a stricter warning level. I ask here because I know
it is useless to ask on the gcc list - seeing as how they're going to
do it their way and the rest of us be damned. If you need a patch, I
will provide one.
Cheers,
Nicholas
__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
--------------------------------------------------------------------------------
------------
More information about the Gcc-bugs
mailing list