<div dir="ltr">Thanks David. <div>Why do you think this could be about current dir?<br><div>Isn't it about TMP (or TEMP or TMPDIR) environment variables? </div><div><br></div><div>Thanks,</div><div>Danijel Domazet</div><div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 13, 2020 at 12:11 AM David Blaikie <<a href="mailto:dblaikie@gmail.com">dblaikie@gmail.com</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">Looks like it writes the files to the current directory - do you have<br>
permission to access the current directory?<br>
<br>
On Wed, Aug 12, 2020 at 6:28 AM Danijel DOMAZET via cfe-users<br>
<<a href="mailto:cfe-users@lists.llvm.org" target="_blank">cfe-users@lists.llvm.org</a>> wrote:<br>
><br>
> Hi clang users,<br>
> I am using Windows10 + Cygwin + Eclipse +  LLVM toolchain to build a C/C++<br>
> project.<br>
><br>
> The files compile fine, but linking with `clang++` fails with multiple<br>
> `error: unable to make temporary file: No such file or directory`.<br>
><br>
>     clang++ -o test "source1.bc" "source2.bc" "source3.bc"<br>
>     clang-8: error: unable to make temporary file: No such file or directory<br>
>     clang-8: error: unable to make temporary file: No such file or directory<br>
>     clang-8: error: unable to make temporary file: No such file or directory<br>
><br>
> Linker generates one error per each object file.<br>
><br>
> However, when I add the `-save-temps` option to linker, it works OK.<br>
><br>
> I am launching Eclipse.exe from within Cygwin. I have tried to set TMP,<br>
> TEMP to /temp, /temp/, /cygdrive/c/temp, etc, but nothing worked.<br>
><br>
> What could be the problem?<br>
><br>
> Thanks,<br>
> Danijel Domazet<br>
><br>
><br>
><br>
> - Confidential -<br>
> _______________________________________________<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>

<br>
<div style="font-family:Arial,Helvetica,sans-serif;font-size:1.3em"><span style="font-size:medium">- Confidential -</span></div>