haskell / haskell-ide-engine

The engine for haskell ide-integration. Not an IDE
BSD 3-Clause "New" or "Revised" License
2.38k stars 210 forks source link

Access violation in generated code when reading ffffffffffffffff #877

Closed giuliohome closed 6 years ago

giuliohome commented 6 years ago

I followed the installation guide and I'm getting the following error:

MyHome@MyHome-PC MINGW64 /C/haskell/ide/haskell-ide-engine (master)
$ stack install
[1 of 2] Compiling Main             ( C:\sr\setup-exe-src\setup-Z6RU0evB.hs, C:\sr\setup-exe-src\setup-Z6RU0evB.o )
[2 of 2] Compiling StackSetupShim   ( C:\sr\setup-exe-src\setup-shim-Z6RU0evB.hs, C:\sr\setup-exe-src\setup-shim-Z6RU0evB.o )
Linking C:\sr\setup-exe-cache\x86_64-windows\tmp-Cabal-simple_Z6RU0evB_2.2.0.1_ghc-8.4.3.exe ...
appar-0.1.4: configure
Diff-0.3.4: download
appar-0.1.4: build
auto-update-0.1.4: configure
auto-update-0.1.4: build
base-compat-0.9.3: configure
appar-0.1.4: copy/register
base-compat-0.9.3: build
Diff-0.3.4: configure
auto-update-0.1.4: copy/register
base-orphans-0.7: download
base-prelude-1.3: download
Diff-0.3.4: build
base-orphans-0.7: configure
base-prelude-1.3: configure
base-orphans-0.7: build
base-orphans-0.7: copy/register
Diff-0.3.4: copy/register
base-prelude-1.3: build
base16-bytestring-0.1.1.6: configure
base-prelude-1.3: copy/register
base64-bytestring-1.0.0.1: configure
base16-bytestring-0.1.1.6: build
basement-0.0.8: download
base16-bytestring-0.1.1.6: copy/register
base-compat-0.9.3: copy/register
base64-bytestring-1.0.0.1: build
basement-0.0.8: configure
basement-0.0.8: build
byteable-0.1.1: configure
base64-bytestring-1.0.0.1: copy/register
byteable-0.1.1: build
byteorder-1.0.4: configure
bytestring-builder-0.10.8.2.0: download
byteable-0.1.1: copy/register
byteorder-1.0.4: build
bytestring-builder-0.10.8.2.0: configure
byteorder-1.0.4: copy/register
bytestring-builder-0.10.8.2.0: build
call-stack-0.1.0: configure
cereal-0.5.7.0: download
bytestring-builder-0.10.8.2.0: copy/register
bsb-http-chunked-0.0.0.3: download
call-stack-0.1.0: build
cereal-0.5.7.0: configure
call-stack-0.1.0: copy/register
cereal-0.5.7.0: build
bsb-http-chunked-0.0.0.3: configure
bsb-http-chunked-0.0.0.3: build
clock-0.7.2: configure
bsb-http-chunked-0.0.0.3: copy/register
clock-0.7.2: build
cmdargs-0.10.20: download
cmdargs-0.10.20: configure
cmdargs-0.10.20: build
clock-0.7.2: copy/register
colour-2.3.4: configure
colour-2.3.4: build
cereal-0.5.7.0: copy/register
constrained-dynamic-0.1.0.0: download
constrained-dynamic-0.1.0.0: configure
constrained-dynamic-0.1.0.0: build
constrained-dynamic-0.1.0.0: copy/register
colour-2.3.4: copy/register
cryptohash-sha256-0.11.101.0: download
cryptohash-sha256-0.11.101.0: configure
czipwith-1.0.1.0: download
cryptohash-sha256-0.11.101.0: build
czipwith-1.0.1.0: configure
cmdargs-0.10.20: copy/register
czipwith-1.0.1.0: build
data-default-class-0.1.2.0: configure
cryptohash-sha256-0.11.101.0: copy/register
data-default-class-0.1.2.0: build
czipwith-1.0.1.0: copy/register
deque-0.2.1: download
deque-0.2.1: configure
data-default-class-0.1.2.0: copy/register
dlist-0.8.0.5: download
deque-0.2.1: build
dlist-0.8.0.5: configure
deque-0.2.1: copy/register
dlist-0.8.0.5: build
data-default-instances-containers-0.0.1: configure
easy-file-0.2.2: download
dlist-0.8.0.5: copy/register
easy-file-0.2.2: configure
data-default-instances-containers-0.0.1: build
data-default-instances-containers-0.0.1: copy/register
ed25519-0.0.5.0: download
data-default-instances-dlist-0.0.1: configure
easy-file-0.2.2: build
data-default-instances-dlist-0.0.1: build
ed25519-0.0.5.0: configure
easy-file-0.2.2: copy/register
data-default-instances-dlist-0.0.1: copy/register
ed25519-0.0.5.0: build
extra-1.6.12: download
executable-path-0.0.3.1: download
executable-path-0.0.3.1: configure
executable-path-0.0.3.1: build
extra-1.6.12: configure
executable-path-0.0.3.1: copy/register
extra-1.6.12: build
fclabels-2.0.3.3: download
fclabels-2.0.3.3: configure
ed25519-0.0.5.0: copy/register
file-embed-0.0.11: download
fclabels-2.0.3.3: build
file-embed-0.0.11: configure
file-embed-0.0.11: build
file-embed-0.0.11: copy/register
extra-1.6.12: copy/register
fingertree-0.1.4.1: download
fingertree-0.1.4.1: configure
fmlist-0.9.2: download
basement-0.0.8: copy/register
fingertree-0.1.4.1: build
fmlist-0.9.2: configure
foundation-0.0.21: download
fmlist-0.9.2: build
foundation-0.0.21: configure
fclabels-2.0.3.3: copy/register
fmlist-0.9.2: copy/register
gitrev-1.3.1: download
foundation-0.0.21: build
gitrev-1.3.1: configure
haddock-library-1.6.0: download
gitrev-1.3.1: build
haddock-library-1.6.0: configure
gitrev-1.3.1: copy/register
fingertree-0.1.4.1: copy/register
haddock-library-1.6.0: build
hourglass-0.2.12: download
hourglass-0.2.12: configure
hscolour-1.24.4: download
hourglass-0.2.12: build
hscolour-1.24.4: configure
hscolour-1.24.4: build
hourglass-0.2.12: copy/register
ilist-0.3.1.0: download
ilist-0.3.1.0: configure
ilist-0.3.1.0: build
ilist-0.3.1.0: copy/register
integer-logarithms-1.0.2.2: download
integer-logarithms-1.0.2.2: configure
integer-logarithms-1.0.2.2: build
integer-logarithms-1.0.2.2: copy/register
io-storage-0.3: download
io-storage-0.3: configure
haddock-library-1.6.0: copy/register
io-storage-0.3: build
js-flot-0.8.3: download
js-flot-0.8.3: configure
io-storage-0.3: copy/register
hscolour-1.24.4: copy/register
js-jquery-3.3.1: download
js-jquery-3.3.1: configure
js-flot-0.8.3: build
microlens-0.4.9.1: download
js-jquery-3.3.1: build
microlens-0.4.9.1: configure
js-flot-0.8.3: copy/register
js-jquery-3.3.1: copy/register
mintty-0.1.2: download
microlens-0.4.9.1: build
mintty-0.1.2: configure
mmap-0.5.9: download
mintty-0.1.2: build
mmap-0.5.9: configure
mintty-0.1.2: copy/register
microlens-0.4.9.1: copy/register
ansi-terminal-0.8.1: download
echo-0.1.3: download
mmap-0.5.9: build
ansi-terminal-0.8.1: configure
ansi-terminal-0.8.1: build
echo-0.1.3: configure
echo-0.1.3: build
mmap-0.5.9: copy/register
echo-0.1.3: copy/register
old-locale-1.0.0.7: configure
network-2.6.3.6: download
old-locale-1.0.0.7: build
network-2.6.3.6: configure
old-locale-1.0.0.7: copy/register
foundation-0.0.21: copy/register
ansi-terminal-0.8.1: copy/register
memory-0.14.16: download
network-2.6.3.6: build
data-default-instances-old-locale-0.0.1: configure
memory-0.14.16: configure
data-default-instances-old-locale-0.0.1: build
data-default-instances-old-locale-0.0.1: copy/register
memory-0.14.16: build
ansi-wl-pprint-0.6.8.2: configure
ansi-wl-pprint-0.6.8.2: build
data-default-0.7.1.1: configure
data-default-0.7.1.1: build
ansi-wl-pprint-0.6.8.2: copy/register
old-time-1.1.0.3: configure
data-default-0.7.1.1: copy/register
parallel-3.2.2.0: download
memory-0.14.16: copy/register
network-2.6.3.6: copy/register
cryptonite-0.25: download
old-time-1.1.0.3: build
parallel-3.2.2.0: configure
parallel-3.2.2.0: build
asn1-types-0.3.2: configure
asn1-types-0.3.2: build
cryptonite-0.25: configure
parallel-3.2.2.0: copy/register
cryptonite-0.25: build
hslogger-1.2.12: download
hslogger-1.2.12: configure
asn1-types-0.3.2: copy/register
old-time-1.1.0.3: copy/register
asn1-encoding-0.9.5: configure
hslogger-1.2.12: build
iproute-1.7.5: download
asn1-encoding-0.9.5: build
iproute-1.7.5: configure
iproute-1.7.5: build
hslogger-1.2.12: copy/register
asn1-encoding-0.9.5: copy/register
parser-combinators-1.0.0: download
parser-combinators-1.0.0: configure
parser-combinators-1.0.0: build
asn1-parse-0.9.4: configure
asn1-parse-0.9.4: build
parser-combinators-1.0.0: copy/register
iproute-1.7.5: copy/register
asn1-parse-0.9.4: copy/register
pem-0.2.4: download
pem-0.2.4: configure
primes-0.2.1.0: download
primitive-0.6.4.0: download
pem-0.2.4: build
primes-0.2.1.0: configure
pem-0.2.4: copy/register
primes-0.2.1.0: build
primitive-0.6.4.0: configure
primes-0.2.1.0: copy/register
random-1.1: configure
primitive-0.6.4.0: build
refact-0.3.0.2: download
random-1.1: build
refact-0.3.0.2: configure
refact-0.3.0.2: build
refact-0.3.0.2: copy/register
reflection-2.1.4: download
reflection-2.1.4: configure
random-1.1: copy/register
edit-distance-0.2.2.1: download
reflection-2.1.4: build
edit-distance-0.2.2.1: configure
edit-distance-0.2.2.1: build
primitive-0.6.4.0: copy/register
safe-0.3.17: download
safe-0.3.17: configure
reflection-2.1.4: copy/register
semigroups-0.18.5: download
edit-distance-0.2.2.1: copy/register
safe-0.3.17: build
semigroups-0.18.5: configure
semigroups-0.18.5: build
socks-0.5.6: configure
semigroups-0.18.5: copy/register
safe-0.3.17: copy/register
sorted-list-0.2.1.0: download
socks-0.5.6: build
sorted-list-0.2.1.0: configure
sorted-list-0.2.1.0: build
split-0.2.3.3: configure
sorted-list-0.2.1.0: copy/register
stm-2.4.5.1: download
split-0.2.3.3: build
stm-2.4.5.1: configure
split-0.2.3.3: copy/register
stm-2.4.5.1: build
strict-0.3.2: download
strict-0.3.2: configure
socks-0.5.6: copy/register
strict-0.3.2: build
stringsearch-0.3.6.6: configure
stm-2.4.5.1: copy/register
StateVar-1.1.1.1: download
stringsearch-0.3.6.6: build
StateVar-1.1.1.1: configure
strict-0.3.2: copy/register
stm-delay-0.1.1.1: download
StateVar-1.1.1.1: build
stm-delay-0.1.1.1: configure
StateVar-1.1.1.1: copy/register
stm-delay-0.1.1.1: build
stm-delay-0.1.1.1: copy/register
contravariant-1.5: download
contravariant-1.5: configure
fold-debounce-0.2.0.8: download
contravariant-1.5: build
fold-debounce-0.2.0.8: configure
fold-debounce-0.2.0.8: build
stringsearch-0.3.6.6: copy/register
fold-debounce-0.2.0.8: copy/register
contravariant-1.5: copy/register
tagged-0.8.6: download
tagged-0.8.6: configure
syb-0.7: download
tar-0.5.1.0: download
tagged-0.8.6: build
syb-0.7: configure
syb-0.7: build
tar-0.5.1.0: configure
tagged-0.8.6: copy/register
tar-0.5.1.0: build
text-1.2.3.1: download
text-1.2.3.1: configure
syb-0.7: copy/register
Access violation in generated code when reading ffffffffffffffff
giuliohome commented 6 years ago

