Re: 'posix_spawnp' error in build

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2023-12-25 at 10:28 -0600, Segher Boessenkool wrote:
> Hi!
> 
> On Mon, Dec 25, 2023 at 08:11:23PM +0530, Prashant via Gcc-help wrote:
> >  I'm trying to build the gcc repository. Based on the instructions given on
> > the SummerOfCode - GCC Wiki (gnu.org)
> > <https://gcc.gnu.org/wiki/SummerOfCode#Before_you_apply> and GCC for New
> > Contributors — GCC Contributors Guide 0.1 documentation
> > (gcc-newbies-guide.readthedocs.io)
> > <https://gcc-newbies-guide.readthedocs.io/en/latest/>, I have tried the
> > following commands.
> > 
> > 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.

But then you should use "../configure", not "../gcc/configure".  Running
the configure script of a GCC component (instead of the top-level
configure) directly is completely unsupported.

-- 
Xi Ruoyao <xry111@xxxxxxxxxxx>
School of Aerospace Science and Technology, Xidian University




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux