RE: Windows: cannot create here-doc
Tamar I have good news. After giving my computer a rest while I was on holiday, and rebooting it, everything seems to be working fine. I have no idea what was going wrong, but it’s not going wrong any more! I’ll keep you posted. Simon From: Phyx <loneti...@gmail.com> Sent: 04 April 2018 23:35 To: Simon Peyton Jones <simo...@microsoft.com> Cc: ghc-devs <ghc-devs@haskell.org> Subject: Re: Windows: cannot create here-doc Hi Simon, This one is very strange, from the error and the fact that it continues it looks like whatever TEMP and TMP are pointing to are not always available or some locking issue is going on. I would try running ProcMon https://docs.microsoft.com/en-us/sysinternals/downloads/procmon<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsysinternals%2Fdownloads%2Fprocmon=02%7C01%7Csimonpj%40microsoft.com%7C9c2f171f6cd6403a9af308d59a7c689f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636584781498338359=2g7FSObFw5Df%2FIw%2BiDA%2Fnf2xLkm%2FhYHbd35hSdN5gDg%3D=0> and filtering paths to whatever TEMP and TMP are set to. In the dialog that opens when you run it, select in the first box path, select the "starts with" condition then enter the Windows version of the path in the third one. Make sure the final box is set to "Include" and press add. Then try again. Once it fails, stop capturing (File -> click on "capture events" to unselect). This should contain the accesses to things in your TEMP and why it failed. (If TEMP contains a unix path you can get a windows one with e.g cygpath -w $TEMP) Once we know more can figure out what's going on. Thanks, Tamar On Wed, Apr 4, 2018 at 10:17 PM, Simon Peyton Jones <simo...@microsoft.com<mailto:simo...@microsoft.com>> wrote: Tamar I think your suggestion of adding # Set user-defined locale export LANG=$(locale -uU) worked. No more perl messages. Still having various troubles… Here’s the current one (log below). I’m getting lots of ./configure: line 2534: cannot create temp file for here-document: Device or resource busy And finally checking whether the C compiler works... no sed: can't read conftest.c: No such file or directory configure: error: in `/c/code/HEAD': configure: error: C compiler cannot create executables I have environment variables TEMP and TMP set. Oddly, re-running configure gets further – see second log below. All deeply strange. Thanks Simon Log 1: first run of ‘sh validate –fast’ Creating libraries/array/ghc.mk<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fghc.mk=02%7C01%7Csimonpj%40microsoft.com%7C9c2f171f6cd6403a9af308d59a7c689f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636584781498338359=7NXLypOIwkrg0v18BxOnBM7we3ODXgD1YguzhcRoveU%3D=0> Creating libraries/base/ghc.mk<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fghc.mk=02%7C01%7Csimonpj%40microsoft.com%7C9c2f171f6cd6403a9af308d59a7c689f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636584781498338359=7NXLypOIwkrg0v18BxOnBM7we3ODXgD1YguzhcRoveU%3D=0> Creating libraries/binary/ghc.mk<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fghc.mk=02%7C01%7Csimonpj%40microsoft.com%7C9c2f171f6cd6403a9af308d59a7c689f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636584781498338359=7NXLypOIwkrg0v18BxOnBM7we3ODXgD1YguzhcRoveU%3D=0> Creating libraries/bytestring/ghc.mk<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fghc.mk=02%7C01%7Csimonpj%40microsoft.com%7C9c2f171f6cd6403a9af308d59a7c689f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636584781498338359=7NXLypOIwkrg0v18BxOnBM7we3ODXgD1YguzhcRoveU%3D=0> Creating libraries/Cabal/Cabal/ghc.mk<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fghc.mk=02%7C01%7Csimonpj%40microsoft.com%7C9c2f171f6cd6403a9af308d59a7c689f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636584781498338359=7NXLypOIwkrg0v18BxOnBM7we3ODXgD1YguzhcRoveU%3D=0> Creating libraries/containers/ghc.mk<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fghc.mk=02%7C01%7Csimonpj%40microsoft.com%7C9c2f171f6cd6403a9af308d59a7c689f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636584781498338359=7NXLypOIwkrg0v18BxOnBM7we3ODXgD1YguzhcRoveU%3D=0> Creating libraries/deepseq/ghc.mk<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fghc.mk=02%7C01%7Csimonpj%40microsoft.com%7C9c2f171f6cd6403a9af308d59a7c689f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636584781498338359=7NXLypOIwkrg0v18BxOnBM7we3ODXgD1YguzhcRoveU%3D=0> Creating libraries/directory/ghc.mk<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fghc.mk=02%7C01%7Csimonpj%40microsoft.com%7C9c2f171f6cd6403a9af308d59a7c689f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636584781498338359=7NXLypOIwkrg0v18BxOnBM7we3ODXgD1YguzhcRoveU%3D=0> Creating libraries/dph/dph-base/ghc.mk<https://na01.safeli
Re: Windows: cannot create here-doc
Hi Simon, This one is very strange, from the error and the fact that it continues it looks like whatever TEMP and TMP are pointing to are not always available or some locking issue is going on. I would try running ProcMon https://docs.microsoft.com/en-us/sysinternals/downloads/procmon and filtering paths to whatever TEMP and TMP are set to. In the dialog that opens when you run it, select in the first box path, select the "starts with" condition then enter the Windows version of the path in the third one. Make sure the final box is set to "Include" and press add. Then try again. Once it fails, stop capturing (File -> click on "capture events" to unselect). This should contain the accesses to things in your TEMP and why it failed. (If TEMP contains a unix path you can get a windows one with e.g cygpath -w $TEMP) Once we know more can figure out what's going on. Thanks, Tamar On Wed, Apr 4, 2018 at 10:17 PM, Simon Peyton Joneswrote: > Tamar > > I think your suggestion of adding > > # Set user-defined locale > export LANG=$(locale -uU) > > worked. No more perl messages. > > Still having various troubles… > > Here’s the current one (log below). I’m getting lots of > >./configure: line 2534: cannot create temp file for here-document: > Device or resource busy > > And finally > > checking whether the C compiler works... no > > sed: can't read conftest.c: No such file or directory > > configure: error: in `/c/code/HEAD': > > configure: error: C compiler cannot create executables > > I have environment variables TEMP and TMP set. > > Oddly, re-running configure gets further – see second log below. > > All deeply strange. > > Thanks > > Simon > > > > *Log 1: first run of ‘sh validate –fast’* > > Creating libraries/array/ghc.mk > > Creating libraries/base/ghc.mk > > Creating libraries/binary/ghc.mk > > Creating libraries/bytestring/ghc.mk > > Creating libraries/Cabal/Cabal/ghc.mk > > Creating libraries/containers/ghc.mk > > Creating libraries/deepseq/ghc.mk > > Creating libraries/directory/ghc.mk > > Creating libraries/dph/dph-base/ghc.mk > > Creating libraries/dph/dph-prim-interface/ghc.mk > > Creating libraries/dph/dph-prim-seq/ghc.mk > > Creating libraries/dph/dph-prim-par/ghc.mk > > Creating libraries/dph/dph-lifted-base/ghc.mk > > Creating libraries/dph/dph-lifted-boxed/ghc.mk > > Creating libraries/dph/dph-lifted-copy/ghc.mk > > Creating libraries/dph/dph-lifted-vseg/ghc.mk > > Creating libraries/filepath/ghc.mk > > Creating libraries/ghc-boot/ghc.mk > > Creating libraries/ghc-boot-th/ghc.mk > > Creating libraries/ghc-compact/ghc.mk > > Creating libraries/ghc-prim/ghc.mk > > Creating libraries/ghci/ghc.mk > > Creating libraries/haskeline/ghc.mk > > Creating libraries/hpc/ghc.mk > > Creating libraries/integer-gmp/ghc.mk > > Creating libraries/integer-simple/ghc.mk > > Creating libraries/mtl/ghc.mk > > Creating libraries/parallel/ghc.mk > > Creating libraries/parsec/ghc.mk > > Creating libraries/pretty/ghc.mk > > Creating libraries/primitive/ghc.mk > > Creating libraries/process/ghc.mk > > Creating libraries/random/ghc.mk > > Creating libraries/stm/ghc.mk > > Creating libraries/template-haskell/ghc.mk > > Creating libraries/terminfo/ghc.mk > > Creating libraries/text/ghc.mk > > Creating libraries/time/ghc.mk > > Creating libraries/transformers/ghc.mk > > Creating libraries/unix/ghc.mk > > Creating libraries/vector/ghc.mk > > Creating libraries/Win32/ghc.mk > > Creating libraries/xhtml/ghc.mk > > Booting . > > Booting libraries/base/ > > Booting libraries/directory/ > > Booting libraries/ghc-prim/ > > Booting libraries/integer-gmp/ > > Booting libraries/process/ > > Booting libraries/terminfo/ > > Booting libraries/time/ > > Booting libraries/unix/ > > *./configure: line 2534: cannot create temp file for here-document: Device > or resource busy* > > checking for gfind... no > > checking for find... /usr/bin/find > > checking for sort... /usr/bin/sort > > checking for GHC version date... inferred 8.5.20180402 > > checking for GHC Git commit id... inferred 6ae53e4f4af1a156a875e05a2c12ef > eaa2e7d902 > > checking for ghc... /c/fp/HP-8.2.2/bin/ghc > > checking version of ghc... 8.2.2 > > GHC path canonicalised to: c:/fp/HP-8.2.2/bin/ghc > > checking build system type... x86_64-pc-mingw64 > > checking host system type... x86_64-pc-mingw64 > > checking target system type... x86_64-pc-mingw64 > > Build platform inferred as: x86_64-unknown-mingw32 > > Host platform inferred as: x86_64-unknown-mingw32 > > Target platform inferred as: x86_64-unknown-mingw32 > > GHC build : x86_64-unknown-mingw32 > > GHC host : x86_64-unknown-mingw32 > > GHC target : x86_64-unknown-mingw32 > > LLVM target: x86_64-unknown-windows > > checking for path to top of build tree... C:/code/HEAD > > configure: Checking for Windows toolchain tarballs... > > configure: Extracting Windows toolchain from archives (may take a while)... > > configure: In-tree MingW-w64 tree created > > checking for
Windows: cannot create here-doc
Tamar I think your suggestion of adding # Set user-defined locale export LANG=$(locale -uU) worked. No more perl messages. Still having various troubles... Here's the current one (log below). I'm getting lots of ./configure: line 2534: cannot create temp file for here-document: Device or resource busy And finally checking whether the C compiler works... no sed: can't read conftest.c: No such file or directory configure: error: in `/c/code/HEAD': configure: error: C compiler cannot create executables I have environment variables TEMP and TMP set. Oddly, re-running configure gets further - see second log below. All deeply strange. Thanks Simon Log 1: first run of 'sh validate -fast' Creating libraries/array/ghc.mk Creating libraries/base/ghc.mk Creating libraries/binary/ghc.mk Creating libraries/bytestring/ghc.mk Creating libraries/Cabal/Cabal/ghc.mk Creating libraries/containers/ghc.mk Creating libraries/deepseq/ghc.mk Creating libraries/directory/ghc.mk Creating libraries/dph/dph-base/ghc.mk Creating libraries/dph/dph-prim-interface/ghc.mk Creating libraries/dph/dph-prim-seq/ghc.mk Creating libraries/dph/dph-prim-par/ghc.mk Creating libraries/dph/dph-lifted-base/ghc.mk Creating libraries/dph/dph-lifted-boxed/ghc.mk Creating libraries/dph/dph-lifted-copy/ghc.mk Creating libraries/dph/dph-lifted-vseg/ghc.mk Creating libraries/filepath/ghc.mk Creating libraries/ghc-boot/ghc.mk Creating libraries/ghc-boot-th/ghc.mk Creating libraries/ghc-compact/ghc.mk Creating libraries/ghc-prim/ghc.mk Creating libraries/ghci/ghc.mk Creating libraries/haskeline/ghc.mk Creating libraries/hpc/ghc.mk Creating libraries/integer-gmp/ghc.mk Creating libraries/integer-simple/ghc.mk Creating libraries/mtl/ghc.mk Creating libraries/parallel/ghc.mk Creating libraries/parsec/ghc.mk Creating libraries/pretty/ghc.mk Creating libraries/primitive/ghc.mk Creating libraries/process/ghc.mk Creating libraries/random/ghc.mk Creating libraries/stm/ghc.mk Creating libraries/template-haskell/ghc.mk Creating libraries/terminfo/ghc.mk Creating libraries/text/ghc.mk Creating libraries/time/ghc.mk Creating libraries/transformers/ghc.mk Creating libraries/unix/ghc.mk Creating libraries/vector/ghc.mk Creating libraries/Win32/ghc.mk Creating libraries/xhtml/ghc.mk Booting . Booting libraries/base/ Booting libraries/directory/ Booting libraries/ghc-prim/ Booting libraries/integer-gmp/ Booting libraries/process/ Booting libraries/terminfo/ Booting libraries/time/ Booting libraries/unix/ ./configure: line 2534: cannot create temp file for here-document: Device or resource busy checking for gfind... no checking for find... /usr/bin/find checking for sort... /usr/bin/sort checking for GHC version date... inferred 8.5.20180402 checking for GHC Git commit id... inferred 6ae53e4f4af1a156a875e05a2c12efeaa2e7d902 checking for ghc... /c/fp/HP-8.2.2/bin/ghc checking version of ghc... 8.2.2 GHC path canonicalised to: c:/fp/HP-8.2.2/bin/ghc checking build system type... x86_64-pc-mingw64 checking host system type... x86_64-pc-mingw64 checking target system type... x86_64-pc-mingw64 Build platform inferred as: x86_64-unknown-mingw32 Host platform inferred as: x86_64-unknown-mingw32 Target platform inferred as: x86_64-unknown-mingw32 GHC build : x86_64-unknown-mingw32 GHC host : x86_64-unknown-mingw32 GHC target : x86_64-unknown-mingw32 LLVM target: x86_64-unknown-windows checking for path to top of build tree... C:/code/HEAD configure: Checking for Windows toolchain tarballs... configure: Extracting Windows toolchain from archives (may take a while)... configure: In-tree MingW-w64 tree created checking for genlib... no configure: Making in-tree perl tree configure: In-tree perl tree created checking for -windres... no checking for windres... windres checking for -dllwrap... no checking for dllwrap... dllwrap checking for -objdump... C:/code/HEAD/inplace/mingw/bin/objdump.exe ./configure: line 5421: cannot create temp file for here-document: Device or resource busy checking whether the C compiler works... no sed: can't read conftest.c: No such file or directory configure: error: in `/c/code/HEAD': configure: error: C compiler cannot create executables See `config.log' for more details $ Log 2: run of "./configure" $ ./configure ./configure: line 2542: cannot create temp file for here-document: Device or resource busy configure: loading site script /usr/local/etc/config.site checking for gfind... no checking for find... /usr/bin/find checking for sort... /usr/bin/sort checking for GHC version date... inferred 8.5.20180402 checking for GHC Git commit id... inferred 6ae53e4f4af1a156a875e05a2c12efeaa2e7d902 checking for ghc... /c/fp/HP-8.2.2/bin/ghc checking version of ghc... 8.2.2 GHC path canonicalised to: c:/fp/HP-8.2.2/bin/ghc checking build system type... x86_64-w64-mingw32 checking host system type... x86_64-w64-mingw32 checking target system