<div dir="ltr">Can you confirm other tools given similar path specifications in similar circumstances (command line/current working directory/etc) succeed where clang fails? (MSVC, notepad, gcc, 'cat' (if Windows has a 'cat'))</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 9, 2020 at 10:41 AM Telium Technical Support via cfe-users <<a href="mailto:cfe-users@lists.llvm.org">cfe-users@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-US"><div class="gmail-m_3118365281114362860WordSection1"><p class="MsoNormal">I think this is a bug…but it’s so big that I can’t believe I’m the first person to find it.  Perhaps someone can help me find a workaround…<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I discovered that clang++ will not find a source file if it is located on a network share (if using a relative path). For example, I have place the same file "main.cpp" into C:\temp (a local drive) and T:\temp (a network SMB share).<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">If I change pwd to C:\temp the following line works:<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">C:\android\cmdline-tools\ndk\21.1.6352462/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++ main.cpp<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">but if I change pwd to T:\temp the above line does NOT work (can't find file). However, if I specify the full path for the source file for clang++ T:\temp\main.cpp then it works.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Since my make files are generated (using qmake) I have no control over the paths passed to clang++. Can someone explain why clang++ can't find source files on network shares (using relative paths), and how to fix this?<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">In case it matters, I’m running on Win10 64 bit.  I’ve tried putting source files on an SMB share, and a NFS share…and the results are the same.<u></u><u></u></p></div></div>_______________________________________________<br>
cfe-users mailing list<br>
<a href="mailto:cfe-users@lists.llvm.org" target="_blank">cfe-users@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users</a><br>
</blockquote></div>