I am trying to build gcc-3.4.3 on solaris 8. I get to the make install point
and then there is a problem. It appears the INSTALL variable is not getting
set right for the install step in the various directories.

I have the source in ..../gcc-3.4.3 and the build dir is ..../gcc-3.4.3_sun5.8

Here is the first error. Notice the the gcc src tree is one level higher then
the install path is specifying.

make install
/bin/sh ../gcc-3.4.3/mkinstalldirs 
/proj/wdtprojects/wdt_tmp/gnu_sun5.8/gcc-3.4.3 
/proj/wdtprojects/wdt_tmp/gnu_sun5.8/gcc-3.4.3
make[1]: Entering directory 
`/proj/wdtold/warrend/gnusrc_new/000030-gcc-3.4.3/gcc-3.4.3_wdt_tmp_sun5.8/gcc'
if [ -f specs.ready ] ; then \
        true; \
else \
        echo timestamp > specs.ready; \
fi
mkdir -p /proj/wdtprojects/wdt_tmp/gnu_sun5.8/gcc-3.4.3/bin
if [ -f gnat1 ] ; \
 then \
  if [ -f gnatbind-cross ] ; \
  then \
    rm -f 
/proj/wdtprojects/wdt_tmp/gnu_sun5.8/gcc-3.4.3/bin/sparc-sun-solaris2.8-gnatbind;
 \
    ../gcc-3.4.3/install-sh -c gnatbind-cross 
/proj/wdtprojects/wdt_tmp/gnu_sun5.8/gcc-3.4.3/bin/sparc-sun-solaris2.8-gnatbind;
 \
    if [ -d 
/proj/wdtprojects/wdt_tmp/gnu_sun5.8/gcc-3.4.3/sparc-sun-solaris2.8/bin/. ] ; 
then \
      rm -f 
/proj/wdtprojects/wdt_tmp/gnu_sun5.8/gcc-3.4.3/sparc-sun-solaris2.8/bin/gnatbind;
 \
      ../gcc-3.4.3/install-sh -c gnatbind-cross 
/proj/wdtprojects/wdt_tmp/gnu_sun5.8/gcc-3.4.3/sparc-sun-solaris2.8/bin/gnatbind;
 \
    fi; \
  else \
    rm -f /proj/wdtprojects/wdt_tmp/gnu_sun5.8/gcc-3.4.3/bin/gnatbind; \
    ../gcc-3.4.3/install-sh -c gnatbind 
/proj/wdtprojects/wdt_tmp/gnu_sun5.8/gcc-3.4.3/bin/gnatbind; \
  fi ; \
fi
/bin/sh: ../gcc-3.4.3/install-sh: not found
make[1]: [ada.install-common] Error 1 (ignored)



Looking at the Makefile in ..../gcc-3.4.3_sun5.8/gcc it has 

INSTALL = ../../gcc-3.4.3/gcc/../install-sh -c

which is correct. So I assume that the INSTALL variable is being overwritten
from the main Makefile.

If you need more information let me know. 

I'll mention that on Linux the install works fine as they are using
/usr/bin/install for the install. I did not have install in my path when
building gcc on solaris 8 so I assume it tried to make do with the script bug
that code isn't quite right.


Reply via email to