[petsc-dev] WSL upgrade

Jed Brown jed at jedbrown.org
Wed Apr 12 22:55:54 CDT 2017


Satish Balay <balay at mcs.anl.gov> writes:

> 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..

The new one runs that exact command successfully.  See

  Windows <-> Linux Interop

https://blogs.msdn.microsoft.com/commandline/2017/04/11/windows-10-creators-update-whats-new-in-bashwsl-windows-console/

Something must be configured wrong.

>
> 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$
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20170412/be4d6baf/attachment.sig>


More information about the petsc-dev mailing list