Running GCC tests on installed compiler

Dominique Dhumieres dominiq@lps.ens.fr
Sun Mar 18 10:36:00 GMT 2007


Gerald,

Thanks (late) for the patch. I have some new questions:

(1) I get the following errors:

ERROR: can't read "HOSTCC": no such variable
    while executing
"remote_exec host "$HOSTCC $HOSTCFLAGS $generator_cmd""
    invoked from within
"set status [remote_exec host "$HOSTCC $HOSTCFLAGS $generator_cmd"]"
    (file "/Users/dominiq/test/gcc-4.3-20070316/gcc/testsuite/gcc.dg/compat/struct-layout-1.exp" line 93)
    invoked from within
"source /Users/dominiq/test/gcc-4.3-20070316/gcc/testsuite/gcc.dg/compat/struct-layout-1.exp"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 source /Users/dominiq/test/gcc-4.3-20070316/gcc/testsuite/gcc.dg/compat/struct-layout-1.exp"
    invoked from within
"catch "uplevel #0 source $test_file_name""

from

ERROR: tcl error sourcing /Users/dominiq/test/gcc-4.3-20070316/gcc/testsuite/gcc.dg/compat/struct-layout-1.exp.
ERROR: tcl error sourcing /Users/dominiq/test/gcc-4.3-20070316/gcc/testsuite/g++.dg/compat/struct-layout-1.exp.
ERROR: tcl error sourcing /Users/dominiq/test/gcc-4.3-20070316/gcc/testsuite/objc.dg/gnu-encoding/gnu-encoding.exp.

I guess that the environment variables HOSTCC and HOSTCFLAGS should be
set within the script, but I have no idea about their expected values.

(2) Presently the test is for gcc, g++, gfortran, and objc. Looking at
http://gcc.gnu.org/ml/gcc-testresults/, I see that most tests are also
for libffi, libgomp, libjava, and libstdc++. Would it be difficult
to add them?

TIA

Dominique



More information about the Gcc mailing list