For a detailed description of this bug see: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1053052&group_id=2435 In short the file c-incpath.c (near line 331) needs to be modified to remove the trailing slash if HAVE_DOS_BASED_FILE_SYSTEM is true. It seems on newer windows systems the trailing slash starts to become a problem. My current makefiles all have trailing slashes for each include path to support compilers that require the trailing slash. As a result I can't upgrade to the latest MinGW gcc build. I classified this as minor since it effects portability of code.
IIRC this was discussed on the gcc-patches or gcc list just this year.
See the thread: <http://gcc.gnu.org/ml/gcc-patches/2005-05/msg01267.html>. I don't know what happened to it.
*** Bug 20594 has been marked as a duplicate of this bug. ***
*** Bug 29851 has been marked as a duplicate of this bug. ***
(In reply to comment #2) > See the thread: <http://gcc.gnu.org/ml/gcc-patches/2005-05/msg01267.html>. > > I don't know what happened to it. This is the latest version of the patch: http://gcc.gnu.org/ml/gcc-patches/2006-03/msg00598.html AFAICT, it has never been reviewed by anyone who could approve it. I am not currently working on this - I have other things on my mind, like the lack of response from the copyright clerk.
Danny, Can you take a look at this bug and the corresponding patch in comment #5? This issue has been around a long time, and the fix has worked for a long time too. It would be nice if the fix could be committed. Thanks
Subject: Bug 22133 Author: froydnj Date: Mon May 7 17:41:35 2007 New Revision: 124504 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=124504 Log: PR 22133 * c-incpath.c (add_path): Strip trailing path separators. Modified: trunk/gcc/ChangeLog trunk/gcc/c-incpath.c
(In reply to comment #0) > For a detailed description of this bug see: > > https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1053052&group_id=2435 > > In short the file c-incpath.c (near line 331) needs to be modified to remove the > trailing slash if HAVE_DOS_BASED_FILE_SYSTEM is true. It seems on newer windows > systems the trailing slash starts to become a problem. My current makefiles all > have trailing slashes for each include path to support compilers that require > the trailing slash. As a result I can't upgrade to the latest MinGW gcc build. > > I classified this as minor since it effects portability of code. Does the patch from Nathan Froyd fixed the issue for you? My tests have shown that issue is solved by it, but I would like that you can confirm this.
Fixed.