The ada testsuite uses (perhaps only sometimes) an installed gcc component, rather than the newly build one. Running the testsuite with gcc-3.3.1 in the path I get $ make check-ada test -d testsuite/ada/acats || mkdir -p testsuite/ada/acats testdir=`cd /usr/local/src/gcc/gcc/testsuite/ada/acats; ${PWDCMD-pwd}`; \ export testdir; cd testsuite/ada/acats; ${testdir}/run_acats === acats configuration === gcc is /usr/local/obj/gcc/gcc/testsuite/ada/acats/gcc Reading specs from /usr/local/obj/gcc/gcc/specs Configured with: /usr/local/src/ gcc/configure --prefix=/usr/local/gcc-3_4 --enable-threads=posix --disable- libgc j --enable-sjlj-exceptions --with-system-zlib --enable-nls --disable-libstdcxx- p ch --enable-version-specific-runtime-libs --without-included-gettext --disable- s hared Thread model: posix gcc version 3.4 20031112 (experimental) host=i686-pc-cygwin target=i686-pc-cygwin gnatmake is /usr/local/obj/gcc/gcc/gnatmake === acats support === Generating support files... done. Compiling support files...gnatmake: "check_file.ali" incompatible ALI file, plea se recompile gnatmake: "check_file.adb" compilation error done. === acats tests === Running chapter a ... FAIL: a22006b FAIL: a22006c FAIL: a22006d FAIL: a26007a If I install the newly built gcc-3.4 and put it in the path then the testsuite runs. It doesn't finish. After completing a substantial number of tests the machine hangs.
The testsuite is using the installed gcc.exe. If I add the installed gcc bin directory to the path, then rename that gcc.exe then we revert to the original error.
http://gcc.gnu.org/ml/gcc/2003-11/msg00601.html
I do not see that at all in your log: << gcc is /usr/local/obj/gcc/gcc/testsuite/ada/acats/gcc >> which seems exactly right. Could you check the contents of this script file ? Also, could you add '-v -gnatv' to the gnatmake options at the beginning of run_all.sh and send the output of make check-ada ? Concerning the hanging test, the simplest is to put the tests that hang in the file norun.lst designed for this purpose, to allow the run to complete. Arno
for me, the contents is $ more testsuite/ada/acats/gcc #!/bin/sh exec /usr/local/src/gcc-binutils/trunk/objdir/gcc/xgcc -B/usr/local/src/gcc- binutils/trunk/objdir/gcc/ "$@" chj@Luddes /usr/local/src/trunk/objdir/gcc $ the top few lines from the output of make check-ada is this: test -d testsuite/ada/acats || mkdir -p testsuite/ada/acats testdir=`cd /usr/local/src/trunk/gcc/gcc/testsuite/ada/acats; ${PWDCMD-pwd}`; \ export testdir; cd testsuite/ada/acats; ${testdir}/run_acats === acats configuration === gcc is /usr/local/src/gcc-binutils/trunk/objdir/gcc/testsuite/ada/acats/gcc Reading specs from /usr/local/src/gcc-binutils/trunk/objdir/gcc/specs Configured with: /usr/local/src/trunk/gcc/configure pentium4-cygwin -- prefix=/usr/local/gcc-binutils --enable-shared --enable-threads=posix --with- system-zlib --enable-libgcj Thread model: posix gcc version 3.4 20031113 (experimental) host=i686-pc-cygwin target=pentium4-cygwin gnatmake is /usr/local/src/gcc-binutils/trunk/objdir/gcc/gnatmake === acats support === Generating support files... done. Compiling support files... GNATMAKE 3.4 20031113 (experimental) Copyright 1995-2003 Free Software Foundation, Inc. "check_file.ali" being checked ... -> "check_file.ali" missing. GNAT 3.3.1 (cygming special) Copyright 1992-2002 Free Software Foundation, Inc. Compiling: check_file.adb (source file time stamp: 2003-11-14 06:54:42) 197 lines: No errors gnatmake: "check_file.ali" incompatible ALI file, please recompile End of compilation gnatmake: "check_file.adb" compilation error done. === acats tests === Running chapter a ... FAIL: a22006b FAIL: a22006c but if I first installed the newly built gcc and then run make check-ada, I get these lines of output... and the hanging test is cxg2014. BTW, the Ada testsuite gives this: === acats Summary === # of expected passes 1937 # of unexpected failures 28 # of unsupported tests 357 Cheers, /ChJ
oops, missed to paste in the first lines of output from make checka-ada when the newly built gcc is installed before running the test suite... test -d testsuite/ada/acats || mkdir -p testsuite/ada/acats testdir=`cd /usr/local/src/trunk/gcc/gcc/testsuite/ada/acats; ${PWDCMD-pwd}`; \ export testdir; cd testsuite/ada/acats; ${testdir}/run_acats === acats configuration === gcc is /usr/local/src/gcc-binutils/trunk/objdir/gcc/testsuite/ada/acats/gcc Reading specs from /usr/local/src/gcc-binutils/trunk/objdir/gcc/specs Configured with: /usr/local/src/trunk/gcc/configure pentium4-cygwin -- prefix=/usr/local/gcc-binutils --enable-shared --enable-threads=posix --with- system-zlib --enable-libgcj Thread model: posix gcc version 3.4 20031113 (experimental) host=pentium4-cygwin target=pentium4-cygwin gnatmake is /usr/local/src/gcc-binutils/trunk/objdir/gcc/gnatmake === acats support === Generating support files... done. Compiling support files...impdef-annex_c.ads:57:27: "SIGPIPE" not declared in "Names" gnatmake: "impdef-annex_c.adb" compilation error done. === acats tests === Running chapter a ... Running chapter c2 ... FAIL: c23003b FAIL: c23003g FAIL: c23003i Running chapter c3 ... Cheers, /ChJ
Thanks for the additional info. The problem is that indeed we cannot used a shell script for 'gcc' under Windows. I'll have a look for a replacement. In the mean time, you indeed have a reasonable work around. Arno
Subject: Bug 13035 CVSROOT: /cvs/gcc Module name: gcc Changes by: charlet@gcc.gnu.org 2003-11-14 10:04:31 Modified files: gcc/testsuite : ChangeLog gcc/testsuite/ada/acats: run_acats run_all.sh Log message: PR ada/13035 * ada/acats/run_acats, run_all.sh: Fix syntax errors. No longer use a wrapper for gcc, since this does not work under Windows, use --GCC switch instead. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3192&r2=1.3193 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ada/acats/run_acats.diff?cvsroot=gcc&r1=1.2&r2=1.3 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ada/acats/run_all.sh.diff?cvsroot=gcc&r1=1.9&r2=1.10
All the errors you reported should now be fixed. Arno