From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by sourceware.org (Postfix) with ESMTPS id CC27E3858C52 for ; Wed, 21 Sep 2022 15:27:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CC27E3858C52 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-x633.google.com with SMTP id sd10so6097066ejc.2 for ; Wed, 21 Sep 2022 08:27:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=qAcNKCZhDFRtlpRIirTQGFqPnVyyzrb2H65wdv/2Xt0=; b=YcLNB6G/5n9krH9tN9+IuxE07REenjGTyLip8jtdFpz3QE7iY0/RjYQZ/RH9hUwmK9 y7ZF3FqySFQSxe8ynQO7L6NaTmu61yKCmF40IEfWuEe4D4zO/N/y26ySwIex/UyPmJrr WMP60QxxYoShypDnXFbSbrfNw7kKwRAYDMeqy9UCQuJu8zl0gROys6iRNR6OuZ9f3CyK Mp37hQN9MMw/KtIYMGFmqGXvGk/yighOwhvQ0WAsxYtvwOBz+fJ1wO/8k/PuSTnlOW1a iKdfTH2JaI3FLFON3jxJOQ49uv7txUbs1ifgbV7gQVOW5EaLrPgElUWi2ew4Mw+o3qxV hMjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=qAcNKCZhDFRtlpRIirTQGFqPnVyyzrb2H65wdv/2Xt0=; b=2T7dSTIyDFucShKMASv6oYrmyn9PwpzI0V5lncehozhVWasynoQ5B6KRY+DGDXpFv2 xDuSt90saKIZ9w3SEOpBSK2ADPFpMaeT+T9egXlFLccsABLph0GGsQiCvuP21HrKBn3y eBESGy56BqNxI7Cs1vJk8EW2q+SUw4Yovf04Fgm212OdGQLFhu17mVqvHn/hYn270gZq /BlLV6U6yFB9XQwJKr51l8DeBM3zfTgdeaLk33aUiCj1eAwAIVdDlGsBAvkBYjAUhZVu EmCGuMdtbE1drXV3LRt6PVBstlf3lm6TBqiRc56vUTn5NVYjDQDeqmrjQLc/JVqVBFb5 Ibrg== X-Gm-Message-State: ACrzQf3O5dtFEf5kOwGsAr1hynLskclrYPJsQplR1apvvEDpCqOsunG3 ujNqOKWYh8FQbMKnxcCWP833jek917Vk1uB3xQw= X-Google-Smtp-Source: AMsMyM7uIG4csrR0jQIwzV9wIsAnXBhdItAHzIiFnehTAuxvxxygcTHqPKtnrrP/TI1KyiGEPVh7STK+LRLY7fNUwms= X-Received: by 2002:a17:907:a079:b0:770:78cb:6650 with SMTP id ia25-20020a170907a07900b0077078cb6650mr21236306ejc.515.1663774075345; Wed, 21 Sep 2022 08:27:55 -0700 (PDT) MIME-Version: 1.0 References: <1663728160.129119460@f6.my.com> In-Reply-To: <1663728160.129119460@f6.my.com> From: mizo 91 Date: Wed, 21 Sep 2022 17:27:46 +0200 Message-ID: Subject: Re: RE: CreateProcess No such file or directory To: fedor_qd@mail.ru Cc: Tamar Christina , gcc-help@gcc.gnu.org, Richard Earnshaw Content-Type: multipart/alternative; boundary="000000000000bf5fab05e9319635" X-Spam-Status: No, score=3.8 required=5.0 tests=BAYES_50,BODY_8BITS,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_KAM_HTML_FONT_INVALID 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: --000000000000bf5fab05e9319635 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable @Tamar.Christina I have created public repository on github and placed 'procmon' log file there: https://github.com/fskoras/CreateProcess-gcc-issue/blob/master/Logfile.CSV You can also clone the repository if you want to try to recreate the issue: https://github.com/fskoras/CreateProcess-gcc-issue I have executed the as.exe directly and it worked without problems: D:/Tools/x86_64-12.2.0-release-win32-seh-rt_v10-rev0/mingw64/bin/../lib/gcc= /x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/as.exe --version GNU assembler (GNU Binutils) 2.38 Copyright (C) 2022 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or later. This program has absolutely no warranty. This assembler was configured for a target of `x86_64-w64-mingw32'. @fedor_qd I have checked version 11.2.0 and the same problem occurs binutils version used for both versions: gcc x86_64-11.2.0: GNU assembler (GNU Binutils) 2.37 gcc x86_64-12.2.0: GNU assembler (GNU Binutils) 2.38 R. =C5=9Br., 21 wrz 2022 o 04:42 napisa=C5=82(a): > I saw such error in my build gcc 12.1.0 for Symbian. GCC 11.2.0 works fin= e. > > I encounter such error while building ScummVM for Symbian. This error > happened randomly. I thought my environment broken and switched to GCC > 11.2.0 and errors gone. > > GCC 11.2.0 comes with binutils 2.35, GCC 12.1.0 comes with binutils 2.29.1 > What binutils version you have? > > -- > Sent from Outlook Email App for Android > =D1=81=D0=B5=D1=80=D0=B0=D0=B4=D0=B0, 21 =D0=B2=D0=B5=D1=80=D0=B0=D1=81= =D0=BD=D1=8F 2022, 01:29AM +03:00 from Tamar Christina via Gcc-help > gcc-help@gcc.gnu.org: > > We'd mostly be guessing here, use strace or > https://learn.microsoft.com/en-us/sysinternals/downloads/procmon to see > which path is actually being accessed and why it failed. > > Also check that you can run `as` correctly. This error can also happen if > a dependency of `as.exe` isn't found during loading. > > Cheers, > Tamar > > > -----Original Message----- > > From: Gcc-help > > On Behalf Of mizo 91 via Gcc-help > > Sent: Tuesday, September 20, 2022 1:17 PM > > To: Richard Earnshaw > > Cc: gcc-help@gcc.gnu.org > > Subject: Re: CreateProcess No such file or directory > > > > According to Microsoft docs path length limitation for windows is 256. > In my > > case its 143 chars. I think the problem might be related to how gcc > driver is > > passing along unmarshalled arguments to its subprograms like as.exe. > > Suprisingly this works correctly if I enforce gcc driver to use > preprocessor only > > by adding -E flag > > > > btw. I failed to previously mention that I'm using Mingw-W64 version > > provided kindly by niXman Binaries taken directly from official MinGW-W= 64 > > builds: > > https://www.mingw-w64.org/downloads/#mingw-builds > > https://github.com/niXman/mingw-builds-binaries/releases > > > > R. > > > > wt., 20 wrz 2022 o 18:18 Richard Earnshaw > > > > napisa=C5=82(a): > > > > > > > > > > > On 20/09/2022 17:02, mizo 91 via Gcc-help wrote: > > > > Hello, > > > > > > > > I'm having trouble compiling simple test program on windows 10 with > > > > long list of includes provided via '@response_file' argument > > > > > > > > The full error is: > > > > > > > > gcc.exe: fatal error: cannot execute > > > > > > > 'C:/Tools/x86_64-12.2.0-release-win32-seh-rt_v10- > > rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_6= 4- > > w64-mingw32/bin/as.exe': > > > > CreateProcess: No such file or directory > > > > > > > > compilation terminated. > > > > > > > > Above path to the assembler program is valid therefore I don't > > > > understand what is the issue here? > > > > > > > > You can try to recreate the problem by compiling simple main.c file > > > > with nothing in it but main function using command: > > > > gcc @includes.txt main.c > > > > > > > > I assume it has something to do with windows 32k CreateProcess > > > > command length limitation? But isn't that the reason why respone > > > > files were invented? > > > > > > > > Regards, > > > > Filip > > > > > > I'm by no means a windows expert, but I wonder if this might be > > > related to the length of the path to the assembler and that it's > > > somehow getting truncated. > > > > > > R. > > > > > --000000000000bf5fab05e9319635--