public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] doc: Update the status of build directory not fully separated
@ 2023-11-30  9:46 Xi Ruoyao
  2023-11-30 12:05 ` Richard Biener
  0 siblings, 1 reply; 2+ messages in thread
From: Xi Ruoyao @ 2023-11-30  9:46 UTC (permalink / raw)
  To: gcc-patches; +Cc: Xi Ruoyao

Recently there are some people building GCC with srcdir == objdir and
the attempts just failed [1].  So stop to say "it should work".  OTOH
objdir as a subdirectory of srcdir works (at least for LFS [2] and BLFS
[3]).

[1]: https://gcc.gnu.org/pipermail/gcc-help/2023-November/143068.html
[2]: https://www.linuxfromscratch.org/lfs/view/12.0/chapter08/gcc.html
[3]: https://www.linuxfromscratch.org/blfs/view/12.0/general/gcc.html

gcc/ChangeLog:

	* doc/install.texi: Deem srcdir == objdir as broken, and objdir
	as a subdirectory of srcdir is slightly better.
---

Ok for trunk?

 gcc/doc/install.texi | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
index c1ccb8ba02d..0b43f3dce75 100644
--- a/gcc/doc/install.texi
+++ b/gcc/doc/install.texi
@@ -697,9 +697,9 @@ phases.
 First, we @strong{highly} recommend that GCC be built into a
 separate directory from the sources which does @strong{not} reside
 within the source tree.  This is how we generally build GCC; building
-where @var{srcdir} == @var{objdir} should still work, but doesn't
-get extensive testing; building where @var{objdir} is a subdirectory
-of @var{srcdir} is unsupported.
+where @var{objdir} is a subdirectory of @var{srcdir} should still work,
+but doesn't get extensive testing; building where @var{objdir} ==
+@var{srcdir} won't work.
 
 If you have previously built GCC in the same directory for a
 different target machine, do @samp{make distclean} to delete all files
-- 
2.43.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] doc: Update the status of build directory not fully separated
  2023-11-30  9:46 [PATCH] doc: Update the status of build directory not fully separated Xi Ruoyao
@ 2023-11-30 12:05 ` Richard Biener
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Biener @ 2023-11-30 12:05 UTC (permalink / raw)
  To: Xi Ruoyao; +Cc: gcc-patches

On Thu, Nov 30, 2023 at 10:46 AM Xi Ruoyao <xry111@xry111.site> wrote:
>
> Recently there are some people building GCC with srcdir == objdir and
> the attempts just failed [1].  So stop to say "it should work".  OTOH
> objdir as a subdirectory of srcdir works (at least for LFS [2] and BLFS
> [3]).
>
> [1]: https://gcc.gnu.org/pipermail/gcc-help/2023-November/143068.html
> [2]: https://www.linuxfromscratch.org/lfs/view/12.0/chapter08/gcc.html
> [3]: https://www.linuxfromscratch.org/blfs/view/12.0/general/gcc.html
>
> gcc/ChangeLog:
>
>         * doc/install.texi: Deem srcdir == objdir as broken, and objdir
>         as a subdirectory of srcdir is slightly better.
> ---
>
> Ok for trunk?
>
>  gcc/doc/install.texi | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
> index c1ccb8ba02d..0b43f3dce75 100644
> --- a/gcc/doc/install.texi
> +++ b/gcc/doc/install.texi
> @@ -697,9 +697,9 @@ phases.
>  First, we @strong{highly} recommend that GCC be built into a
>  separate directory from the sources which does @strong{not} reside
>  within the source tree.  This is how we generally build GCC; building
> -where @var{srcdir} == @var{objdir} should still work, but doesn't
> -get extensive testing; building where @var{objdir} is a subdirectory
> -of @var{srcdir} is unsupported.
> +where @var{objdir} is a subdirectory of @var{srcdir} should still work,
> +but doesn't get extensive testing; building where @var{objdir} ==
> +@var{srcdir} won't work.

objdir as subdirectory of srcdir is perfectly fine (and tested).  Maybe

... This is how we generally build GCC; building
where @var{srcdir} == @var{objdir} is fine, building
where @var{srcdir} == @var{objdir} is unsupported.

Richard.

>
>  If you have previously built GCC in the same directory for a
>  different target machine, do @samp{make distclean} to delete all files
> --
> 2.43.0
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-11-30 12:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-30  9:46 [PATCH] doc: Update the status of build directory not fully separated Xi Ruoyao
2023-11-30 12:05 ` Richard Biener

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).