Help installing GCC on Solaris 7?

Jason McClelland jasonm@adobe.com
Wed Apr 19 22:40:00 GMT 2006


Hi all,

I am trying to build GCC 4.0.3 on Solaris 2.7 and am receiving this
error:

storestg7# /home/wwwtools/temp/gcc-4.0.3/configure
creating cache ./config.cache
checking host system type... sparc-sun-solaris2.7
checking target system type... sparc-sun-solaris2.7
checking build system type... sparc-sun-solaris2.7
checking for a BSD compatible install...
/home/wwwtools/temp/gcc-4.0.3/install-sh -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem: C compiler
cannot create executables.


I am root using csh, and here is my env:


HOME=/opt/taxwadm
PATH=/sbin:/usr/bin:/usr/sbin:/opt/local/bin:/usr/local/bin:/usr/local/s
bin:/usr/dt/bin:/usr/openwin/bin:/opt/SUNWppro/bin:/usr/sadm/bin:/usr/bi
n:/usr/sbin:/usr/ccs/bin:/usr/sbin:/usr/bin
LOGNAME=taxwadm
HZ=
TZ=US/Pacific
TERM=vt100
SHELL=/bin/csh
PWD=/usr/local/bin
MANPATH=/opt/SUNWppro/man:/usr/local/man:/usr/man:/usr/openwin/share/man
:/usr/openwin/man:/usr/share/man:/usr/dt/share/man:/usr/dt/man:/usr/bin/
man:/usr/man
AVPTEMP=/opt/taxware/temp
ZIPIN=/opt/taxware/indata
STEPOUT=/opt/taxware/outdata
STEPTEMP=/opt/taxware/temp
MAIL=/usr/mail/taxwadm
ZIPOUT=/opt/taxware/outdata
ZIPTEMP=/opt/taxware/temp
AVPOUT=/opt/taxware/outdata
TOOLKITOUT=/opt/taxware/tkout
TOOLKITEXE=/opt/taxware/toolkit
STEPIN=/opt/taxware/indata
CAPI_HOME=/opt/taxware/utl
AVPAUDIT=/opt/taxware/audit
TAX_HOME=/opt/taxware
JAVA_HOME=/usr/java
EDITOR=vi

I obtained my gcc source from
ftp://mirrors.laffeycomputer.com/pub/gcc.gnu.org/pub/gcc/releases/gcc-4.
0.3/.

My current version of gcc is version 2.9.5.  I was trying to upgrade it
because I encountered that "configure: error: installation or
configuration problem: C compiler cannot create executables." error
while building MM for Apache.

Any recommendations?  Thanks!!!



More information about the Gcc-help mailing list