This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Running the test suite
- From: Steven Bosscher <s dot bosscher at student dot tudelft dot nl>
- To: gcc-help at gcc dot gnu dot org
- Date: 30 Jul 2002 21:48:40 +0200
- Subject: Running the test suite
Hello,
I'm trying to figure out how to use DejaGNU to do "make check" for GCC.
I've bootstrapped the compiler, C front end only:
Reading specs from /opt/experimental/lib/gcc-lib/i586-pc-linux-gnu/3.3/specs
Configured with: ../gcc/configure --with-gnu-as --with-gnu-ld --prefix=/opt/experimental --program-suffix=-3.3 --enable-languages=c
Thread model: single
gcc versie 3.3 20020730 (experimental)
I've also installed DejaGNU:
# runtest -V
WARNING: Couldn't find the global config file.
Expect version is 5.26
Tcl version is 8.0
Framework version is 1.4.1
steven:/home/steven/devel/gcc/objdir #
It doesn't work, I get a number of the same errors:
Running /home/steven/devel/gcc/gcc/gcc/testsuite/gcc.dg/debug/debug.exp ...
ERROR: tcl error sourcing /home/steven/devel/gcc/gcc/gcc/testsuite/gcc.dg/debug/debug.exp.
ERROR: wrong # args: should be "regsub ?switches? exp string subSpec varName"
while executing
"regsub -all ".*: warning: -f(pic|PIC) ignored for target .*" $text """
(procedure "prune_warnings" line 148)
invoked from within
"prune_warnings [lindex $status 1]"
(procedure "default_target_compile" line 309)
invoked from within
"default_target_compile $source $destfile $type $options"
(procedure "target_compile" line 6)
invoked from within
"target_compile $source $dest $type $options"
(procedure "gcc_target_compile" line 28)
invoked from within
"gcc_target_compile "$srcdir/$subdir/trivial.c" "trivial.S" assembly "additional_flags=$type""
("foreach" body line 2)
invoked from within
"foreach type {-gdwarf-2 -gstabs -gstabs+ -gxcoff -gxcoff+ -gcoff} {
set comp_output [gcc_target_compile "$srcdir/$subdir/trivial.c" "trivial.S" asse..."
invoked from within
"if ![info exists DEBUG_TORTURE_OPTIONS] {
set DEBUG_TORTURE_OPTIONS ""
foreach type {-gdwarf-2 -gstabs -gstabs+ -gxcoff -gxcoff+ -gcoff} {
se..."
(file "/home/steven/devel/gcc/gcc/gcc/testsuite/gcc.dg/debug/debug.exp" line 26)
invoked from within
"source /home/steven/devel/gcc/gcc/gcc/testsuite/gcc.dg/debug/debug.exp"
("uplevel" body line 1)
invoked from within
"uplevel #0 source /home/steven/devel/gcc/gcc/gcc/testsuite/gcc.dg/debug/debug.exp"
invoked from within
"catch "uplevel #0 source $test_file_name""
I don't know tcl, what's wrong here. Could somebody help me out?
Greetz
Steven