This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [Ada] Bootstrapping mainline GNAT fails (with workaround and root cause: makefile bug)
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Florian Weimer <fw at deneb dot enyo dot de>
- Cc: lode_leroy at hotmail dot com <lode_leroy at hotmail dot com>, gcc at gcc dot gnu dot org
- Date: Sat, 23 Mar 2002 15:06:28 -0500
- Subject: Re: [Ada] Bootstrapping mainline GNAT fails (with workaround and root cause: makefile bug)
- References: <200203231637.RAA15459@bemls8.iconmedialab.be> <87663nkum6.fsf@deneb.enyo.de>
On Sat, Mar 23, 2002 at 07:27:13PM +0100, Florian Weimer wrote:
> "lode_leroy at hotmail dot com" <"lode_leroy at hotmail dot com"@bemls8> writes:
>
> > Then I tried building in a separate build tree but I got problems
> > during linking of gnatlib:
> >
> > c-charac.o not found
> >
> > After spending a some time reading the Makefiles and trying out
> > various things, I found that the observed problems are caused by the
> > file:
> >
> > build/gcc/ada/Makefile
> >
> > which contains
> > VPATH=../../../gcc/ada
> >
> > When making in the directory
> > build/gcc/ada/rts
> >
> > the file build/gcc/ada/Makefile is used, as follows:
> > make -f ../Makefile
> >
> > When used like this, the relative directory in VPATH ends up pointing
> > to the wrong directory.
>
> Usually, this means that your build directory is located somewhere in
> the source tree. This setup is not supported by GCC at all, as
> documented. (This restriction is not specific to the Ada front end.)
No, this will most likely be a problem for anyone who uses a relative
path to configure - whether objdir is somewhere under ${srcdir} or not.
Using "make -f ../Makefile" does not play well with VPATH.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer