'posix_spawnp' error in build

2023-12-25 Thread Prashant via Gcc
Hello, I'm new to the GCC community, who is willing to contribute and expand my knowledge on compilers. I hope this is the right forum I'm asking for help. I'm trying to build the gcc repository. Based on the instructions given on the SummerOfCode - GCC Wiki (gnu.org)

Re: 'posix_spawnp' error in build

2023-12-25 Thread Segher Boessenkool
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) > and GCC for New > Contributors — GCC Contribut

Re: 'posix_spawnp' error in build

2023-12-25 Thread Xi Ruoyao via Gcc
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) > >

Re: 'posix_spawnp' error in build

2023-12-25 Thread Prashant via Gcc
On Mon, 25 Dec 2023 at 22:00, Segher Boessenkool wrote: > Hi! > > > 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. > > I'm really sorry to miss out this important piece of information. Before

Re: 'posix_spawnp' error in build

2023-12-25 Thread Segher Boessenkool
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/pa