After fixing an earlier bootstrap problems as described in http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15216 the subsequent make install fails with the error below. Martin $ nice make bootstrap -j8 && nice make install ... mkdir /build/contrib/gcc-3.4.0 make[1]: Entering directory `/build/contrib/gcc-3.4.0-build/gcc' if [ -f specs.ready ] ; then \ true; \ else \ echo timestamp > specs.ready; \ fi /bin/sh ../../gcc-3.4.0-src/gcc/mkinstalldirs /build/contrib/gcc-3.4.0/lib/gcc/sparc-sun-solaris2.7/3.4.0 mkdir -p -- /build/contrib/gcc-3.4.0/lib/gcc/sparc-sun-solaris2.7/3.4.0 /bin/sh ../../gcc-3.4.0-src/gcc/mkinstalldirs /build/contrib/gcc-3.4.0/libexec/gcc/sparc-sun-solaris2.7/3.4.0 mkdir -p -- /build/contrib/gcc-3.4.0/libexec/gcc/sparc-sun-solaris2.7/3.4.0 /bin/sh ../../gcc-3.4.0-src/gcc/mkinstalldirs /build/contrib/gcc-3.4.0/bin mkdir -p -- /build/contrib/gcc-3.4.0/bin /bin/sh ../../gcc-3.4.0-src/gcc/mkinstalldirs /build/contrib/gcc-3.4.0/include mkdir -p -- /build/contrib/gcc-3.4.0/include /bin/sh ../../gcc-3.4.0-src/gcc/mkinstalldirs /build/contrib/gcc-3.4.0/info mkdir -p -- /build/contrib/gcc-3.4.0/info /bin/sh ../../gcc-3.4.0-src/gcc/mkinstalldirs /build/contrib/gcc-3.4.0/lib /bin/sh ../../gcc-3.4.0-src/gcc/mkinstalldirs /build/contrib/gcc-3.4.0/man/man1 mkdir -p -- /build/contrib/gcc-3.4.0/man/man1 /bin/sh ../../gcc-3.4.0-src/gcc/mkinstalldirs /build/contrib/gcc-3.4.0/man/man7 mkdir -p -- /build/contrib/gcc-3.4.0/man/man7 rm -f /build/contrib/gcc-3.4.0/bin/g++ ../gcc-3.4.0-src/install-sh -c g++ /build/contrib/gcc-3.4.0/bin/g++ make[1]: ../gcc-3.4.0-src/install-sh: Command not found make[1]: [c++.install-common] Error 127 (ignored) chmod a+x /build/contrib/gcc-3.4.0/bin/g++ chmod: WARNING: can't access /build/contrib/gcc-3.4.0/bin/g++ make[1]: [c++.install-common] Error 1 (ignored) rm -f /build/contrib/gcc-3.4.0/bin/c++ ( cd /build/contrib/gcc-3.4.0/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 /build/contrib/gcc-3.4.0/lib/gcc/sparc-sun-solaris2.7/3.4.0/../../../../sparc-sun-solaris2.7/bin/. ] ; then \ rm -f /build/contrib/gcc-3.4.0/lib/gcc/sparc-sun-solaris2.7/3.4.0/../../../../sparc-sun-solaris2.7/bin/g++; \ ../gcc-3.4.0-src/install-sh -c g++-cross /build/contrib/gcc-3.4.0/lib/gcc/sparc-sun-solaris2.7/3.4.0/../../../../sparc-sun-solaris2.7/bin/g++; \ rm -f /build/contrib/gcc-3.4.0/lib/gcc/sparc-sun-solaris2.7/3.4.0/../../../../sparc-sun-solaris2.7/bin/c++; \ ( cd /build/contrib/gcc-3.4.0/lib/gcc/sparc-sun-solaris2.7/3.4.0/../../../../sparc-sun-solaris2.7/bin && \ ln g++ c++ ); \ else true; fi; \ else \ rm -f /build/contrib/gcc-3.4.0/bin/sparc-sun-solaris2.7-g++; \ ( cd /build/contrib/gcc-3.4.0/bin && \ ln g++ sparc-sun-solaris2.7-g++ ); \ rm -f /build/contrib/gcc-3.4.0/bin/sparc-sun-solaris2.7-c++; \ ( cd /build/contrib/gcc-3.4.0/bin && \ ln c++ sparc-sun-solaris2.7-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 /build/contrib/gcc-3.4.0/bin/g77; \ ../gcc-3.4.0-src/install-sh -c g77 /build/contrib/gcc-3.4.0/bin/g77; \ chmod a+x /build/contrib/gcc-3.4.0/bin/g77; \ else true; fi /bin/sh: ../gcc-3.4.0-src/install-sh: not found chmod: WARNING: can't access /build/contrib/gcc-3.4.0/bin/g77 make[1]: [f77.install-common] Error 1 (ignored) if [ -f gcj ]; then \ rm -f /build/contrib/gcc-3.4.0/bin/gcj; \ ../gcc-3.4.0-src/install-sh -c gcj /build/contrib/gcc-3.4.0/bin/gcj; \ chmod a+x /build/contrib/gcc-3.4.0/bin/gcj; \ if [ -f gcj-cross ]; then \ true; \ else \ rm -f /build/contrib/gcc-3.4.0/bin/sparc-sun-solaris2.7-gcj; \ ( cd /build/contrib/gcc-3.4.0/bin && \ ln gcj sparc-sun-solaris2.7-gcj ); \ fi ; \ fi ; \ for tool in gcjh jv-scan jcf-dump; do \ tool_transformed_name=`echo $tool|sed 's,y,y,'`; \ if [ -f $tool ]; then \ rm -f /build/contrib/gcc-3.4.0/bin/$tool_transformed_name; \ ../gcc-3.4.0-src/install-sh -c $tool /build/contrib/gcc-3.4.0/bin/$tool_transformed_name; \ chmod a+x /build/contrib/gcc-3.4.0/bin/$tool_transformed_name; \ if [ $tool = gcjh ]; then \ rm -f /build/contrib/gcc-3.4.0/bin/sparc-sun-solaris2.7-gcjh; \ ( cd /build/contrib/gcc-3.4.0/bin && \ ln $tool_transformed_name sparc-sun-solaris2.7-gcjh ); \ fi; \ fi ; \ done /bin/sh: ../gcc-3.4.0-src/install-sh: not found chmod: WARNING: can't access /build/contrib/gcc-3.4.0/bin/gcj ln: cannot access gcj /bin/sh: ../gcc-3.4.0-src/install-sh: not found chmod: WARNING: can't access /build/contrib/gcc-3.4.0/bin/gcjh ln: cannot access gcjh /bin/sh: ../gcc-3.4.0-src/install-sh: not found chmod: WARNING: can't access /build/contrib/gcc-3.4.0/bin/jv-scan /bin/sh: ../gcc-3.4.0-src/install-sh: not found chmod: WARNING: can't access /build/contrib/gcc-3.4.0/bin/jcf-dump for file in cc1 cc1plus f771 jc1 jvgenmain cc1obj; do \ if [ -f $file ] ; then \ rm -f /build/contrib/gcc-3.4.0/libexec/gcc/sparc-sun-solaris2.7/3.4.0/$file; \ ../gcc-3.4.0-src/install-sh -c $file /build/contrib/gcc-3.4.0/libexec/gcc/sparc-sun-solaris2.7/3.4.0/$file; \ else true; \ fi; \ done /bin/sh: ../gcc-3.4.0-src/install-sh: not found /bin/sh: ../gcc-3.4.0-src/install-sh: not found /bin/sh: ../gcc-3.4.0-src/install-sh: not found /bin/sh: ../gcc-3.4.0-src/install-sh: not found /bin/sh: ../gcc-3.4.0-src/install-sh: not found /bin/sh: ../gcc-3.4.0-src/install-sh: not found make[1]: *** [install-common] Error 1 make[1]: Leaving directory `/build/contrib/gcc-3.4.0-build/gcc' make: *** [install-gcc] Error 2
Read: <http://gcc.gnu.org/install/specific.html#*-*-solaris2*>.
Subject: Re: make install fails on SunOS 5.7 pinskia at gcc dot gnu dot org wrote: > ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-30 18:56 ------- > Read: <http://gcc.gnu.org/install/specific.html#*-*-solaris2*>. > Boy, there sure are a lot more caveats with gcc 3.4 than before. I am using bash 2.00.0(1)-beta3 as my shell (I even set CONFIG_SHELL to point to it). I also used gcc 3.3.2 (built successfully on the same host not so long ago) and GNU binutils 2.13 to build 3.4. I used GNU make 3.79. The one thing I didn't do is use absolute pathname to invoke configure, but that doesn't seem to be the cause of my problems. I'll try that next if the currently running bootstrap fails as well. Is there anything else? Is using parallel make supposed to work? I can't install any OS patches. Is using the version of binutils I mentioned above safe? Martin
> Boy, there sure are a lot more caveats with gcc 3.4 than before. This install-sh issue is not new, although it occurs somewhat randomly. We had it with GCC 3.3 already, one year ago. That's why we documented as much as we could the build procedure. > The one thing I didn't do is use absolute pathname to invoke configure, but > that doesn't seem to be the cause of my problems. I think that could be it. > I'll try that next if the currently running bootstrap fails as well. > Is there anything else? Check the /usr/xpg4 thing.
... > > The one thing I didn't do is use absolute pathname to invoke configure, but > > that doesn't seem to be the cause of my problems. > > I think that could be it. > I guess that must have been it. I have finally bootsrapped and installed the compiler. Thanks Martin