Parsing in distcc pump mode (path problems - "No such file or directory")
Gordon Jess <[email protected]> Wed, 1 Mar 2017 12:30:34 +0100
| Newsgroups | gmane.comp.compilers.distcc |
|---|---|
| Message-ID | <CAAjRbzFR3DXZitYKSFs4mKt5+ECpGZD09hFBM+Y6K-dgme93cg@mail.gmail.com> |
--===============2052855284397446441== Content-Type: multipart/alternative; boundary=001a11353046135e240549a9a46a --001a11353046135e240549a9a46a Content-Type: text/plain; charset=UTF-8 I am having issues with strange file paths when parsing c file in distcc's pump-mode (distcc's plain mode works just fine). I'm running on Cygwin64, in a system with also uses both CMake and Ninja. The compiler is not GCC. I have tried tracing the issue in the source but the indexing of paths is rather complicated and I hoped someone more familiar with it can offer some hints/tips as to what the problem may be. As a user I cannot spend too much time patching code to suit me. The error messages I receive are in the format: WARNING include server: Preprocessing locally. Include server not covering: Parse file: '/cygdrive/c/*<project base>*/*<path to build.ninja directory>* /C:\*<project base>*\*<path to source>*\example.c': [Errno 2] No such file or directory: '/cygdrive/c/*<project base>*/*<path to build.ninja directory>*/C:\\*<project base>*\\*<path to source>*\\example.c' for translation unit 'C:\*<project base>*\*<path to source>*\example.c' (*<path to build.ninja directory>* is also the base for the output files) I should also mention that I made 1 modification to include_server: In "compiler_defaults.py", function "_SystemSearchdirsGCC": Removed the function body as it only works for GCC, and replaced with a single path to the compilers default include path. Any suggestions are much appreciated. Thanks in advance! --001a11353046135e240549a9a46a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>I am having issues with strange file paths when parsi= ng c file in distcc's pump-mode (distcc's plain mode works just fin= e).=C2=A0</div><div><br></div><div>I'm running on Cygwin64, in a system= with also uses both CMake and Ninja. =C2=A0</div><div>The compiler is not = GCC.</div><div><br></div><div>I have tried tracing the issue in the source = but the indexing of paths is rather complicated and I hoped someone more fa= miliar with it can offer some hints/tips as to what the problem may be.=C2= =A0 As a user I cannot spend too much time patching code to suit me.</div><= div><br></div><div>The error messages I receive are in the format:</div><di= v><br></div><div>WARNING include server: Preprocessing locally. Include ser= ver not covering: Parse file: '/cygdrive/c/<i><project base></i>/= <i><path to build.ninja directory></i>/C:\<i><project base></i>= \<i><path to source></i>\example.c': [Errno 2] No such file or di= rectory: '/cygdrive/c/<i><project base></i>/<i><path to build.= ninja directory></i>/C:\\<i><project base></i>\\<i><path to sou= rce></i>\\example.c' for translation unit 'C:\<i><project bas= e></i>\<i><path to source></i>\example.c'<br></div><div><br></= div><div>(<i><path to build.ninja directory></i>=C2=A0is also the bas= e for the output files)</div><div><br></div><div><br></div><div>I should al= so mention that I made 1 modification to include_server:</div><div><br></di= v><div>In "compiler_defaults.py", function "_SystemSearchdir= sGCC":</div><div><br></div><div>Removed the function body as it only w= orks for GCC, and replaced with a single path to the compilers default incl= ude path.</div><div><br></div><div>Any suggestions are much appreciated.</d= iv><div><br></div><div>Thanks in advance!</div></div> --001a11353046135e240549a9a46a-- --===============2052855284397446441== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline __ distcc mailing list http://distcc.samba.org/ To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/distcc --===============2052855284397446441==--