I configured gcc-3.4.3 with the above command line, note I gave a relative path to ../gcc-3.4.3 from my <objdir>.
Everything worked fine (I even submitted my test results :), until I tried make DESTDIR=/usr/local/TEST_NEW_gcc install this failed with : make[1]: Entering directory `/usr/local/src/gcc/gcc_objdir/gcc' ... ... mkdir -p -- /usr/local/TEST_NEW_gcc/usr/local/man/man7 rm -f /usr/local/TEST_NEW_gcc/usr/local/bin/g++ ../gcc-3.4.3/install-sh -c g++ /usr/local/TEST_NEW_gcc/usr/local/bin/g++ make[1]: ../gcc-3.4.3/install-sh: Command not found Note that having descended into the gcc subdirectory, the mkinstalldirs command understands that the path to the <srcdir> is one "../" higher, but the failing install-sh line doesn't add this, hence it can't find it. Environment: System: SunOS d01web01 5.9 Generic_112233-12 sun4u sparc SUNW,Sun-Fire-480R Architecture: sun4 host: sparc-sun-solaris2.9 build: sparc-sun-solaris2.9 target: sparc-sun-solaris2.9 configured with: ../gcc-3.4.3/configure --disable-nls --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld How-To-Repeat: Install GCC, but when you configure, don't use an absolute path to the <srcdir>/configure binary. ------- Additional Comments From spage at macromedia dot com 2005-01-07 03:10 ------- Fix: Either the tools should handle the relative path, or the installation documentation (http://gcc.gnu.org/install/configure.html and in the distribution) should be very explicit and state "<srcdir> should be an absolute path to the sources directory, don't use relative paths." Looking at the gcc/Makefile, the successful mkinstalldirs command uses srcdir = ../../gcc-3.4.3/gcc mkinstalldirs='$(SHELL) $(srcdir)/mkinstalldirs' \ The failing install-sh g++ line looks like it uses INSTALL = ../../gcc-3.4.3/gcc/../install-sh -c I'm not sure how this loses the "../" in front. Thanks for an awesome piece of software engineering. -- Summary: `make install DESTDIR=` fails if you used relative path to configure Product: gcc Version: 3.4.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: spage at macromedia dot com CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: sparc-sun-solaris2.9 GCC host triplet: sparc-sun-solaris2.9 GCC target triplet: sparc-sun-solaris2.9 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19306