From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from xry111.site (xry111.site [89.208.246.23]) by sourceware.org (Postfix) with ESMTPS id 45CBA3858C98; Mon, 25 Dec 2023 16:33:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 45CBA3858C98 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=xry111.site Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=xry111.site ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 45CBA3858C98 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=89.208.246.23 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703522029; cv=none; b=ImsCa9K9W64ZpWqm/eog08OjpM4CMdDCbuAroVT0JmHk+qK6UI02oEyOPxpJPuUaOgtbxyeUHDmoSywAUMT0vdeWzJy0E5NKFc3/40U4i4hW7XuV8i5JDTW1wI2bIzvfwjcEqxtQ5ZENsuubwIJ4rLESdn1aTiQcCV5GD/YPIqU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703522029; c=relaxed/simple; bh=f/GQ2RmMEK7j1jWdedfsdc+aiuXtG40oVXSCsEWvckc=; h=DKIM-Signature:Message-ID:Subject:From:To:Date:MIME-Version; b=AJ3FiJCvbzWxLWiJv2S3h0jIreLiP2aS911gJpFEKssk0vkcQgdXAn3yhyP5RevfUhoPbxj0ngXopD9f3OqS5Tl+0BOoG8UGlba7DVxO5G5u0wg+fNaKYoCqICkrFGaZmZrpUz8fpIzXsT6v1xJmqHwioeAwq1mUX4U1wa7UTZ4= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1703522027; bh=f/GQ2RmMEK7j1jWdedfsdc+aiuXtG40oVXSCsEWvckc=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=QteG0NjtMLrSOAOtZ/yFMkcD2qMu8yQZEgJTil5s7CAUA8i5+fN8EZtVkonSszTBW Pd10IeZX1Td76DJkiC6eIrZhTMUcr7BxbzYJxTTW52l/sAkSj92B6ydwEB4BCwwckJ EDPykSdk9tiiAfBrytfx0xZ1AfxNcO2LSDoc588s= Received: from [IPv6:240e:358:113a:1b00:dc73:854d:832e:2] (unknown [IPv6:240e:358:113a:1b00:dc73:854d:832e:2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 18E7A66E41; Mon, 25 Dec 2023 11:33:44 -0500 (EST) Message-ID: <22078885f012045083b9287a25dac5157e84ece6.camel@xry111.site> Subject: Re: 'posix_spawnp' error in build From: Xi Ruoyao To: Segher Boessenkool , Prashant Cc: gcc-help@gcc.gnu.org, gcc@gcc.gnu.org Date: Tue, 26 Dec 2023 00:33:40 +0800 In-Reply-To: <20231225162814.GS19790@gate.crashing.org> References: <20231225162814.GS19790@gate.crashing.org> Autocrypt: addr=xry111@xry111.site; prefer-encrypt=mutual; keydata=mDMEYnkdPhYJKwYBBAHaRw8BAQdAsY+HvJs3EVKpwIu2gN89cQT/pnrbQtlvd6Yfq7egugi0HlhpIFJ1b3lhbyA8eHJ5MTExQHhyeTExMS5zaXRlPoiTBBMWCgA7FiEEkdD1djAfkk197dzorKrSDhnnEOMFAmJ5HT4CGwMFCwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQrKrSDhnnEOPHFgD8D9vUToTd1MF5bng9uPJq5y3DfpcxDp+LD3joA3U2TmwA/jZtN9xLH7CGDHeClKZK/ZYELotWfJsqRcthOIGjsdAPuDgEYnkdPhIKKwYBBAGXVQEFAQEHQG+HnNiPZseiBkzYBHwq/nN638o0NPwgYwH70wlKMZhRAwEIB4h4BBgWCgAgFiEEkdD1djAfkk197dzorKrSDhnnEOMFAmJ5HT4CGwwACgkQrKrSDhnnEOPjXgD/euD64cxwqDIqckUaisT3VCst11RcnO5iRHm6meNIwj0BALLmWplyi7beKrOlqKfuZtCLbiAPywGfCNg8LOTt4iMD Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.2 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_SHORT,LIKELY_SPAM_FROM,SPF_HELO_PASS,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Mon, 2023-12-25 at 10:28 -0600, Segher Boessenkool wrote: > Hi! >=20 > On Mon, Dec 25, 2023 at 08:11:23PM +0530, Prashant via Gcc-help wrote: > > =C2=A0I'm trying to build the gcc repository. Based on the instructions= given on > > the SummerOfCode - GCC Wiki (gnu.org) > > and GCC for Ne= w > > Contributors =E2=80=94 GCC Contributors Guide 0.1 documentation > > (gcc-newbies-guide.readthedocs.io) > > , I have tried the > > following commands. > >=20 > > 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=3D/home/path/to/gcc --enable-languages=3Dc= ,c++ >=20 > That is wrong.=C2=A0 Build dir as a subdir of the source dir is not > supported.=C2=A0 It might work in many cases, but that does not mean it i= s > 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. --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University