gcc -3.4.6 solaris installation error

Hi ,
I am installing gcc 3.4.6 on SunOS labcvs001sm 5.9 Generic_117171-07 sun4u sparc

SUNW,Ultra-5_10 . The isa info is 'sparcv'.

I have the following with me
a)gcc-3.4.6.tar
b)gcc-3.4.6-sol9-sparc-local
c)libiconv-1.11-sol9-sparc-local
d) binutils-2.18.tar.gz
e) make-3.81-sol9-sparc-local

1.I start by untarring gcc-3.4.6.tar with the command gtar xvf gcc-3.4.6.tar
2.I then gunzip and add the 'gcc-3.4.6-sol9-sparc-local' and 'libiconv-1.11-sol9

-sparc-local'

pkgadd -d gcc-3.4.6-sol9-sparc-local
pkgadd -d libiconv-1.11-sol9-sparc-local

3.I then update the pathvariable to

export PATH=/usr/local/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

4.After this I go to 'gcc-3.4.6' Dirctory.

5.IN this directory I do mkdir ObjectDir

6.Now in 'gcc-3.4.6' Dirctory I run ./configure

  1. After the configure is successful say make in 'gcc-3.4.6' Directory

8.After some time I get this error

make[1]: Entering directory `/(my temp directory for installation )/gcc-

3.4.6/libiberty'
rm -f libiberty.a pic/libiberty.a
ar rc libiberty.a \
regex.o cplus-dem.o cp-demangle.o cp-demint.o md5.o alloca.o argv.o

choose-temp.o concat.o dyn-string.o fdmatch.o fibheap.o floatformat.o fnmatch.o

getopt.o getopt1.o getpwd.o getruntime.o hashtab.o hex.o lbasename.o lrealpath.o

make-relative-prefix.o make-temp-file.o objalloc.o obstack.o partition.o

physmem.o pex-unix.o safe-ctype.o sort.o spaces.o splay-tree.o strerror.o

strsignal.o ternary.o xatexit.o xexit.o xmalloc.o xmemdup.o xstrdup.o xstrerror.o

asprintf.o mempcpy.o mkstemps.o setenv.o sigsetmask.o stpcpy.o stpncpy.o

vasprintf.o
make[1]: ar: Command not found
make[1]: *** [libiberty.a] Error 127
make[1]: Leaving directory `/(my temp directory for installation)/gcc-

3.4.6/libiberty'
make: *** [all-libiberty] Error 2

Any help is very deeply appreciated
Regards
//Vivek

The Env look like

bash-2.05# env
PWD=/temp/gcc-3.4.6
TZ=US/Central
LC_MESSAGES=C
HZ=100
HOSTNAME=labcvs001sm
LD_LIBRARY_PATH=/usr/local/lib:
LC_TIME=en_
MACHTYPE=sparc-sun-solaris2.9
MAIL=/var/mail/root
OLDPWD=/temp
LC_NUMERIC=en_US.ISO8859-1
LOGNAME=root
SHLVL=1
LC_CTYPE=en_US.ISO8859-1
SHELL=/sbin/sh
HOSTTYPE=sparc
OSTYPE=solaris2.9
HOME=/
TERM=xterm
PATH=/usr/local/bin:/usr/sbin:/usr/bin
LC_MONETARY=en_US.ISO8859-1
LC_COLLATE=en_US.ISO8859-1
_=/usr/bin/env

Do you have this?

paul /[01:43:34](516)# which ar
/usr/ccs/bin/ar

yes I added /usr/ccs/bin to the PATH and at least the make has stated to build ...............

But it is taking forever ....i Guess 30 mins and still running . It keeps repeating .......

/temp/gcc-3.4.6/gcc/xgcc -shared-libgcc -B/temp/gcc-3.4.6/gcc/ -nostdinc++ -L/temp/gcc-3.4.6/sparc-sun-solaris2.9/libstdc++-v3/src -L/temp/gcc-3.4.6/sparc-sun-solaris2.9/libstdc++-v3/src/.libs -B/usr/local/sparc-sun-solaris2.9/bin/ -B/usr/local/sparc-sun-solaris2.9/lib/ -isystem /usr/local/sparc-sun-solaris2.9/include -isystem /usr/local/sparc-sun-solaris2.9/sys-include -I/temp/gcc-3.4.6/sparc-sun-solaris2.9/libstdc++-v3/include/sparc-sun-solaris2.9 -I/temp/gcc-3.4.6/sparc-sun-solaris2.9/libstdc++-v3/include -I/temp/gcc-3.4.6/libstdc++-v3/libsupc++ -O2 -g -O2 -g -O2 -fno-implicit-templates -Wall -W -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -c ../../.././libstdc++-v3/src/fstream-inst.cc -fPIC -DPIC -o .libs/fstream-inst.o

