This is the mail archive of the
mailing list for the GCC project.
Re: Bug in install of gfortran for gcc-4.0.2
- From: Jim Wilson <wilson at specifix dot com>
- To: Rainer Emrich <r dot emrich at de dot tecosim dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 01 Nov 2005 10:59:37 -0800
- Subject: Re: Bug in install of gfortran for gcc-4.0.2
- References: <43660C3D.firstname.lastname@example.org>
Rainer Emrich wrote:
rm -f /appl/shared/gcc/Linux/i686-pc-linux-gnu/gcc-4.0.2/bin/; \
Looking at gcc/fortran/Make-lang.in we see that the command here is
rm -f $(DESTDIR)$(bindir)/$(GFORTRAN_TARGET_INSTALL_NAME)$(exeext);
and we also see that GFORTRAN_TARGET_INSTALL_NAME is not defined
anywhere. This code was copied from the install-driver rule in
gcc/Makefile.in, and we can see that it defines GCC_TARGET_INSTALL_NAME
to $(target_noncanonical)-gcc. However, looking at this, I see that the
install-driver rule has changed significantly since it was copied into
the fortran directory, and as a result, there are also other bugs here.
For instance, fortran is setting GFORTRAN_CROSS_NAME from
program_transform_cross_name, but this was deleted 2 years ago. So this
whole fortran install rule needs to be rewritten, presumably by copying
it again from the install-driver rule and modifying it appropriately.
I think we need a PR here to keep track of this.
The install rule starts with a "-", so it shouldn't have caused the
install to fail, even though it is wrong. I haven't seen install
failures because of this problem.
Jim Wilson, GNU Tools Support, http://www.specifix.com