public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: <sundeep.kokkonda@gmail.com>
To: <gcc-help@gcc.gnu.org>
Subject: GCC: Option -MF can not deal with long path name on Windows
Date: Sun, 9 Jan 2022 12:47:25 +0530	[thread overview]
Message-ID: <006901d80528$f7277aa0$e5766fe0$@gmail.com> (raw)

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.

 

 


                 reply	other threads:[~2022-01-09  7:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='006901d80528$f7277aa0$e5766fe0$@gmail.com' \
    --to=sundeep.kokkonda@gmail.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).