From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by sourceware.org (Postfix) with ESMTPS id E93643858C55 for ; Tue, 20 Sep 2022 17:17:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E93643858C55 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-x629.google.com with SMTP id a26so7842266ejc.4 for ; Tue, 20 Sep 2022 10:17:19 -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=PkpCs7uQPpdqhuty2AI9GBQ4wgRWC98GMy6qVR8JtvI=; b=R+TIj+JoZu86Ip/Tb2cSfsFVq+oRcRGpJx3Lt0JC6e9vpmkFUGn10cObew77HLXJQ8 2XDa07fqZMxDLwl+wXoMkB092ACLYrGLzUmIEhTNpMg/BQhlOF7YtBoiyLIZSyTTZbFd Pb3YoHku1yg4opEoYe14Gd+fCOCtMtraJGUGInGJw56WPbVUecBWB2CC8H0Nx7/TeMQd Cz2zWSXevt6f4o4VQt288PpdUJ8AJp2o1juSrFlLWIxYcspDLIaqesfwSbeimB8QlxXU /yKJBJbUx4Zom2SXuEGSUXhRc6k20VcYFoSSb0u47CkdgCb8ijeHESbVRwrf3Z4f5Zk0 IWRA== 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=PkpCs7uQPpdqhuty2AI9GBQ4wgRWC98GMy6qVR8JtvI=; b=ytcs1kMt2o8P9hGCvUkdMtGDRPbFE0lfSbA6r+cwOBhYK1dIp8L0j/9oBRAUuctlkg JHznCpg58T2IsKrjj5Z9xPbmInMGM5ITbR0sIin4K0AB/RArg5Q/1FDCBodfmZXgGKCD SSDfW2tQdGh2w3kFkQ+3RWUHR0zCuE4sFEKR8wmFXE79w64K/UAf48TJ3b6Dk6b7coxi SGDCnfYJrSEenyrNpxWOb3hptOMcT0GbpHpgqCHixFWOJHCV9hrwWX7v/gW7bY80PAyK qwJkhLo/QA7zm+pBf0sHvHHCPf7mLMH2K2EaDVqSQu/Qrs1YSWWB+5DeSP73xma+8lYC 1F7g== X-Gm-Message-State: ACrzQf1MPMI0xoEHwCh0cqdnJ6b+Lk3C5839xZOOd3CS5pOCMh75VVYA XmGms/Ssy325CK5tqZaQEXfhpX3ZUzgiKX4bryU= X-Google-Smtp-Source: AMsMyM54taWIZZFWt/TGX0O6TaemZY6j186z+yiUAIEV10JVCVHIYRwlyV3KiN7XP3o1Wb+AMgLa856bxFswK+/eGtM= X-Received: by 2002:a17:907:272a:b0:77c:d7df:c9da with SMTP id d10-20020a170907272a00b0077cd7dfc9damr18210699ejl.332.1663694238505; Tue, 20 Sep 2022 10:17:18 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: mizo 91 Date: Tue, 20 Sep 2022 19:17:08 +0200 Message-ID: Subject: Re: CreateProcess No such file or directory To: Richard Earnshaw Cc: gcc-help@gcc.gnu.org Content-Type: multipart/alternative; boundary="00000000000019dfb405e91f0096" X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,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 autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --00000000000019dfb405e91f0096 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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-W64 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_64-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 understa= nd > > 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. > --00000000000019dfb405e91f0096--