[petsc-dev] WSL upgrade

Patrick Sanan patrick.sanan at gmail.com
Thu Apr 13 00:56:15 CDT 2017


Satish Balay <balay at mcs.anl.gov> schrieb am Do. 13. Apr. 2017 um 05:48:

> 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.'
>
I haven't been following this thread carefully, but 'sixeof.c' jumped out
at me.

>
> 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$
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20170413/46067758/attachment.html>


More information about the petsc-dev mailing list