This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: g++ make check failure on sparc-sun-solaris2.8
- To: zackw at stanford dot edu (Zack Weinberg)
- Subject: Re: g++ make check failure on sparc-sun-solaris2.8
- From: Brad Lucier <lucier at math dot purdue dot edu>
- Date: Sat, 31 Mar 2001 22:23:16 -0500 (EST)
- Cc: lucier at math dot purdue dot edu, gcc-bugs at gcc dot gnu dot org
>
> On Sat, Mar 31, 2001 at 11:40:52AM -0500, lucier@math.purdue.edu wrote:
> > I've managed to get 3.1 to build on sparc-sun-solaris2.8; now the
> > g++ make check fails, perhaps because of Solaris's lame /bin/sh.
> > Anyway, here is the entry from check.log:
> ...
> > /export/home/lucier/gcc/objdir/sparc-sun-solaris2.8//libstdc++-v3/tests_flags:
> test: unknown operator ==
>
> == is a bashism. Try:
>
> ===================================================================
> Index: libstdc++-v3/tests_flags.in
> --- libstdc++-v3/tests_flags.in 2001/03/30 21:59:12 1.16
> +++ libstdc++-v3/tests_flags.in 2001/03/31 16:52:41
> @@ -108,7 +108,7 @@ case ${query} in
> -I${SRC_DIR}/include/std -I${SRC_DIR}/include/$C_DIR
> -I${SRC_DIR}/libsupc++ -I${SRC_DIR}/libio
> -I${SRC_DIR}/testsuite"
> - if test x@xcompiling@ == x1; then
> + if test x@xcompiling@ = x1; then
> INCLUDES="${INCLUDES} -I${SRC_DIR}/../newlib/libc/include"
> fi
> ;;
>
> zw
>
Yes, thank you, that worked. What I did was:
../configure; make bootstrap
which failed after a good compare when building libstdc++; then remove everything below
objdir/sparc-sun-solaris2.8; then
make
which finished, then
make -k check
Brad