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 androot cause: makefile bug)
- From: Florian Weimer <fw at deneb dot enyo dot de>
- To: "lode_leroy at hotmail dot com" <"lode_leroy at hotmail dot com"@bemls8>
- Cc: gcc at gcc dot gnu dot org
- Date: Sat, 23 Mar 2002 19:27:13 +0100
- Subject: Re: [Ada] Bootstrapping mainline GNAT fails (with workaround androot cause: makefile bug)
- References: <200203231637.RAA15459@bemls8.iconmedialab.be>
"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.)