* [PATCH v2] doc: Update the status of build directory not fully separated
@ 2023-11-30 13:41 Xi Ruoyao
2023-12-01 7:14 ` Richard Biener
0 siblings, 1 reply; 3+ messages in thread
From: Xi Ruoyao @ 2023-11-30 13:41 UTC (permalink / raw)
To: gcc-patches; +Cc: Richard Biener, 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: we've built GCC in LFS [2]
and BLFS [3] this way for decades and this is confirmed during the
review of a previous version of this patch [4].
[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
[4]: https://gcc.gnu.org/pipermail/gcc-patches/2023-November/638760.html
gcc/ChangeLog:
* doc/install.texi: Deem srcdir == objdir broken, but objdir
as a subdirectory of srcdir fine.
---
Superseds
https://gcc.gnu.org/pipermail/gcc-patches/2023-November/638728.html.
Ok for trunk?
gcc/doc/install.texi | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
index c1ccb8ba02d..c1128d9274c 100644
--- a/gcc/doc/install.texi
+++ b/gcc/doc/install.texi
@@ -697,9 +697,8 @@ 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 work as well;
+building where @var{objdir} == @var{srcdir} is unsupported.
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] 3+ messages in thread
* Re: [PATCH v2] doc: Update the status of build directory not fully separated
2023-11-30 13:41 [PATCH v2] doc: Update the status of build directory not fully separated Xi Ruoyao
@ 2023-12-01 7:14 ` Richard Biener
2023-12-01 15:40 ` Eric Gallager
0 siblings, 1 reply; 3+ messages in thread
From: Richard Biener @ 2023-12-01 7:14 UTC (permalink / raw)
To: Xi Ruoyao; +Cc: gcc-patches
On Thu, Nov 30, 2023 at 2:42 PM 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: we've built GCC in LFS [2]
> and BLFS [3] this way for decades and this is confirmed during the
> review of a previous version of this patch [4].
>
> [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
> [4]: https://gcc.gnu.org/pipermail/gcc-patches/2023-November/638760.html>
> gcc/ChangeLog:
>
> * doc/install.texi: Deem srcdir == objdir broken, but objdir
> as a subdirectory of srcdir fine.
> ---
>
> Superseds
> https://gcc.gnu.org/pipermail/gcc-patches/2023-November/638728.html.
>
> Ok for trunk?
OK.
Thanks,
Richard.
> gcc/doc/install.texi | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
> index c1ccb8ba02d..c1128d9274c 100644
> --- a/gcc/doc/install.texi
> +++ b/gcc/doc/install.texi
> @@ -697,9 +697,8 @@ 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 work as well;
> +building where @var{objdir} == @var{srcdir} is unsupported.
>
> 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] 3+ messages in thread
* Re: [PATCH v2] doc: Update the status of build directory not fully separated
2023-12-01 7:14 ` Richard Biener
@ 2023-12-01 15:40 ` Eric Gallager
0 siblings, 0 replies; 3+ messages in thread
From: Eric Gallager @ 2023-12-01 15:40 UTC (permalink / raw)
To: Richard Biener; +Cc: Xi Ruoyao, gcc-patches
Please cross-reference against issue 37210 if/when merging, if it
hasn't already been:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37210
On Fri, Dec 1, 2023 at 2:15 AM Richard Biener
<richard.guenther@gmail.com> wrote:
>
> On Thu, Nov 30, 2023 at 2:42 PM 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: we've built GCC in LFS [2]
> > and BLFS [3] this way for decades and this is confirmed during the
> > review of a previous version of this patch [4].
> >
> > [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
> > [4]: https://gcc.gnu.org/pipermail/gcc-patches/2023-November/638760.html>
>
> > gcc/ChangeLog:
> >
> > * doc/install.texi: Deem srcdir == objdir broken, but objdir
> > as a subdirectory of srcdir fine.
> > ---
> >
> > Superseds
> > https://gcc.gnu.org/pipermail/gcc-patches/2023-November/638728.html.
> >
> > Ok for trunk?
>
> OK.
>
> Thanks,
> Richard.
>
> > gcc/doc/install.texi | 5 ++---
> > 1 file changed, 2 insertions(+), 3 deletions(-)
> >
> > diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
> > index c1ccb8ba02d..c1128d9274c 100644
> > --- a/gcc/doc/install.texi
> > +++ b/gcc/doc/install.texi
> > @@ -697,9 +697,8 @@ 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 work as well;
> > +building where @var{objdir} == @var{srcdir} is unsupported.
> >
> > 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] 3+ messages in thread
end of thread, other threads:[~2023-12-01 15:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-30 13:41 [PATCH v2] doc: Update the status of build directory not fully separated Xi Ruoyao
2023-12-01 7:14 ` Richard Biener
2023-12-01 15:40 ` Eric Gallager
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).