automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Spurious failures of some silent*.test tests when cc != gcc (was: Testsu


From: Stefano Lattarini
Subject: Spurious failures of some silent*.test tests when cc != gcc (was: Testsuite failures on IRIX 6.5)
Date: Thu, 18 Nov 2010 00:45:53 +0100
User-agent: KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; )

On Monday 15 November 2010, Stefano Lattarini wrote:
>
> > FAIL: silentyacc.test (exit: 1)
> > ===============================
> >
> > /tmp/am/build-mips-sgi-irix6.5/tests:/tmp/local/mips-sgi-irix6.5/bin
> >   :/tmp/bin:/bin:/usr/bin:/sbin:/usr/sbin:/etc:/usr/etc:/usr/bin/X11
> >   :/usr/bsd
> > silentyacc: running bison --version
> > GNU Bison version 1.25
> > + pwd
> > /tmp/am/build-mips-sgi-irix6.5/tests/silentyacc.dir
> > + set -e
> > + mkdir sub
> > + cat
> > + 1>> configure.in 0< /tmp/sh996067.1
> > + cat
> > + 1> Makefile.am 0< /tmp/sh996067.2
> > + cat
> > + 1> sub/Makefile.am 0< /tmp/sh996067.3
> > + cat
> > + 1> foo.y 0< /tmp/sh996067.4
> > + cp foo.y sub/bar.y
> > + aclocal-1.11a -Werror
> > + automake-1.11a --foreign -Werror -Wall --add-missing
> > configure.in:5: installing `./compile'
> > configure.in: installing `./ylwrap'
> > + autoconf
> > + ./configure --enable-silent-rules
>
> [MEGA-CUT]
>
> > + rm -f foo.[ch] sub/bar.[ch]
> > + ./configure am_cv_CC_dependencies_compiler_type=gcc --enable-silent-rules
>
> OK, so here I force gcc depmode ...
>
> > checking for a BSD-compatible install... ./install-sh -c
> > checking whether build environment is sane... yes
> > checking for a thread-safe mkdir -p... ./install-sh -c -d
> > checking for gawk... no
> > checking for mawk... no
> > checking for nawk... nawk
> > checking whether make sets $(MAKE)... yes
> > checking for style of include used by make... GNU
> > checking for gcc... no
> > checking for cc... cc
> > checking for C compiler default output file name... a.out
> > checking whether the C compiler works... yes
> > checking whether we are cross compiling... no
> > checking for suffix of executables... 
> > checking for suffix of object files... o
> > checking whether we are using the GNU C compiler... no
> > checking whether cc accepts -g... yes
> > checking for cc option to accept ISO C89... none needed
> > checking dependency style of cc... (cached) gcc
> > checking whether cc understands -c and -o together... yes
> > checking for bison... bison -y
> > checking that generated files are newer than configure... done
> > configure: creating ./config.status
> > config.status: creating Makefile
> > config.status: creating sub/Makefile
> > config.status: executing depfiles commands
> > + make
> > cc-3569 cc: ERROR 
> >  invalid macro definition: 
> > cc-1040 cc: ERROR 
> >  An identifier is expected.
> > cc-1005 cc: ERROR 
> >  The source file ".deps/bar.TPo" is unavailable.
> > 1 error and 2 catastrophic errors detected in the compilation of 
> > ".deps/bar.TPo".
> > Compilation terminated.
> 
> ... but the C compiler is clearly not gcc-compatible in this respect!
Oh, and I'm seeing a similar failure with the SunStudio C compiler!  So
my explanation is probably correct, and I can write and test a patch even
without access to an IRIX system.
 
> My bad I guess.  The solution might be splitting silentyacc.test in two
> sister tests:
>  - silentyacc-generic.test, trying only default depmode and disabled
>    depmode; and
>  - silentyacc-gcc.test, trying trying gcc depmode and having `gcc' in
>    $required.
> 
> And maybe something similar should be done for silentlex.test too.
>
*And* for silent5.test.

I'll try to cook up a patch once my patches "Fix spurious Lex/Yacc-related
failures in tests `silent*.test' w.r.t. Solaris XPG4 make":
 <http://lists.gnu.org/archive/html/automake-patches/2010-11/msg00221.html>
have been applied (to spare myself unnecessary conflicts).

Regards,
   Stefano



reply via email to

[Prev in Thread] Current Thread [Next in Thread]