This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
configure-bug for gcc-2.95.2
- To: bug-gcc at gcc dot gnu dot org
- Subject: configure-bug for gcc-2.95.2
- From: Andreas Schott <schott at rzg dot mpg dot de>
- Date: Tue, 15 Feb 2000 20:18:02 +0100 (MET)
- Reply-To: Andreas Schott <schott at rzg dot mpg dot de>
Dear gcc-maintainers,
this is not a bug in gcc, but in the gcc/configure.
There is an implicit assumption about the relation of
prefix and exec_prefix when determining gcc_tooldir
in the gcc/configure, which crashes my installation.
You assume exec-prefix to be a subdirectory of prefix, but
in my case I have called configure on a Solaris7 box with
--enable-version-specific-runtime-libs
--prefix=/usr/local/common/soft/gnu
--exec-prefix=/usr/local/SunOS_5.7/soft/gnu
thus the libsubdir is set to be
/usr/local/SunOS_5.7/soft/gnu/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2
Configure now defines gcc_tooldir in gcc/Makefile as
gcc_tooldir = $(libsubdir)/$(unlibsubdir)/`echo $(exec_prefix) | sed -e 's|^$(prefix)||' -e 's|/$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'`$(target_alias)
This makes gcc_tooldir in this case
/usr/local/SunOS_5.7/soft/gnu/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/../../../../../../../../sparc-sun-solaris2.7
which gives (cancelling the double-dots against the forward directories)
/usr/sparc-sun-solaris2.7
which is by no means, what one expects. Actually I am not sure,
what you intend to set for that directory, so I cannot offer you
a version, which is doing the right thing. I assume it should
simply be something like $(exec_prefix)/$(target_alias) or
$(prefix)/$(target_alias), so I don't understand what you intend
to calculate.
Currently I have now introduced backlinks from the machine-dependent
path into the common path for things like man, share etc. so that
I define prefix as what I used to use as exec_prefix, but this is
only a workaround not a solution. Could you please fix the way
gcc_tooldir is evaluated.
Andreas Schott.
----------------------------------------------------------------
http://www.rzg.mpg.de/~ays | :-O Wissen ist Macht!
email: schott@rzg.mpg.de | 8-( Ich weiß nichts.
phone/fax: +49 89 3299-2180/1301 | ;-> Macht auch nichts.