This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Ada] Bootstrapping mainline GNAT fails (with workaround and root cause: makefile bug)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]