This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: regression tests and shared libraries
- To: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Subject: Re: regression tests and shared libraries
- From: Marc Dionne <dionne at cs dot wisc dot edu>
- Date: Mon, 07 Jun 1999 10:52:28 -0500
- CC: egcs at egcs dot cygnus dot com
- Organization: University of Wisconsin
- References: <3756B4F2.F766F1C6@cs.wisc.edu> <ork8tiapj4.fsf@lua.lbi.dcc.unicamp.br>
Alexandre Oliva wrote:
>
> > - While testing 1.1.2, the include directories specified with -I are
> > from the snapshot, not from the 1.1.2 compiler, so it compiles with 2.95
> > include files, but links against 1.1.2 libraries.
>
> Are you pointing snapdir to the source tree or the build tree? It
> should be the source tree, so that dejagnu does not find the include
> dir in the build tree and tries to use it.
>
I'm pointing at the source tree, not the build tree.
For instance if I make my site.exp file look like this:
-----------
set snapdir "/s/gcc-2.95/src/snapshot/egcs"
set old_release_prefix /s/egcs-1.1.2
set rootme "."
set target_triplet [exec "$snapdir/config.guess"]
set srcdir "$snapdir/gcc/testsuite"
set GCC_UNDER_TEST "$old_release_prefix/bin/gcc"
set GXX_UNDER_TEST "$old_release_prefix/bin/g++"
set G77_UNDER_TEST "$old_release_prefix/bin/g77"
-----------
a typical compile line while running the g++ tests looks like this:
/s/egcs-1.1.2/bin/g++
/s/gcc-2.95/src/snapshot/egcs/gcc/testsuite/g++.dg/special/conpr-1.C
-I/s/gcc-2.95/src/snapshot/egcs/hot/egcs/libstdc++
-I/s/gcc-2.95/src/snapshot/egcs/libstdc++/stl -lm -o ./a.out
.. so any include file found in
"/s/gcc-2.95/src/snapshot/egcs/libstdc++/stl" will supersede the ones
from the installed egcs-1.1.2
Perhaps there needs to be a distinction somewhere either in the
testsuite and/or in dejagnu between a compiler sitting in the build
tree, and one that has been "installed" and presumably knows where to
find its own header files and libraries. Everything right now seems to
assume the former.
Marc