Tried again from a cmd by issuing stack install again and the build process is stuck after a hour

←[0mghc-mod-5.9.0.0: copy/register←[0m
←[0mhaskell-lsp-0.8.0.0: copy/register←[0m
←[0mhie-plugin-api-0.2.2.0: configure (lib)←[0m
←[0mhie-plugin-api-0.2.2.0: build (lib)←[0m
←[0mhie-plugin-api-0.2.2.0: copy/register←[0m
←[0mBuilding all executables for `haskell-ide-engine' once. After a successful build of all of them, only specified exec
utables will be rebuilt.←[0m
←[0mhaskell-ide-engine-0.2.2.0: configure (lib + exe)←[0m
←[0mhaskell-ide-engine-0.2.2.0: build (lib + exe)←[0m
Progress 134/135: haskell-ide-engine-0.2.2.0
giuliohome commented 6 years ago

Finally tried with stack exec make -- build-all without success:

←[0mbifunctors-5.4.2: copy/register←[0m
←[0mprofunctors-5.2.1: download←[0m
←[0mprofunctors-5.2.1: configure←[0m
←[0mprofunctors-5.2.1: build←[0m
←[0muniplate-1.6.12: copy/register←[0m
←[0msemigroupoids-5.2.1: configure←[0m
←[0mprofunctors-5.2.1: copy/register←[0m
←[0msemigroupoids-5.2.1: build←[0m
←[0mvault-0.3.0.7: configure←[0m
←[0mvault-0.3.0.7: build←[0m
←[0mvault-0.3.0.7: copy/register←[0m
←[0mhaskell-src-exts-1.19.1: copy/register←[0m
←[0maeson-1.2.3.0: copy/register←[0m
Progress 156/209

--  While building custom Setup.hs for package semigroupoids-5.2.1 using:
      C:\Users\MyHome\AppData\Local\Temp\stack1100\semigroupoids-5.2.1\.stack-work\dist\e53504d9\setup\setup --builddir=
.stack-work\dist\e53504d9 build --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always"
    Process exited with code: ExitFailure 1
    Logs have been written to: C:\haskell\ide\haskell-ide-engine\.stack-work\logs\semigroupoids-5.2.1.log

    [1 of 2] Compiling Main             ( C:\Users\MyHome\AppData\Local\Temp\stack1100\semigroupoids-5.2.1\Setup.lhs, C:
\Users\MyHome\AppData\Local\Temp\stack1100\semigroupoids-5.2.1\.stack-work\dist\e53504d9\setup\Main.o )
    [2 of 2] Compiling StackSetupShim   ( C:\sr\setup-exe-src\setup-shim-Z6RU0evB.hs, C:\Users\MyHome\AppData\Local\Temp
\stack1100\semigroupoids-5.2.1\.stack-work\dist\e53504d9\setup\StackSetupShim.o )
    Linking C:\Users\MyHome\AppData\Local\Temp\stack1100\semigroupoids-5.2.1\.stack-work\dist\e53504d9\setup\setup.exe .
..
    Configuring semigroupoids-5.2.1...
    Preprocessing library for semigroupoids-5.2.1..
    Building library for semigroupoids-5.2.1..
    [ 1 of 21] Compiling Data.Functor.Extend ( src\Data\Functor\Extend.hs, .stack-work\dist\e53504d9\build\Data\Functor\
Extend.o )
    [ 2 of 21] Compiling Data.Functor.Bind.Class ( src\Data\Functor\Bind\Class.hs, .stack-work\dist\e53504d9\build\Data\
Functor\Bind\Class.o )
    Access violation in generated code when reading 0000009f850f01f0
Makefile:19: recipe for target 'hie-8.2.1' failed
make: *** [hie-8.2.1] Error 1
giuliohome commented 6 years ago

Running again stack exec make -- build-all for the second time and the build process caught up...