From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by sourceware.org (Postfix) with ESMTPS id 18D653858401 for ; Sun, 9 Jan 2022 07:17:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 18D653858401 Received: by mail-pj1-x1033.google.com with SMTP id i8-20020a17090a138800b001b3936fb375so3289978pja.1 for ; Sat, 08 Jan 2022 23:17:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :thread-index:content-language; bh=LyNl4gUo9A/AqbHoukKzGW7bljQ7R7eZvlyMq3XCN2I=; b=lByzph+jegNqA9YvMHqvS6XnJX3ShyxjziqLRLETzd96W2NBTuXMivenuLj56lXSbH v/rgIYf/64vr47nGgF/oovHSMF4queEXFM7e2/8RplnALtU35H6DngPLBgo+8ic+OJJ+ DIYGvTGSMKA6n2PmtCsQphW/qvVkpqwMCMcEJEOCMwb/GWkyhHC2PsBdsfq6dN6twpPp bxtZuEkTTtkFaNzBKbMdPnBlPq9z8o5MucuyLBB8oyl8QeUQhMOuDNpp7JJuWyDRXQmX 8d8kzyHzRBpASnzclrKEj/hS01Agf+UN8e+tdjhClT8jqDA7ZILveLToPBBFKmtj03fZ W7qg== X-Gm-Message-State: AOAM532Y4pfmIWBAIaAepq/wLJ0A/nvKqXZOQW7/Z361bWwZjG6uO/Sr KSAlp+FKVe2ZyWMP4ITGpW+pQtOJrOpH+KXw X-Google-Smtp-Source: ABdhPJxY6qfrgA1W8fOuWAHykH6Vq9x0/6fPPWx6BiGBVhREO+BYuae6Hjt1xCES9Z/LlbYyi0EXuQ== X-Received: by 2002:a17:902:6b0a:b0:149:9fb2:8631 with SMTP id o10-20020a1709026b0a00b001499fb28631mr45326708plk.73.1641712653009; Sat, 08 Jan 2022 23:17:33 -0800 (PST) Received: from SundeepGBF6NW2 ([43.241.120.81]) by smtp.gmail.com with ESMTPSA id a1sm3072557pfv.99.2022.01.08.23.17.31 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 08 Jan 2022 23:17:32 -0800 (PST) From: To: Subject: GCC: Option -MF can not deal with long path name on Windows Date: Sun, 9 Jan 2022 12:47:25 +0530 Message-ID: <006901d80528$f7277aa0$e5766fe0$@gmail.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdgFKM2JaFtYH/f+RSem9ma45mxH8g== Content-Language: en-us X-Spam-Status: No, score=1.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Jan 2022 07:17:35 -0000 Hello, When below code is compiled with -MF option the Compilation failed when the path of Windows is more than 256 characters. Do let me know if it is a feature or a bug in GCC. Test code in a.c: int main() { int a = 100; int b = 200; return a+b; } Compilation: gcc -M -MF E:\ppc\issue\workspace\test1\test2\test3\test4\test5\test6\test7\test8\test9 \test10\test11\test12\test13\test14\test15\test16\test17\test18\test19\test2 0\test21\test22\test23\test24\test25\test26\test27\test28\test29\test30\test 31\test32\test33\test34\test35\test36\test37\test38\test39\test40\test41\tes t42\test43\a.d -c a.c Error: fatal error: opening dependency file E:\ppc\issue\workspace\test1\test2\test3\test4\test5\test6\test7\test8\test9 \test10\test11\test12\test13\test14\test15\test16\test17\test18\test19\test2 0\test21\test22\test23\test24\test25\test26\test27\test28\test29\test30\test 31\test32\test33\test34\test35\test36\test37\test38\test39\test40\test41\tes t42\test43\a.d: No such file or directory compilation terminated.