regression tests and shared libraries

Joe Buck jbuck@Synopsys.COM
Tue Jun 1 22:40:00 GMT 1999


What is the recommended procedure for getting runtest to find
the proper shared library for libstdc++ when running the regression
procedure described on the page

http://egcs.cygnus.com/gcc-2.95/regress.html ?

If the directions are followed, libstdc++ is not found; evidently
runtest is clearing LD_LIBRARY_PATH and setting it to something else
that doesn't work.

I've hacked my site.exp as follows:

set GXX_UNDER_TEST "$old_release_prefix/bin/g++ -L$old_release_prefix/lib -Wl,-R
$old_release_prefix/lib"

This allows C++ programs to link but gives an excess warning in
tests that don't have a link step:
g++: -R/usr/local/egcs-1.1.2/lib: linker input file unused since linking not done

It isn't obvious whether or not this will cause additional failures.

Also, while I'm on the subject: the web page mentioned above should change
the line

# set old_release_prefix to the prefix directory of an installed egcs-1.0.3a.

to refer to egcs-1.1.2 .



More information about the Gcc mailing list