This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: problem running test_installed suite was Re: more on mips-elf test installed
Joel Sherrill wrote:
>
> Daniel Jacobowitz wrote:
> >
> Thanks. That appears to be working -- at least testglue.c is compiled
> by
> the right compiler anyway. I had tried "CC_FOR_TARGET=arm-elf-gcc
> runtest ..."
> but obviously that didn't work.
>
> I am running the test suite now and if that goes well should have a
> patch
> to contrib/test_installed.
Well, it got further but I still have about 4000 more failures in the
installed test run than the in build tree version. I see this failure
more than once:
Executing on host: arm-elf-gcc
/usr3/ftp_archive/gnu/gcc/ss/b-3.2.1/gcc-3.2.1/gcc/testsuite/gcc.c-torture/execute/20000112-1.c
testglue.o -w -O2 -DSTACK_SIZE=16384 -Wl,-wrap,exit
-Wl,-wrap,main -Wl,-wrap,abort -lm -o
/usr3/ftp_archive/gnu/gcc/ss/b-3.2.1/r-arm-elf/20000112-1.x2 (timeout
= 800)
pid is 13355 -13355
output is
PASS: gcc.c-torture/execute/20000112-1.c compilation, -O2
Simulator -run missing.
FAIL: gcc.c-torture/execute/20000112-1.c execution, -O2
Which I take to mean that it can't figure out the simulator.
The next place the script uses the wrong gcc is during linkage.exp.
output is
cc -c
/usr3/ftp_archive/gnu/gcc/ss/b-3.2.1/gcc-3.2.1/gcc/testsuite/gcc.misc-tests/linkage-y.c
>&/dev/null
doing compile
I notice another difference is that when run in tree, it skips
the unsupported tests and doesn't for the installed run:
Executing on host: arm-elf-gcc
/usr3/ftp_archive/gnu/gcc/ss/b-3.2.1/gcc-3.2.1/gcc/testsuite/gcc.dg/20020122-2.c
-O2 -fprefetch-loop-arrays -march=athlon -DSTACK_SIZE=16384 -S -o
20020122-2.s (timeout = 800)
pid is 26700 -26700
cc1: bad value (athlon) for -march= switch^M
cc1: warning: -fprefetch-loop-arrays not supported for this target (try
-march switches)^M
I see about 200 failure just trying to compile code that requires a
particular -march switch or has inline assembly. It looks like there
are a handful of other switches that aren't set. The site.exp is:
set tmpdir "/usr3/ftp_archive/gnu/gcc/ss/b-3.2.1/r-arm-elf"
set srcdir
"/usr3/ftp_archive/gnu/gcc/ss/b-3.2.1/gcc-3.2.1/gcc/testsuite"
set GCC_UNDER_TEST "arm-elf-gcc"
set GXX_UNDER_TEST "no"
set G77_UNDER_TEST "no"
Is there more that has to be set that test_installed is not setting?
Thanks.
--joel sherrill