gcc-2.95 on Solaris2.6

Rob Johnson robj@kudonet.com
Mon Oct 11 08:41:00 GMT 1999


Steve,
   When I try to build gcc on my Sun Ultra 10 running Solaris 2.7 and Sun's DevPro 5.0 C++
compiler (I don't currently have a built copy of gcc to compile with) and follow your
instructions
given below,  it fails in the "make bootstrap" step.   I give a listing of the failure at the
end of this
note.  Any clue as to what the problem is here and how to fix it?  Any help would be MUCH
appreciated.

    Thanks,
                   --Rob Johnson (rob.johnson@sun.com)

Here is the listing of the failure:

make[1]: Entering directory `/export/home/gcc-2.95.1_objdir/gcc'
rm -f .bad_compare
case "compare-lean" in compare | compare-lean ) stage=2 ;; * ) stage=`echo compare-lean | sed -e
's,^compare\([0-9][0-9]*
\).*,\1,'` ;; esac; \
for file in *.o; do \
  tail +16c ./$file > tmp-foo1; \
  tail +16c stage$stage/$file > tmp-foo2 \
    && (cmp tmp-foo1 tmp-foo2 > /dev/null 2>&1 || echo $file differs >> .bad_compare) || true; \

done
case "compare-lean" in compare | compare-lean ) stage=2 ;; * ) stage=`echo compare-lean | sed -e
's,^compare\([0-9][0-9]*
\).*,\1,'` ;; esac; \
for dir in tmp-foo intl ch cp f java objc; do \
  if [ "`echo $dir/*.o`" != "$dir/*.o" ] ; then \
    for file in $dir/*.o; do \
      tail +16c ./$file > tmp-foo1; \
      tail +16c stage$stage/$file > tmp-foo2 \
        && (cmp tmp-foo1 tmp-foo2 > /dev/null 2>&1 || echo $file differs >> .bad_compare) ||
true; \
    done; \
  else true; fi; \
done
rm -f tmp-foo*
case "compare-lean" in compare | compare-lean ) stage=2 ;; * ) stage=`echo compare-lean | sed -e
's,^compare\([0-9][0-9]*
\).*,\1,'` ;; esac; \
if [ -f .bad_compare ]; then \
  echo "Bootstrap comparison failure!"; \
  cat .bad_compare; \
  exit 1; \
else \
  case "compare-lean" in \
    *-lean ) rm -rf stage$stage ;; \
    *) ;; \
  esac; true; \
fi
Bootstrap comparison failure!
emit-rtl.o differs
make[1]: *** [compare-lean] Error 1
make[1]: Leaving directory `/export/home/gcc-2.95.1_objdir/gcc'
make: *** [bootstrap-lean] Error 2


> The software was compiled according to the GNU instructions:
>
> After gunzipping and untarring the sources and reading the install
> documentation, do
>
> cd gcc-2.95.1
> mkdir objdir
> cd objdir
> ../configure
> make bootstrap
> make install
>
> That's it.
>
> Appropriate patch additions depend on your local needs.
>
> Steve Christensen
>
> In article < 37FD38E4.BC0DE66A@bellatlantic.net >, olliecat <olliecat@bellatlantic.net> writes:
> >Beautiful, thanks !  BTW, is there a possibility that whoever compiled
> >it could let me in on the steps they took.  I'm particularly interested
> >if any Sun patches are necessary.
> >
> >Thanks again.
> >
> >Steve Christensen wrote:
> >>
> >> gcc-2.95.1 for Solaris 2.6 on SPARC is on sunfreeware.com now.
> >>
> >> Steve Christensen
> >> sunfreeware.com
> >>
> >>>I'm using Solaris 2.6 and compiling with gcc-2.7.2.3.

--
***************************************************************
*                                                 ______      *
* Rob Johnson  X-Windows,Motif,UNIX,C Expertise  /_____/\     *
*                                               /____ \\ \    *
* Sun Microsystems, Inc.                       /_____\ \\ /   *
* 200 Jefferson Place, Building 29            /_____/ \/ / /  *
* Menlo Park, California, USA                /_____/ /   \//\ *
*                                            \_____\//\   / / *
*     Home:   (408) 374-4674                  \_____/ / /\ /  *
*      Sun:   (650) 786-0590                   \_____/ \\ \   *
*                                               \_____\ \\    *
*    Email:    robj@kudonet.com                  \_____\/     *
*      Sun:    rob.johnson@sun.com                            *
*     http:    //sh.kudonet.com/~robj                         *
***************************************************************





More information about the Gcc-help mailing list