This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Makefile bugs in gcc-3.0
- To: jsturm at one-point dot com
- Subject: Re: Makefile bugs in gcc-3.0
- From: John B. Brown <jbb at vcn dot com>
- Date: Tue, 26 Jun 2001 08:23:19 -0600 (MDT)
- Cc: neil at daikokuya dot demon dot co dot uk,gcc-bugs at gcc dot gnu dot org
- Reply-To: jbb at vcn dot com
Dear Folks,
On Tue, 26 Jun 2001 08:19:18 -0400 (EDT) Jeff Sturm said:
>
> On Tue, 26 Jun 2001, Neil Booth wrote:
>> I bet you built with srcdir == objdir. In the installation
>> instructions, it says that this configuration is not supported.
>
> No; it is supported, but not recommended. This bug is already reported in
> bootstrap/3281.
>
> Jeff
>
I neither set, nor unset, anything. I issued the commands `configure' in the
gcc-3.0 directory to allow the system to configure itself, and `make bootstrap'
to allow for a complete compile.
The problem is one of directory tree placement or inattention to detail in
Makefile directive creation. Sitting at the level of the offending Makefiles,
the command `mkinstalldir' is inevitably found one directory level higher than
the Makefile directives allow. Most of the offending Makefiles are in the
gcc-3.0/i586-pc-linux-gnu/libjava/ tree, with the zlib tree also being an
offender. There may be others, but I do not wish to repeat the exercise.
Please also note that the directive uses `top_srcdir' as the referent from
which the level is set. That variable is also set to a non-uniform equate in
the various Makefiles that result from the `configure' command.
Original note below:
Dear Folks,
There is a bug in the Makefiles in various directories under
gcc-3.0/i586-pc-linux-gnu/ which cause fatal errors to occur during the
install phase of a general compile. The output from gcc -v is;
`Reading specs from /usr/local/lib/gcc-lib/i586-pc-linux-gnu/3.0/specs
Configured with: ./configure
Thread model: single
gcc version 3.0'
The mkinstalldirs references are short by one level of directory offset.
For example, the equate will be
`mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs' when it should be
`mkinstalldirs = $(SHELL) $(top_srcdir)/../../mkinstalldirs'. Some require
more levels of offset, but they all are short by one level when they are in
error. Not all the Makefiles in the subdirectories under
gcc-3.0/i586-pc-linux-gnu/ use this mechanism, so no fix is needed for them.
I forget how many times I had to go in and edit the Makefiles after the
fatal errors occurred which stopped the install. Some changes are needed to
the offsets in those relevant Makefiles, or possibly the relevant Makefile.in
files. That is up to you.
**End reply
Shalom,
John B. Brown.
<jbb@vcn.com>