Hello, Any solution you have in mind? Thanks, Prashanth On Tue, 26 Dec 2023 at 04:32, Segher Boessenkool <segher@xxxxxxxxxxxxxxxxxxx> wrote: > On Tue, Dec 26, 2023 at 12:33:40AM +0800, Xi Ruoyao wrote: > > On Mon, 2023-12-25 at 10:28 -0600, Segher Boessenkool wrote: > > > > 1) git clone git://gcc.gnu.org/git/gcc.git > > > > 2) cd gcc & ./contrib/download_prerequisites > > > > 3) mkdir objdir & cd objdir > > > > 4) ../gcc/configure --prefix=/home/path/to/gcc > --enable-languages=c,c++ > > > > > > That is wrong. Build dir as a subdir of the source dir is not > > > supported. It might work in many cases, but that does not mean it is > > > okay to do. > > > > It *is* supported, per discussion at > > https://gcc.gnu.org/pipermail/gcc-patches/2023-November/638760.html. > > Huh, okay. That changed "recently" then, for some elongated timescale > anyway :-) > > > But then you should use "../configure", not "../gcc/configure". > > Ha! I didn't even notice that. > > > Running > > the configure script of a GCC component (instead of the top-level > > configure) directly is completely unsupported. > > Without all the necessary configuration arguments, yeah. So it is still > easier to just make an actually separate object dir -- even if only so > you can just blow it away when you want to start over :-) > > > Segher >