This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: bootstrap fails, can not find install-sh or install.sh in [...]


>>>>> "KG" == Kaveh R Ghazi <ghazi@caip.rutgers.edu> writes:

 KG> 	I don't know if this has been reported before, but when I build
 KG> egcs on sparc-sun-sunos4.1.4 or mips-sgi-irix6.2, I get the following
 KG> error:

 KG> configure: error: can not find install-sh or install.sh in . ./.. ./../..
 KG> make[1]: *** [configure-target-libf2c] Error 1
 KG> make[1]: Leaving directory `/a/caip/a47/u47/ghazi/gcc-testing/sunos-test/egcs-CV
 KG> S19981002'
 KG> make: *** [bootstrap] Error 1

 KG> 	This is happening because the test for install-sh in configure
 KG> looks in "$srcdir $srcdir/.. $srcdir/../.." but the location we are in
 KG> is three levels deep in e.g. sparc-sun-sunos4.1.4/pic/libf2c.

As it happens, I bootstrapped mips-sgi-irix6.4 and
sparc-sun-sunos4.1.3 OK in clean directories over the weekend from CVS
updates and didn't have that trouble, using builddir != srcdir if it's
relevant.

 KG> 	The directory checks in AC_PROG_INSTALL are probably hardcoded
 KG> in autoconf, so its probably easier to fix something locally.  Perhaps
 KG> adding symlinks from the currect directory to install-sh in the top
 KG> level directory would work.

As I expect, I see:

$ grep install sparc-sun-sunos4.1.3/pic/libf2c/config.status
ac_given_INSTALL="/bin/sh /tmp_mnt/nfs/dlsd/c-e/mnts/fx/egcs/install-sh -c"
s%@INSTALL_PROGRAM@%/bin/sh /tmp_mnt/nfs/dlsd/c-e/mnts/fx/egcs/install-sh -c %g
s%@INSTALL_DATA@%/bin/sh /tmp_mnt/nfs/dlsd/c-e/mnts/fx/egcs/install-sh -c -m 644%g
$ grep INSTALL log
        if (cd ../${dir}/${lib}; gmake "AR=ar" "AR_FLAGS=rc" "CC=/tmp_mnt/nfs/dlsd/c-e/mnts/fx/egcs-sunos/gcc/xgcc -B/tmp_mnt/nfs/dlsd/c-e/mnts/fx/egcs-sunos/gcc/" "CFLAGS=-g -O2" "LIBCFLAGS=-g -O2" "EXTRA_OFILES=" "HDEFINES=" "INSTALL=/bin/sh /tmp_mnt/nfs/dlsd/c-e/mnts/fx/egcs/install-sh -c" "INSTALL_DATA=/bin/sh /tmp_mnt/nfs/dlsd/c-e/mnts/fx/egcs/install-sh -c -m 644" "INSTALL_PROGRAM=/bin/sh /tmp_mnt/nfs/dlsd/c-e/mnts/fx/egcs/install-sh -c " "LDFLAGS=" "LOADLIBES=" "RANLIB=ranlib" "SHELL=/bin/sh" \

(Why it doesn't use /usr/bin/install on a GNU system is something I've
wondered about before.)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]