As you’ll see the directory is empty when the crash happens. And yes the folder is excluded.
Also this behaviour is new.
Simon
From: Phyx [mailto:lonetiger@gmail.com]
Sent: 04 October 2017 14:17
To: Simon Peyton Jones <simonpj@microsoft.com>; ghc-devs@haskell.org
Subject: Re: More windows
This looks like a file lock issue. Just to double check, but do you have the build folder excluded from the antivirus scanner?
On Wed, Oct 4, 2017, 13:57 Simon Peyton Jones via ghc-devs <ghc-devs@haskell.org> wrote:
Now in my Windows build, staring with “sh validate –fast –no-clean” I get
[230 of 232] Compiling Distribution.PackageDescription.Parsec ( libraries\Cabal\Cabal\Distribution\PackageDescription\Parsec.hs, bootstrapping\Distribution\PackageDescription\Parsec.o )
[231 of 232] Compiling Distribution.Simple ( libraries\Cabal\Cabal\Distribution\Simple.hs, bootstrapping\Distribution\Simple.o )
[232 of 232] Compiling Main ( utils\ghc-cabal\Main.hs, bootstrapping\Main.o )
Linking utils/ghc-cabal/dist/build/tmp/ghc-cabal.exe ...
"inplace/lib/bin/touchy.exe" utils/ghc-cabal/dist/build/tmp/ghc-cabal.exe
Unable to open utils/ghc-cabal/dist/build/tmp/ghc-cabal.exe
utils/genprimopcode/ghc.mk:19: utils/genprimopcode/dist/package-data.mk: No such file or directory
make[1]: *** [utils/ghc-cabal/ghc.mk:57: utils/ghc-cabal/dist/build/tmp/ghc-cabal.exe] Error 1
make[1]: *** Deleting file 'utils/ghc-cabal/dist/build/tmp/ghc-cabal.exe'
make: *** [Makefile:123: all] Error 2
Simply repeating, thus “sh validate –fast”, I then get the same error
/c/code/HEAD$ ls -l utils/ghc-cabal/dist/build/tmp/
total 0
/c/code/HEAD$ sh validate --fast --no-clean
using THREADS=5
make: Entering directory '/c/code/HEAD/utils/checkUniques'
./check-uniques.py ../..
make: Leaving directory '/c/code/HEAD/utils/checkUniques'
===--- building phase 0
make --no-print-directory -f ghc.mk phase=0 phase_0_builds
"c:/fp/ghc-8.0.2/bin/ghc.exe" -O0 -H64m -Wall \
-optc-Wall -optc-Werror -optc-fno-stack-protector \
\
-hide-all-packages \
-package ghc-prim -package base -package array -package transformers -package time -package containers -package bytestring -package deepseq -package process -package pretty -package directory -package Win32 \
--make utils/ghc-cabal/Main.hs -o utils/ghc-cabal/dist/build/tmp/ghc-cabal.exe \
-no-user-package-db \
-Wall -fno-warn-unused-imports -fno-warn-warnings-deprecations \
-DCABAL_VERSION=2,0,0,2 \
-DCABAL_PARSEC \
-DBOOTSTRAPPING \
-odir bootstrapping \
-hidir bootstrapping \
bootstrapping/Cabal/Distribution/Parsec/Lexer.hs \
-ilibraries/Cabal/Cabal \
-ilibraries/binary/src \
-ilibraries/filepath \
-ilibraries/hpc \
-ilibraries/mtl \
-ilibraries/text \
libraries/text/cbits/cbits.c \
-Ilibraries/text/include \
-ilibraries/parsec \
\
Linking utils/ghc-cabal/dist/build/tmp/ghc-cabal.exe ...
"inplace/lib/bin/touchy.exe" utils/ghc-cabal/dist/build/tmp/ghc-cabal.exe
Unable to open utils/ghc-cabal/dist/build/tmp/ghc-cabal.exe
make[1]: *** [utils/ghc-cabal/ghc.mk:57: utils/ghc-cabal/dist/build/tmp/ghc-cabal.exe] Error 1
make[1]: *** Deleting file 'utils/ghc-cabal/dist/build/tmp/ghc-cabal.exe'
make: *** [Makefile:123: all] Error 2
But trying “sh validate –fast” once more succeeds:
/c/code/HEAD$ sh validate --fast --no-clean
using THREADS=5
make: Entering directory '/c/code/HEAD/utils/checkUniques'
./check-uniques.py ../..
make: Leaving directory '/c/code/HEAD/utils/checkUniques'
===--- building phase 0
make --no-print-directory -f ghc.mk phase=0 phase_0_builds
"c:/fp/ghc-8.0.2/bin/ghc.exe" -O0 -H64m -Wall \
-optc-Wall -optc-Werror -optc-fno-stack-protector \
\
-hide-all-packages \
-package ghc-prim -package base -package array -package transformers -package time -package containers -package bytestring -package deepseq -package process -package pretty -package directory -package Win32 \
--make utils/ghc-cabal/Main.hs -o utils/ghc-cabal/dist/build/tmp/ghc-cabal.exe \
-no-user-package-db \
-Wall -fno-warn-unused-imports -fno-warn-warnings-deprecations \
-DCABAL_VERSION=2,0,0,2 \
-DCABAL_PARSEC \
-DBOOTSTRAPPING \
-odir bootstrapping \
-hidir bootstrapping \
bootstrapping/Cabal/Distribution/Parsec/Lexer.hs \
-ilibraries/Cabal/Cabal \
-ilibraries/binary/src \
-ilibraries/filepath \
-ilibraries/hpc \
-ilibraries/mtl \
-ilibraries/text \
libraries/text/cbits/cbits.c \
-Ilibraries/text/include \
-ilibraries/parsec \
\
Linking utils/ghc-cabal/dist/build/tmp/ghc-cabal.exe ...
"inplace/lib/bin/touchy.exe" utils/ghc-cabal/dist/build/tmp/ghc-cabal.exe
"cp" utils/ghc-cabal/dist/build/tmp/ghc-cabal.exe inplace/bin/ghc-cabal.exe
"inplace/bin/ghc-cabal.exe" configure libraries/binary dist-boot --with-ghc="c:/fp/ghc-8.0.2/bin/ghc.exe" --with-ghc-pkg="c:/fp/ghc-8.0.2/bin/ghc-pkg" --package-db=C:/code/HEAD/libraries/bootstrapping.conf --disable-library-for-ghci --enable-library-vanilla --enable-library-for-ghci --disable-library-profiling --disable-shared --with-hscolour="/c/fp/HP-8.0.1/lib/extralibs/bin/HsColour" --configure-option=CFLAGS="-Wall -fno-stack-protector -Wno-error=inline" --configure-option=LDFLAGS=" " --configure-option=CPPFLAGS=" " --gcc-options="-Wall -fno-stack-protector -Wno-error=inline " --constraint "binary == 0.8.5.1" --constraint "text == 1.2.3.0" --constraint "transformers == 0.5.4.0" --constraint "mtl == 2.2.2" --constraint "parsec == 3.1.12" --constraint "Cabal == 2.0.0.2" --constraint "hpc == 0.6.0.3" --constraint "ghc-boot-th == 8.3" --constraint "ghc-boot == 8.3" --constraint "template-haskell == 2.13.0.0" --constraint "ghci == 8.3" --with-gcc="C:/fp/ghc-8.0.2/lib/../mingw/bin/gcc.exe" --with-ld="C:/fp/ghc-8.0.2/lib/../mingw/bin/ld.exe" --with-ar="C:/fp/ghc-8.0.2/lib/../mingw/bin/ar.exe" --with-alex="/c/fp/HP-8.0.1/lib/extralibs/bin/alex" --with-happy="/c/fp/HP-8.0.1/lib/extralibs/bin/happy"
…etc etc
I’m stumped.
Simon
_______________________________________________
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs