[Bug other/13993] New: Relative path as srcdir causes problem

Hilfinger at gnat dot com gcc-bugzilla@gcc.gnu.org
Tue Feb 3 08:43:00 GMT 2004


Configuring the head version of GCC with 

  CC=gcc ../../src/gcc-head/configure --enable-languages="c" \
--prefix=$HOME/obj/gcc-head/install

causes a problem after

make bootstrap
make install

Specifically, within the gcc subdirectory, 'make install' looks for install-sh
in ../../src/gcc-head, the top-level source directory, which is wrong (should be
../../../src/gcc-head.  This is a change from earlier versions (3.3.2, for
example).  It is causes by the definition of INSTALL in the top-level
Makefile.in, which gets passed down to and overrides the (correct) definition
of INSTALL in the gcc subdirectory.  

If the use of relative paths when invoking configure is to be deprecated, there
should be a warning.  Better still, revert to the previous definition of INSTALL
or otherwise convert to an absolute pathname for INSTALL, as previous versions
did.

-- 
           Summary: Relative path as srcdir causes problem
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: other
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: Hilfinger at gnat dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: alphaev67-dec-osf5.1
  GCC host triplet: alphaev67-dec-osf5.1
GCC target triplet: alphaev67-dec-osf5.1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13993



More information about the Gcc-bugs mailing list