Re: WSL2

2021-03-11 Thread Ben Gamari
Viktor Dukhovni writes: > On Thu, Mar 11, 2021 at 07:53:20PM +, Simon Peyton Jones via ghc-devs > wrote: > >> Voila > > Thanks! > >> /etc/nsswitch.conf group entry >> group: files systemd > > The main "suspicious" thing here (decoded traces below my signature) is > that the

RE: WSL2

2021-03-11 Thread Simon Peyton Jones via ghc-devs
OK thanks. Let's pursue this further on this ticket: https://gitlab.haskell.org/ghc/ghc/-/issues/19525 Simon | -Original Message- | From: ghc-devs On Behalf Of Viktor | Dukhovni | Sent: 11 March 2021 20:36 | To: ghc-devs@haskell.org | Subject: Re: WSL2 | | On Thu, Mar 11, 2021

Re: WSL2

2021-03-11 Thread Viktor Dukhovni
31 system, see below). So a failure return code is not surprising, because the answer is not authoritative, systemd might have answered differently if it had been possible to query it. It appears the WSL2 systems have a systemically misconfigured "nsswitch.conf" that wants to query "group&quo

RE: WSL2

2021-03-11 Thread Simon Peyton Jones via ghc-devs
@haskell.org | Subject: Re: WSL2 | | On Thu, Mar 11, 2021 at 12:21:15PM +, Simon Peyton Jones via ghc- | devs wrote: | | > Like Tom, I'm not following the details, but if you want me to run | > some commands and send you the output I can do that. Just send the | > script! |

Re: WSL2

2021-03-11 Thread Viktor Dukhovni
On Thu, Mar 11, 2021 at 12:21:15PM +, Simon Peyton Jones via ghc-devs wrote: > Like Tom, I'm not following the details, but if you want me to run > some commands and send you the output I can do that. Just send the > script! See attached. If any of the prerequisite shell utilities are not

RE: WSL2

2021-03-11 Thread Simon Peyton Jones via ghc-devs
: WSL2 | | On Thu, Mar 11, 2021 at 06:19:46AM -0500, Viktor Dukhovni wrote: | > On Thu, Mar 11, 2021 at 06:05:04AM -0500, Viktor Dukhovni wrote: | > > So the question is why the lookup is failing. To that end | compiling | > > a tracing with "strace" the below C prog

RE: WSL2

2021-03-11 Thread Simon Peyton Jones via ghc-devs
Like Tom, I'm not following the details, but if you want me to run some commands and send you the output I can do that. Just send the script! | -Original Message- | From: ghc-devs On Behalf Of Tom Ellis | Sent: 11 March 2021 11:41 | To: ghc-devs@haskell.org | Subject: Re: WSL2

Re: WSL2

2021-03-11 Thread Viktor Dukhovni
> On Mar 11, 2021, at 9:41 AM, Tom Ellis > wrote: > > I'm not really following the details, but is this useful to you? > > % cat g.c && cc g.c -o g && ./g > #include > #include > #include > #include > > int main(int argc, char **argv) > { >char buf[1024]; >struct group g, *p; >

Re: WSL2

2021-03-11 Thread Tom Ellis
On Thu, Mar 11, 2021 at 06:19:46AM -0500, Viktor Dukhovni wrote: > On Thu, Mar 11, 2021 at 06:05:04AM -0500, Viktor Dukhovni wrote: > > So the question is why the lookup is failing. To that end compiling a > > tracing with "strace" the below C program should tell the story: [...] > To experiment

Re: WSL2

2021-03-11 Thread Viktor Dukhovni
On Thu, Mar 11, 2021 at 06:05:04AM -0500, Viktor Dukhovni wrote: > So the question is why the lookup is failing. To that end compiling a > tracing with "strace" the below C program should tell the story: > > #include > #include > #include > #include > > int main(int

Re: WSL2

2021-03-11 Thread Viktor Dukhovni
On Thu, Mar 11, 2021 at 10:19:52AM +, Tom Ellis wrote: > SPJ Wrote: > > I've just installed WSL2 and built GHC. I get this (single) > > validation failure in libraries/unix/tests/getGroupEntryForName. It > > seems to be just an error message wibble, but I can't push a

Re: WSL2

2021-03-11 Thread Tom Ellis
SPJ Wrote: > I've just installed WSL2 and built GHC. I get this (single) > validation failure in libraries/unix/tests/getGroupEntryForName. It > seems to be just an error message wibble, but I can't push a change > to master because that'll affect everyone else. Interesting, I've onl

RE: WSL2

2021-03-10 Thread Simon Peyton Jones via ghc-devs
| Hmm, this is quite unfortunate. My recollection is that WSL2 by | default runs an Ubuntu image, so I'm somewhat surprised that this is | failing. bash$ uname -a Linux MSRC-3645512 5.4.72-microsoft-standard-WSL2 #1 SMP Wed Oct 28 23:40:43 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux bash$ cat

Re: WSL2

2021-03-10 Thread Ben Gamari
Simon Peyton Jones via ghc-devs writes: > Friends > I've just installed WSL2 and built GHC. > I get this (single) validation failure in > libraries/unix/tests/getGroupEntryForName. It seems to be just an > error message wibble, but I can't push a change to master because &

WSL2

2021-03-09 Thread Simon Peyton Jones via ghc-devs
Friends I've just installed WSL2 and built GHC. I get this (single) validation failure in libraries/unix/tests/getGroupEntryForName. It seems to be just an error message wibble, but I can't push a change to master because that'll affect everyone else. Any ideas? Simon => 1 of 1 [0, 0