Bug 16363 - make install fails if configure is given relative path
Summary: make install fails if configure is given relative path
Status: RESOLVED DUPLICATE of bug 13993
Alias: None
Product: gcc
Classification: Unclassified
Component: other (show other bugs)
Version: 3.4.1
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-04 19:35 UTC by xiaoyi_wu
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host: solaris
Target: solaris
Build: solaris
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 xiaoyi_wu 2004-07-04 19:35:54 UTC
On Solaris platform, if configure is run as:

../gcc-3.4.1/configure --prefix=/install_path/gcc

then "make install" will fail with "../gcc-3.4.1/install-sh not found" error.
The configure will generate a "Makefile" with a line like:

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

so when entering into a deeper directory, this file will not be found.  This
problem does not show up in linux because there INSTALL is set to /usr/bin/install.

The work around is to give configure an absolute path:

/extract_path/gcc-3.4.1/configure --prefix=/install_path/gcc

This will change the INSTALL to /extract_path/gcc-3.4.1/install-sh -c in Makefile.

The relative path configure worked fine in gcc-3.3.3.  I couldn't confirm 3.4.0
on solaris, since that has the "make bootstrap" error.
Comment 1 Andrew Pinski 2004-07-04 19:38:45 UTC
This is a dup of bug 13993.

*** This bug has been marked as a duplicate of 13993 ***