/temp/gcc-3.4.6/gcc/xgcc -shared-libgcc -B/temp/gcc-3.4.6/gcc/ -nostdinc++ -L/temp/gcc-3.4.6/sparc-sun-solaris2.9/libstdc++-v3/src -L/temp/gcc-3.4.6/sparc-sun-solaris2.9/libstdc++-v3/src/.libs -B/usr/local/sparc-sun-solaris2.9/bin/ -B/usr/local/sparc-sun-solaris2.9/lib/ -isystem /usr/local/sparc-sun-solaris2.9/include -isystem /usr/local/sparc-sun-solaris2.9/sys-include -I/temp/gcc-3.4.6/sparc-sun-solaris2.9/libstdc++-v3/include/sparc-sun-solaris2.9 -I/temp/gcc-3.4.6/sparc-sun-solaris2.9/libstdc++-v3/include -I/temp/gcc-3.4.6/libstdc++-v3/libsupc++ -O2 -g -O2 -g -O2 -fno-implicit-templates -Wall -W -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -c ../../.././libstdc++-v3/src/fstream-inst.cc -o fstream-inst.o >/dev/null 2>&1
/bin/sh ../libtool --tag CXX --mode=compile /temp/gcc-3.4.6/gcc/xgcc -shared-libgcc -B/temp/gcc-3.4.6/gcc/ -nostdinc++ -L/temp/gcc-3.4.6/sparc-sun-solaris2.9/libstdc++-v3/src -L/temp/gcc-3.4.6/sparc-sun-solaris2.9/libstdc++-v3/src/.libs -B/usr/local/sparc-sun-solaris2.9/bin/ -B/usr/local/sparc-sun-solaris2.9/lib/ -isystem /usr/local/sparc-sun-solaris2.9/include -isystem /usr/local/sparc-sun-solaris2.9/sys-include -I/temp/gcc-3.4.6/sparc-sun-solaris2.9/libstdc++-v3/include/sparc-sun-solaris2.9 -I/temp/gcc-3.4.6/sparc-sun-solaris2.9/libstdc++-v3/include -I/temp/gcc-3.4.6/libstdc++-v3/libsupc++ -O2 -g -O2 -g -O2 -fno-implicit-templates -Wall -W -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -c -o ext-inst.lo ../../.././libstdc++-v3/src/ext-inst.cc

/temp/gcc-3.4.6/gcc/xgcc -shared-libgcc -B/temp/gcc-3.4.6/gcc/ -nostdinc++ -L/temp/gcc-3.4.6/sparc-sun-solaris2.9/libstdc++-v3/src -L/temp/gcc-3.4.6/sparc-sun-solaris2.9/libstdc++-v3/src/.libs -B/usr/local/sparc-sun-solaris2.9/bin/ -B/usr/local/sparc-sun-solaris2.9/lib/ -isystem /usr/local/sparc-sun-solaris2.9/include -isystem /usr/local/sparc-sun-solaris2.9/sys-include -I/temp/gcc-3.4.6/sparc-sun-solaris2.9/libstdc++-v3/include/sparc-sun-solaris2.9 -I/temp/gcc-3.4.6/sparc-sun-solaris2.9/libstdc++-v3/include -I/temp/gcc-3.4.6/libstdc++-v3/libsupc++ -O2 -g -O2 -g -O2 -fno-implicit-templates -Wall -W -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -c ../../.././libstdc++-v3/src/ext-inst.cc -fPIC -DPIC -o .libs/ext-inst.o

Thank You

It is normal to take quite some time, depending on how powerful your machine is.

I am curious as to why you install gcc from a precompile package, then try to re-compile it?

Hi,
Please suggest me which package I should use?
Regards
Vivek

I just want to Compile Perl 5.8.8 on my machine . So i thought to use install gcc 3.4.6

why u dont wan to get the package from sunfreeware.com?