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 androot cause: makefile bug)


"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.)


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