From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by sourceware.org (Postfix) with ESMTPS id 4AE8D3858C98; Mon, 25 Dec 2023 14:41:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4AE8D3858C98 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4AE8D3858C98 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::535 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703515298; cv=none; b=wGM2EUgq7gA4HAaxoRJGoc6kCi5BZGFkGrt3wAyGPnS5aw3Hf/2KRO7bl2Ly5VNYcViYVCifuSUn/q7ITHMVOe/TGmiDfOqRVhv3ZZionTARP8PE+o5gGUZlbJIR6tew8i5zfgRdPaGBJwcY+F/wBXUE37BnMzw87/PSn+x7kQ0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703515298; c=relaxed/simple; bh=4yXSiAX7KIS3/j4pkI8a7ejULoOCo5KbCen6bC/RffE=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=ZS4S4u4qDT2KO0N2b4/h1ZdOx0G4AvGbgeqrS1PE57/s7nKK2N9F+t0ICjskFr0y9NB1bETEhIMx1AYlsZxFMCADIU50nv9fHMRh65hdbl8z7Qg6QbFBuNp1I70fpLfi2DlDgyFxVrsQy6+zifYPiiTHge2j3sVZRAaxyuxC7Ms= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-554766d5ceaso2195928a12.3; Mon, 25 Dec 2023 06:41:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703515294; x=1704120094; darn=gcc.gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=4yXSiAX7KIS3/j4pkI8a7ejULoOCo5KbCen6bC/RffE=; b=X6OHm9eIyNenAby+GhrAUw46tP0E/I5+HbC8MYAAlGAe+XfqjAx8hHYVXu0fufrmx3 JNmCwndEw4c1jdgnIzEUhySzyjX2E/6Lj2/3OYbuaggTP2x6AdJIUE/y6ystclfePCjx PiLpThOeX8o841Rd4q7GCmpxazkpOddm1S/qmzhNkq57KgiWy/R2wHw8w3bQLwOfJk4y vvprZfdsPMVn/Wv7iFfV7lEVk9az7JbU8KPWz4cVUJk7GtZgYzBuE7uJw/6wEoe72H1v vfKkkkX6dpOa27hHRCIafbxCLoIB/zq6C2ZInHGw18nLiTJjVtnJ8OhINxeFvrLc0q4N RqGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703515294; x=1704120094; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=4yXSiAX7KIS3/j4pkI8a7ejULoOCo5KbCen6bC/RffE=; b=plPIFUkWFHjA4DZoe/c8OFM5mOQ77AEu5BwyWgm6cs0Ny7yydFpDtC/rFMCzyD9B8v SZfLK/DXghvzTQjZLdfR5r+IyD51jx/n9a3NS6Rayt6S4UxfoGfM0HFb7GN3m8Dr5vIy 2BG6v79/6suWBkPHzPcDCLelgb7aZn8R8xACyNaATueWukL0hylblOI9l64yWxHHrAoI vAnla92xMgUpKiO6ZTNdXI7HramaJlw96cqLtXLi2jotQbadSFIMlFWLfbttEeS5OCPh kSOOXZDDMIBd3VINV/gEYFXPq/P0/1u7JHnIi1pvqqkNU4ZpIqpsJ9SiBMMpmAOfZN+L 5Lpg== X-Gm-Message-State: AOJu0Yx4Gb+6J1YXOxPzVDF4g3UzHUxPGGtW3Eb0dImZhv71xScq7aw0 Xuc6OZsl+WJFIxtk/2SV1Sx2ujkUkyHrXkGaoOqz0rlFjUY= X-Google-Smtp-Source: AGHT+IEitEM4INbgQYC3u95VKiny1CCb1ZVb7R1EF8VdbXOjeL3MLzu/tz89zndsXSBrk45zRxzNkNxBCPCUzWByNJ8= X-Received: by 2002:a50:ccc1:0:b0:547:9f26:e581 with SMTP id b1-20020a50ccc1000000b005479f26e581mr3986018edj.37.1703515294358; Mon, 25 Dec 2023 06:41:34 -0800 (PST) MIME-Version: 1.0 From: Prashant Date: Mon, 25 Dec 2023 20:11:23 +0530 Message-ID: Subject: 'posix_spawnp' error in build To: gcc-help@gcc.gnu.org, gcc@gcc.gnu.org Content-Type: multipart/alternative; boundary="000000000000fd5fcb060d568f20" X-Spam-Status: No, score=1.4 required=5.0 tests=BAYES_20,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_KAM_HTML_FONT_INVALID,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --000000000000fd5fcb060d568f20 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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) and GCC for New Contributors =E2=80=94 GCC Contributors Guide 0.1 documentation (gcc-newbies-guide.readthedocs.io) , 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=3D/home/path/to/gcc --enable-languages=3Dc,c++ 5) make -j 4 Running the 5th throws the following error: 'xgcc: fatal error: cannot execute =E2=80=98cc1plus=E2=80=99: posix_spawnp:= No such file or directory compilation terminated.' I have tried to search Google and take help of ChatGPT but even the guidance didn't resolve my issue. Following are the solutions that I tried. Executing the command: 1) 'sudo apt-get install --reinstall build-essential' 2) 'sudo apt-get install --reinstall g++' 3) 'unset GCC_EXEC_PREFIX' This is based on the following pages: php - Compile error: "g++: error trying to exec 'cc1plus': execvp: No such file or directory" - Stack Overflow and ChatGPT inputs. I haven't been able to find a solution for the same. Any guidance/input will be appreciated. Thanks --000000000000fd5fcb060d568f20--