Problem building 4.2.0 on Solaris 10 (SPARC)
Bill McEnaney
bill@rkirkpat.net
Wed Jun 20 05:10:00 GMT 2007
Luke,
I don't know what causes your problem, but I'll tell you what I did to
build gcc-4.2.0 under Solaris 8. Normally, I build gcc in
/usr/share/src. This time, I needed to build it in /home instead
because it contained more free space than /usr did.
Before I show you the steps I take to build gcc, I should show you three
lines that I've added to my .cshrc because Eric Botcazou, a gcc
maintainer suggested that I put them into it.
setenv MAKE /usr/local/bin/make
setenv CONFIG_SHELL /bin/ksh
setenv CC /usr/local/bin/gcc
Here's the procedure I use after I put gcc's tarball into, say, /usr/src.
bunzip2 gcc-4.2.0.tar.bz2
gtar -xf gcc-4.2.0.tar
mkdir gc
cd gc
/usr/src/gcc-4.2.0/configure --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld
gmake bootstrap
gmake install
gmake clean
strip /usr/local/bin/*
Here, "gmake" is a symlink to the current version of GNU make.
Hope this helps.
Bill
> I'm trying to build on:
>
> Sun-Fire-880
>
> I've configured with:
>
> --prefix=... --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/
> usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ --enable-
> shared --enable-tls --enable-threads=posix
>
> The build command that I am running is:
>
> make BOOT_CFLAGS='-g -O3' -j 8
>
> The problem that I am having is (I've manually changed the path to a
> relative path from where I ran 'make'):
>
> make[2]: Entering directory `../gcc-4.2.0'
> make[3]: Entering directory `../gcc-4.2.0'
> rm -f stage_current
> make[3]: Leaving directory `../gcc-4.2.0'
> Comparing stages 2 and 3
> /bin/sh: stage3-gcc: does not exist
> make[2]: *** [compare] Error 1
> make[2]: Leaving directory `../gcc-4.2.0'
> make[1]: *** [stage3-bubble] Error 2
> make[1]: Leaving directory `../gcc-4.2.0'
> make: *** [all] Error 2
>
> stage3-gcc exists in the subdirectory:
>
> host-sparc-sun-solaris2.10
>
> Can anyone tell me what I am missing here?
>
> Thanks in advance,
> Luke
>
>
________________________________________________________________
Please visit a saintly hero:
http://www.jakemoore.org
And a boy with a wonderful wish:
http://shaneswish.com/
More information about the Gcc-help
mailing list