I used a precompild gcc 2.95.3 and build gcc 3.4.0 just fine. However the install fails!
Built as: ../configure --with-as=/usr/local/bin/as \ --with-ld=/usr/local/bin/ld --disable-nls --enable-threads \ --enable-shared --enable-multilib --with-cpu=pentium4 \ --enable-languages=c,c++,f77 \
Then I try to install after successful build: .. ... make[3]: Leaving directory `/usr/temp/gcc-3.4.0/obj/i386-pc-solaris2.10/libf2c' make[2]: Leaving directory `/usr/temp/gcc-3.4.0/obj/i386-pc-solaris2.10/libf2c' make[1]: Leaving directory `/usr/temp/gcc-3.4.0/obj'
# make install
/bin/sh ../mkinstalldirs /usr/local /usr/local
make[1]: Entering directory `/usr/temp/gcc-3.4.0/obj/gcc'
if [ -f specs.ready ] ; then \
true; \
else \
echo timestamp > specs.ready; \
fi
/bin/sh ../../gcc/mkinstalldirs /usr/local/lib/gcc/i386-pc-solaris2.10/3.4.0
mkdir -p -- /usr/local/lib/gcc/i386-pc-solaris2.10/3.4.0
/bin/sh ../../gcc/mkinstalldirs /usr/local/libexec/gcc/i386-pc-solaris2.10/3.4.0
mkdir -p -- /usr/local/libexec/gcc/i386-pc-solaris2.10/3.4.0
/bin/sh ../../gcc/mkinstalldirs /usr/local/bin
/bin/sh ../../gcc/mkinstalldirs /usr/local/include
/bin/sh ../../gcc/mkinstalldirs /usr/local/info
/bin/sh ../../gcc/mkinstalldirs /usr/local/lib
/bin/sh ../../gcc/mkinstalldirs /usr/local/man/man1
/bin/sh ../../gcc/mkinstalldirs /usr/local/man/man7
rm -f /usr/local/bin/g++
../install-sh -c g++ /usr/local/bin/g++
make[1]: ../install-sh: Command not found
make[1]: [c++.install-common] Error 127 (ignored)
chmod a+x /usr/local/bin/g++
chmod: WARNING: can't access /usr/local/bin/g++
make[1]: [c++.install-common] Error 1 (ignored)
rm -f /usr/local/bin/c++
( cd /usr/local/bin && \
ln g++ c++ )
ln: cannot access g++
make[1]: [c++.install-common] Error 2 (ignored)
if [ -f cc1plus ] ; then \
if [ -f g++-cross ] ; then \
if [ -d /usr/local/lib/gcc/i386-pc-solaris2.10/3.4.0/../../../../i386-pc-solaris2.10/bin/. ] ; then \
rm -f /usr/local/lib/gcc/i386-pc-solaris2.10/3.4.0/../../../../i386-pc-solaris2.10/bin/g++; \
../install-sh -c g++-cross /usr/local/lib/gcc/i386-pc-solaris2.10/3.4.0/../../../../i386-pc-solaris2.10/bin/g++; \
rm -f /usr/local/lib/gcc/i386-pc-solaris2.10/3.4.0/../../../../i386-pc-solaris2.10/bin/c++; \
( cd /usr/local/lib/gcc/i386-pc-solaris2.10/3.4.0/../../../../i386-pc-solaris2.10/bin && \
ln g++ c++ ); \
else true; fi; \
else \
rm -f /usr/local/bin/i386-pc-solaris2.10-g++; \
( cd /usr/local/bin && \
ln g++ i386-pc-solaris2.10-g++ ); \
rm -f /usr/local/bin/i386-pc-solaris2.10-c++; \
( cd /usr/local/bin && \
ln c++ i386-pc-solaris2.10-c++ ); \
fi ; \
fi
ln: cannot access g++
ln: cannot access c++
make[1]: [c++.install-common] Error 2 (ignored)
if [ -f f771 ] ; then \
rm -f /usr/local/bin/g77; \
../install-sh -c g77 /usr/local/bin/g77; \
chmod a+x /usr/local/bin/g77; \
else true; fi
/bin/sh: ../install-sh: not found
chmod: WARNING: can't access /usr/local/bin/g77
make[1]: [f77.install-common] Error 1 (ignored)
for file in cc1 cc1plus f771; do \
if [ -f $file ] ; then \
rm -f /usr/local/libexec/gcc/i386-pc-solaris2.10/3.4.0/$file; \
../install-sh -c $file /usr/local/libexec/gcc/i386-pc-solaris2.10/3.4.0/$file; \
else true; \
fi; \
done
/bin/sh: ../install-sh: not found
/bin/sh: ../install-sh: not found
/bin/sh: ../install-sh: not found
make[1]: *** [install-common] Error 1
make[1]: Leaving directory `/usr/temp/gcc-3.4.0/obj/gcc'
Please help!
-- J.D. Bronson Aurora Health Care // Information Services // Milwaukee, WI USA Office: 414.978.8282 // Email: jd@xxxxxxxxxx // Pager: 414.314.8282