Trying to install gcc

Started by
11 comments, last by johnnyBravo 18 years, 3 months ago
Quote:Original post by SiCrane
It sounds a lot like that the compiler you downloaded isn't installed correctly.


I went through a tutorial which says to call pkginfo -l SMCgcc to see if the installation worked, which is says it does,
Quote:
# pkginfo -l SMCgcc
PKGINST: SMCgcc
NAME: gcc
CATEGORY: application
ARCH: i86pc
VERSION: 2.95.2
BASEDIR: /usr/local
VENDOR: Free Software Foundation
PSTAMP: Steve Christensen
INSTDATE: Jan 02 2006 14:07
EMAIL: steve@smc.vnet.net
STATUS: completely installed
FILES: 351 installed pathnames
2 linked files
22 directories
23 executables
121048 blocks used (approx)



Could this possibly be a PATH problem? eg I haven't set all the required paths?

My current PATHs are /usr/sbin:/usr/bin
Thanks
Advertisement
Quote:Original post by johnnyBravo
After calling "make" from the same directory ("/gcc") where I has previously called /sand/gcc-4.0.2/configure from, it gives me this error:

...
Configuring in fixincludes
...

Any idea what this means?


The fixincludes utility is generated during the make process to modify some include files for your system. If this doesnt work you can try searching for a fixinlcudes patch. Also try 'make bootstrap' instead of just 'make'.
I installed a patch for the fixincludes, but it didn't seem to make a difference.
Quote:
# patchadd -u gcc-2.95.3-no-fixinc.patch
Validating patches...

Loading patches installed on the system...

Done!

Loading patches requested to install.

Done!

No patches to check dependency.


I also tried the make bootstrap, which just gave me:
Quote:
# /usr/ccs/bin/make bootstrap
Configuring in build-i386-pc-solaris2.10/libiberty
configure: loading cache ../config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... /sand/gcc-4.0.2/missing makeinfo
configure: WARNING:
*** Makeinfo is missing. Info documentation will not be built.
checking for perl... perl
checking build system type... i386-pc-solaris2.10
checking host system type... i386-pc-solaris2.10
checking for i386-pc-solaris2.10-ar... no
checking for ar... no
checking for i386-pc-solaris2.10-ranlib... no
checking for ranlib... :
checking for i386-pc-solaris2.10-gcc... gcc
checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
*** Error code 1
The following command caused the error:
test ! -f build-i386-pc-solaris2.10/libiberty/Makefile || exit 0; /bin/sh /sand/gcc-4.0.2/mkinstalldirs build-i386-pc-solaris2.10/libiberty ; r=`${PWDCMD-pwd}`; export r; s=`cd /sand/gcc-4.0.2; ${PWDCMD-pwd}`; export s; FLEX="`if [ -f $r/build-i386-pc-solaris2.10/flex/flex ] ; then echo $r/build-i386-pc-solaris2.10/flex/flex ; else echo /sand/gcc-4.0.2/missing flex ; fi`"; export FLEX; LEX="`if [ -f $r/build-i386-pc-solaris2.10/flex/flex ] ; then echo $r/build-i386-pc-solaris2.10/flex/flex ; else echo /sand/gcc-4.0.2/missing flex ; fi`"; export LEX; BISON="`if [ -f $r/build-i386-pc-solaris2.10/bison/tests/bison ] ; then echo $r/build-i386-pc-solaris2.10/bison/tests/bison ; else echo /sand/gcc-4.0.2/missing bison ; fi`"; export BISON; YACC="`if [ -f $r/build-i386-pc-solaris2.10/bison/tests/bison ] ; then echo $r/build-i386-pc-solaris2.10/bison/tests/bison -y ; elif [ -f $r/build-i386-pc-solaris2.10/byacc/byacc ] ; then echo $r/build-i386-pc-solaris2.10/byacc/byacc ; else echo /sand/gcc-4.0.2/missing bison -y ; fi`"; export YACC; M4="`if [ -f $r/build-i386-pc-solaris2.10/m4/m4 ] ; then echo $r/build-i386-pc-solaris2.10/m4/m4 ; else echo /sand/gcc-4.0.2/missing m4 ; fi`"; export M4; MAKEINFO="`if [ -f $r/build-i386-pc-solaris2.10/texinfo/makeinfo/Makefile ] ; then echo $r/build-i386-pc-solaris2.10/texinfo/makeinfo/makeinfo ; else if (/sand/gcc-4.0.2/missing makeinfo --version | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|[5-9])') >/dev/null 2>&1; then echo /sand/gcc-4.0.2/missing makeinfo; else echo $s/missing makeinfo; fi; fi`"; export MAKEINFO; AR=""; export AR; AS=""; export AS; CC="gcc"; export CC; CFLAGS="-g -O2"; export CFLAGS; CONFIG_SHELL="/bin/sh"; export CONFIG_SHELL; CXX="c++"; export CXX; CXXFLAGS=""; export CXXFLAGS; GCJ=""; export GCJ; GFORTRAN=""; export GFORTRAN; DLLTOOL=""; export DLLTOOL; LD=""; export LD; LDFLAGS=""; export LDFLAGS; NM=""; export NM; RANLIB=""; export RANLIB; WINDRES=""; export WINDRES; echo Configuring in build-i386-pc-solaris2.10/libiberty; cd "build-i386-pc-solaris2.10/libiberty" || exit 1; case /sand/gcc-4.0.2 in /* | [A-Za-z]:[\\/]*) topdir=/sand/gcc-4.0.2 ;; *) case "build-i386-pc-solaris2.10" in .) topdir="..//sand/gcc-4.0.2" ;; *) topdir="../..//sand/gcc-4.0.2" ;; esac ;; esac; if [ "/sand/gcc-4.0.2" = "." ] ; then if [ "build-i386-pc-solaris2.10" != "." ] ; then if /bin/sh $s/symlink-tree ${topdir}/libiberty "no-such-file" ; then if [ -f Makefile ]; then if /usr/ccs/bin/make distclean; then true; else exit 1; fi; else true; fi; else exit 1; fi; else true; fi; srcdiroption="--srcdir=."; libsrcdir="."; else srcdiroption="--srcdir=${topdir}/libiberty"; libsrcdir="$s/libiberty"; fi; rm -f no-such-file || : ; CONFIG_SITE=no-such-file /bin/sh ${libsrcdir}/configure --cache-file=../config.cache --build=i386-pc-solaris2.10 --host=i386-pc-solaris2.10 --target=i386-pc-solaris2.10 --with-gcc-version-trigger=/sand/gcc-4.0.2/gcc/version.c --enable-languages=c,c++ --program-transform-name='s,y,y,' ${srcdiroption} --with-build-subdir="build-i386-pc-solaris2.10" || exit 1
make: Fatal error: Command failed for target `configure-build-libiberty'



Sorry to bombard you with all these menial task :)

This topic is closed to new replies.

Advertisement