[petsc-dev] WSL upgrade

Satish Balay balay at mcs.anl.gov
Wed Apr 12 22:48:45 CDT 2017


On Wed, 12 Apr 2017, Jed Brown wrote:

> >> > Also Note:
> >> > https://blogs.msdn.microsoft.com/commandline/2016/10/19/interop-between-windows-and-bash/
> >> > "Windows apps should NOT be used to open files in the Linux filesystem"
> >> 
> >> That blog is six months old and can't still apply considering that the example has
> >> 
> >>   echo hello > hello.txt
> >>   notepad.exe hello.txt
> >
> > Ok - here is the difference between attempting a compile [with MS cl] on 'linux fs' vs 'windows fs'
> >
> > balay at mb:~/petsc/src/benchmarks$ pwd
> > /home/balay/petsc/src/benchmarks
> > balay at mb:~/petsc/src/benchmarks$ cl.exe sizeof.c
> > Unable to translate current working directory. Using C:\Program Files (x86)\Microsoft Visual Studio\2017\Community
> 
> This is the error message that old blog post refers to
> 
>   https://blogs.msdn.microsoft.com/commandline/2016/10/19/interop-between-windows-and-bash/
> 
> and the new post runs exactly the same command without error.  Can you
> run "notepad.exe sizeof.c"?

I get the same error as the blog..

On shell: 'Unable to translate current working directory. Using C:\Program Files (x86)\Microsoft Visual Studio\2017\Community'
on popup window: 'Cannot find the sixeof.c file.'

Satish

> 
> > Microsoft (R) C/C++ Optimizing Compiler Version 19.10.25019 for x64
> > Copyright (C) Microsoft Corporation.  All rights reserved.
> >
> > sizeof.c
> > c1: fatal error C1083: Cannot open source file: 'sizeof.c': No such file or directory
> > balay at mb:~/petsc/src/benchmarks$ cd /mnt/c/Users/balay/Documents/petsc/src/benchmarks/
> > balay at mb:/mnt/c/Users/balay/Documents/petsc/src/benchmarks$ cl.exe sizeof.c
> > Microsoft (R) C/C++ Optimizing Compiler Version 19.10.25019 for x64
> > Copyright (C) Microsoft Corporation.  All rights reserved.
> >
> > sizeof.c
> > Microsoft (R) Incremental Linker Version 14.10.25019.0
> > Copyright (C) Microsoft Corporation.  All rights reserved.
> >
> > /out:sizeof.exe
> > sizeof.obj
> > balay at mb:/mnt/c/Users/balay/Documents/petsc/src/benchmarks$



More information about the petsc-dev mailing list