[cfe-dev] clang-9 'no such file or directory' with Windows mapped drive and relative path
Jeroen Dobbelaere via cfe-dev
cfe-dev at lists.llvm.org
Tue Sep 3 01:41:19 PDT 2019
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
More information about the cfe-dev
mailing list