This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Rectification on "make check" tests wrong library
- To: egcs at cygnus dot com (egcs at cygnus dot com)
- Subject: Rectification on "make check" tests wrong library
- From: Carlo Wood <carlo at runaway dot xs4all dot nl>
- Date: Mon, 22 Jun 1998 19:31:09 +0200 (CEST)
Rectification:
I am afraid I have to take back the conclusion of my post
`"make check" tests wrong library'...
For some reason I can not reproduce the output of `ldd':
It always finds the _installed_ library (who's path is in
/etc/ld.so.conf). I read a lot more about linkers now,
and my conclusion is that this normal.
I suppose that at that time I had set a LD_RUN_PATH or
LD_LIBRARY_PATH to point to
/usr/src/egcs/egcs-1.0.3a-objdir/libraries/libstdc++, although
I can't remember that :/. Its the only reason I can think of
that would cause that output of `ldd'.
---
The lookfor_dir_with_trigger.patch doesn't even have an
influence anymore (all tests pass) - this is rather confusing because
it DID have an influence the previous/first time I checked this :/
---
Digging deeper into this, I found that "make check" DOES set
LD_LIBRARY_PATH (in libstdc++/testsuite/lib/libstdc++.exp -
added by Jeffrey A Law at Thu Dec 25 00:34:03 1997 according
to the ChangeLog - hmm, you could have mentioned that Jeff :))
and as such uses the correct shared libary during testing,
even when configured with --enable-shared (otherwise it would link
with the correct static lib).
I keep wondering why "make check" failed for me the first time
(for libstdc++) but can't find out :(
The only difference with or without lookfor_dir_with_trigger.patch
I find now is that without it, LD_LIBRARY_PATH is set to
/usr/src/egcs/egcs-1.0.3a-objdir/libraries/libstdc++/testsuite/../../libstdc++
and with it, it is set to
/usr/src/egcs/egcs-1.0.3a-objdir/libraries//libstdc++
(I checked this by adding `send_error "LD_LIBRARY_PATH = $ld_library_path\n"'
to libstdc++/testsuite/lib/libstdc++.exp in proc test_libstdc++).
These two are equivalent and doesn't make a difference.
Conclusion:
Ignore my post "make check tests wrong library" :).
Going to play chess in the pub,
Carlo Wood