Skip to content

GHC ABIs don't match even after following troubleshooting steps #4878

@Kevinpgalligan

Description

@Kevinpgalligan

Your environment

Which OS do you use? Linux Mint.

Which version of GHC do you use and how did you install it? 9.6.7, installed with ghcup.

How is your project built (alternative: link to the project)? (probably not relevant)

Which LSP client (editor/plugin) do you use? VSCode + the Haskell plugin.

Which version of HLS do you use and how did you install it? 2.13.0.0, installed from ghcup.

Have you configured HLS in any way (especially: a hie.yaml file)? no.

What's wrong?

I get this error when I try to start up my project in VSCode with the Haskell plugin installed.

�[0;31mGHC ABIs don't match!�[0m
�[0;31m�[0m
�[0;31mExpected: Cabal-3.10.3.0:493fb477f230ef3a2bbf6c87bbb8840d Cabal-syntax-3.10.3.0:fc416164ed896ec7346f72cc2f65fb35 array-0.5.8.0:2a11bca284dff8eb1fcd4f31a07b827e base-4.18.3.0:592ec01591312b04472836f67d915c5d binary-0.8.9.1:7580fc28f5119ad920af69a6e49e60d3 bytestring-0.11.5.4:27fbe08ceb2e6fdab9bc09400b8d8f76 containers-0.6.7:fe7f849d138bbe3416fe32c1d39d381c deepseq-1.4.8.1:f2571eb91d7899a6851320df2a382556 directory-1.3.8.5:3e1804180dfc0d8b83e18f504f42a444 exceptions-0.10.7:064b2425cbb5db17cdbd54b85d1d5fd3 filepath-1.4.301.0:6f82b5c3eb0d98421a0ba6ee735d6d66 ghc-9.6.7:6f745b79108af442f823237983956e2b ghc-bignum-1.3:b823279a983c674c02fb085f3a2f1188 ghc-boot-9.6.7:66ba6ab7ba69f315cec25e053ea9b8d5 ghc-boot-th-9.6.7:489a0e1c0c47cedaa56855c45f258169 ghc-compact-0.1.0.0:783c87e51fc5c5897a80a3a14d818215 ghc-heap-9.6.7:2cb3e7dbf9d28512a1d083e4f3147885 ghc-prim-0.10.0:918061ff197e32e8c58eba4d8ac45f0d ghci-9.6.7:de104c03706b822b012e1c75b4818d0c haskeline-0.8.2.1:abd9496c95c93eb7cdbf7122e4087981 hpc-0.6.2.0:b8278e20a1b91798d9c18d64d92552dd integer-gmp-1.1:dfd9bebc21772c0024d7ec7b039c6631 libiserv-9.6.7:9dcbd577ca41a14d5996de96294dd58f mtl-2.3.1:ff38eb7ff0f1915d707ce06c1ad2f965 parsec-3.1.16.1:a5a3ca3313b31b3230a2f05067acd79e pretty-1.1.3.6:680eb5d386cbeebc3809657c61411cb9 process-1.6.19.0:7eb56b00b6cbab13c56b837ca0a95f0b rts-1.0.2:af502b20f68575b4e32c31b5bdda1c81 stm-2.5.1.0:619c76fbf9c739a1903b82ce78515efd system-cxx-std-lib-1.0:00000000000000000000000000000000 template-haskell-2.20.0.0:b95d53dda21b28ef36a60c43f7bb05b7 terminfo-0.4.1.6:6ed41f8666b665727034e245b9c33857 text-2.0.2:cd1a3eeee5c3cee507be27158acc1391 time-1.12.2:607d1c936e96e38cd4b25dbc87f234eb transformers-0.6.1.0:1bf580cf789f1d64ecfdf39024bb097e unix-2.8.6.0:71920dec65fc61280633723d1f2e7d83 xhtml-3000.2.2.1:2f101354b10ea95655b8347b8a6133df�[0m
�[0;31mGot:      Cabal-3.10.3.0:493fb477f230ef3a2bbf6c87bbb8840d Cabal-syntax-3.10.3.0:fc416164ed896ec7346f72cc2f65fb35 array-0.5.8.0:2a11bca284dff8eb1fcd4f31a07b827e base-4.18.3.0:592ec01591312b04472836f67d915c5d binary-0.8.9.1:7580fc28f5119ad920af69a6e49e60d3 bytestring-0.11.5.4:27fbe08ceb2e6fdab9bc09400b8d8f76 containers-0.6.7:fe7f849d138bbe3416fe32c1d39d381c deepseq-1.4.8.1:f2571eb91d7899a6851320df2a382556 directory-1.3.8.5:3e1804180dfc0d8b83e18f504f42a444 exceptions-0.10.7:064b2425cbb5db17cdbd54b85d1d5fd3 filepath-1.4.301.0:6f82b5c3eb0d98421a0ba6ee735d6d66 ghc-9.6.7:6f745b79108af442f823237983956e2b ghc-bignum-1.3:b823279a983c674c02fb085f3a2f1188 ghc-boot-9.6.7:66ba6ab7ba69f315cec25e053ea9b8d5 ghc-boot-th-9.6.7:489a0e1c0c47cedaa56855c45f258169 ghc-compact-0.1.0.0:783c87e51fc5c5897a80a3a14d818215 ghc-heap-9.6.7:2cb3e7dbf9d28512a1d083e4f3147885 ghc-prim-0.10.0:918061ff197e32e8c58eba4d8ac45f0d ghci-9.6.7:de104c03706b822b012e1c75b4818d0c haskeline-0.8.2.1:abd9496c95c93eb7cdbf7122e4087981 hpc-0.6.2.0:b8278e20a1b91798d9c18d64d92552dd integer-gmp-1.1:dfd9bebc21772c0024d7ec7b039c6631 libiserv-9.6.7:9dcbd577ca41a14d5996de96294dd58f mtl-2.3.1:ff38eb7ff0f1915d707ce06c1ad2f965 parsec-3.1.16.1:a5a3ca3313b31b3230a2f05067acd79e pretty-1.1.3.6:680eb5d386cbeebc3809657c61411cb9 process-1.6.19.0:7eb56b00b6cbab13c56b837ca0a95f0b rts-1.0.2:af502b20f68575b4e32c31b5bdda1c81 stm-2.5.1.0:619c76fbf9c739a1903b82ce78515efd system-cxx-std-lib-1.0:00000000000000000000000000000000 template-haskell-2.20.0.0:b95d53dda21b28ef36a60c43f7bb05b7 terminfo-0.4.1.6:6ed41f8666b665727034e245b9c33857 text-2.0.2:cd1a3eeee5c3cee507be27158acc1391 time-1.12.2:607d1c936e96e38cd4b25dbc87f234eb transformers-0.6.1.0:1bf580cf789f1d64ecfdf39024bb097e unix-2.8.6.0:0c88bea9b743441eb3533825429f76b0 xhtml-3000.2.2.1:2f101354b10ea95655b8347b8a6133df�[0m

Same error appears if I run haskell-language-server-wrapper -d --lsp from the command line.

I tried following the troubleshooting steps, my ~/.stack/config.yaml file now contains:

install-ghc: false
system-ghc: true

...but no dice.

Debug information

Separating out the list of "expected" packages/binaries from the "got" binaries, and running a diff, I get...

$ diff hls-debug hls-debug-got 
36c36
< unix-2.8.6.0:71920dec65fc61280633723d1f2e7d83
---
> unix-2.8.6.0:0c88bea9b743441eb3533825429f76b0

So it seems like the unix package/whatever is different, despite being the same version? I don't know what any of the tools do or what I'm actually looking at here, so some help would be appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bindistsAnything to do with binary distributions of HLStype: supportUser support tickets, questions, help with setup etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions