clang-9 'no such file or directory' with Windows mapped drive and relative path

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

clang-9 'no such file or directory' with Windows mapped drive and relative path

Kristóf Umann via cfe-dev
Hi all,

we noticed a problem with the upcoming clang-9 on windows.
When working on a mapped network drive, clang-9 does not seem to find files relative to the 'current directory'.
clang-8 does not show this problem.

Following steps (see below) can be used to reproduce this. We tested on a Windows Server 2016 machine.

Did anybody else see this behavior ?

Thanks,

Jeroen Dobbelaere
Bruno De Fraine

-----
C:\> net use Y: \\some\network\path

C:\> Y:

Y:\>dir foo.c
(shows file foo.c present)

Y:\>C:\LLVM-8.0.1\bin\clang.exe -E foo.c
(normal output)

Y:\>C:\LLVM-9.0.0-rc3\bin\clang.exe -E foo.c
clang: error: no such file or directory: 'foo.c'
clang: error: no input files

Y:\>C:\LLVM-9.0.0-rc3\bin\clang.exe -E \foo.c
(normal output)

Y:\>C:\LLVM-9.0.0-rc3\bin\clang.exe -E .\foo.c
clang: error: no such file or directory: 'foo.c'
clang: error: no input files

This is using the binaries from LLVM-8.0.1-win64.exe and LLVM-9.0.0-rc3-win64.exe:

Y:\>C:\LLVM-9.0.0-rc3\bin\clang.exe -v
clang version 9.0.0 (tags/RELEASE_900/rc3)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\LLVM-9.0.0-rc3\bin

Y:\>C:\LLVM-8.0.1\bin\clang.exe -v
clang version 8.0.1 (tags/RELEASE_801/final)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\LLVM-8.0.1\bin

_______________________________________________
cfe-dev mailing list
[hidden email]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: clang-9 'no such file or directory' with Windows mapped drive and relative path

Kristóf Umann via cfe-dev
Hi Jeroen and Bruno,

On Tue, Sep 3, 2019 at 10:41 AM Jeroen Dobbelaere via cfe-dev
<[hidden email]> wrote:

>
> Hi all,
>
> we noticed a problem with the upcoming clang-9 on windows.
> When working on a mapped network drive, clang-9 does not seem to find files relative to the 'current directory'.
> clang-8 does not show this problem.
>
> Following steps (see below) can be used to reproduce this. We tested on a Windows Server 2016 machine.
>
> Did anybody else see this behavior ?

I've filed https://bugs.llvm.org/show_bug.cgi?id=43204 to track this,
and started a bisection to see where the behaviour changed.

Thanks,
Hans
_______________________________________________
cfe-dev mailing list
[hidden email]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev