This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug testsuite/51059] FAIL: gcc.misc-tests/gcov-14.c (test for excess errors) on *-apple-darwin*
- From: "iains at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 03 Dec 2011 18:36:07 +0000
- Subject: [Bug testsuite/51059] FAIL: gcc.misc-tests/gcov-14.c (test for excess errors) on *-apple-darwin*
- Auto-submitted: auto-generated
- References: <bug-51059-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51059
--- Comment #13 from Iain Sandoe <iains at gcc dot gnu.org> 2011-12-03 18:36:07 UTC ---
(In reply to comment #12)
> This still fails on darwin11 under Xcode 4.2.1 as....
>
> Executing on host: /sw/src/fink.build/gcc47-4.7.0-1/darwin_objdir/gcc/xgcc
> -B/sw/src/fink.build/gcc47-4.7.0-1/darwin_objdir/gcc/
> /sw/src/fink.build/gcc47-4.7.0-1/gcc-4.7-20111202/gcc/testsuite/gcc.misc-tests/gcov-14.c
> -O2 -fprofile-arcs -ftest-coverage -flat_namespace -undefined suppress -lm
> -m32 -o ./gcov-14.exe (timeout = 300)
> PASS: gcc.misc-tests/gcov-14.c (test for excess errors)
> Setting LD_LIBRARY_PATH to
> :/sw/src/fink.build/gcc47-4.7.0-1/darwin_objdir/gcc::/sw/src/fink.build/gcc47-4.7.0-1/darwin_objdir/gcc
> dyld: Symbol not found: _Foo
> Referenced from:
> /sw/src/fink.build/gcc47-4.7.0-1/darwin_objdir/gcc/testsuite/gcc/./gcov-14.exe
> Expected in: flat namespace
> in
> /sw/src/fink.build/gcc47-4.7.0-1/darwin_objdir/gcc/testsuite/gcc/./gcov-14.exe
> FAIL: gcc.misc-tests/gcov-14.c execution test
> Executing on host: /sw/src/fink.build/gcc47-4.7.0-1/darwin_objdir/gcc/gcov -a
> gcov-14.c (timeout = 300)
> gcov-14.gcda:cannot open data file, assuming not executed^M
> File
> '/sw/src/fink.build/gcc47-4.7.0-1/gcc-4.7-20111202/gcc/testsuite/gcc.misc-tests/gcov-14.c'^M
> No executable lines^M
> ^M
> FAIL: gcc.misc-tests/gcov-14.c gcov failed: gcov-14.c.gcov does not exist
I guess it's not supporting "-undefined suppress" ... _Foo is not meant to be
found at link time.
(that is the intention of adding -flat_namespace -undefined suppress).
I suppose you could try adding -Wl,-U,_Foo instead ...