* GCC: Option -MF can not deal with long path name on Windows
@ 2022-01-09 7:17 sundeep.kokkonda
0 siblings, 0 replies; only message in thread
From: sundeep.kokkonda @ 2022-01-09 7:17 UTC (permalink / raw)
To: gcc-help
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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-09 7:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-09 7:17 GCC: Option -MF can not deal with long path name on Windows sundeep.kokkonda
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).