Bug 15232 - make install fails on SunOS 5.7
Summary: make install fails on SunOS 5.7
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 3.4.0
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-30 18:13 UTC by Martin Sebor
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build: sparc-solaris-5.7
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Sebor 2004-04-30 18:13:52 UTC
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
Comment 1 Andrew Pinski 2004-04-30 18:56:25 UTC
Read: <http://gcc.gnu.org/install/specific.html#*-*-solaris2*>.
Comment 2 Martin Sebor 2004-04-30 19:34:04 UTC
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

Comment 3 Eric Botcazou 2004-05-01 09:13:24 UTC
> 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.
Comment 4 Martin Sebor 2004-05-03 16:47:43 UTC
...
> > 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