------- Comment #3 from developer at sandoe-acoustics dot co dot uk 2010-03-25 20:03 ------- (In reply to comment #2) > Iain, these tests pass if the tests are run after "make install" because then > the objc header files are found in the install tree. I tested your patch but > installed first, that's why I didn't see the failures.
I believe that this is one of those "nasty" side effects of installed/uninstalled testing.. there are two sets of headers with the same names on a Darwin system - one in the gcc installation tree - one in /usr/include/objc. The tests *should* fail on Linux in an ideal world (when -fnext-runtime is given) - because they are supposed to be finding the NeXT headers at /usr/include/objc. This is a compiler-provided path. Of course, once installed the compiler's own headers are found because it searches through all the various options.. since the header names are the same .. the fail does not occur. It's a source of potentially very subtle problems... (at least, that is my understanding of the situation). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43512