This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Document running V3 tests on installed compiler


> + <p>
> + You can run the tests with a compiler and library that have already
> + been installed.  Make sure that the compiler (e.g., <code>g++</code>)
> + is in your <code>PATH</code>.  If you are using shared libraries, then
> + you must also ensure that the directory containing the shared version
> + of libstdc++ is in your <code>LD_LIBRARY_PATH</code>, or equivalent.
> + If your GCC source tree is at <code>/path/to/gcc</code>, then you can
> + run the tests as follows:
> + <pre>
> + runtest --tool libstdc++ --srcdir=/path/to/gcc/libstdc++-v3/testsuite
> + </pre>
> + The testsuite will create a number of files in the directory in which you
> + run this command,.  Some of those files might use the same name as
> + files created by other testsuites (like the ones for GCC and G++), so
> + you should not try to run all the testsuites in parallel from the same
> + directory.
> + </p>

This doesn't work for me..... 

runtest --tool libstdc++ --srcdir=/mnt/hd/src/gcc/libstdc++-v3/testsuite

WARNING: Couldn't find the global config file.
Test Run By bkoz on Wed May  4 21:58:24 2005
Native configuration is i686-redhat-linux-gnu

                === libstdc++ tests ===

Schedule of variations:
    unix

Running target unix
Using /usr/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
Using /mnt/hd/src/gcc/libstdc++-v3/testsuite/config/default.exp as tool-and-target-specific interface file.
Running /mnt/hd/src/gcc/libstdc++-v3/testsuite/libstdc++-abi/abi.exp ...
Running /mnt/hd/src/gcc/libstdc++-v3/testsuite/libstdc++-dg/normal.exp ...
ERROR: tcl error sourcing /mnt/hd/src/gcc/libstdc++-v3/testsuite/libstdc++-dg/normal.exp.
ERROR: could not compile testsuite_character.cc
    while executing
"error "could not compile $f""
    (procedure "v3-build_support" line 35)
    invoked from within
"v3-build_support"
    (file "/mnt/hd/src/gcc/libstdc++-v3/testsuite/libstdc++-dg/normal.exp" line 25)
    invoked from within
"source /mnt/hd/src/gcc/libstdc++-v3/testsuite/libstdc++-dg/normal.exp"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 source /mnt/hd/src/gcc/libstdc++-v3/testsuite/libstdc++-dg/normal.exp"
    invoked from within
"catch "uplevel #0 source $test_file_name""

Clearly, I am doing something wrong. I followed the instructions exactly.

I'm using mainline gcc sources for the testuite directory, and gcc-4.0.0 for the installed compiler. This is x86/linux. I tried both bash and tcsh.

-benamin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]