Skip to content

haskell-language-server-wrapper: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by haskell-language-server-wrapper) #3262

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
just-max opened this issue Oct 8, 2022 · 2 comments
Labels
bindists Anything to do with binary distributions of HLS type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..

Comments

@just-max
Copy link

just-max commented Oct 8, 2022

[client] ERROR Error: haskell-language-server --project-ghc-version exited with exit code 1:

haskell-language-server-wrapper: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by haskell-language-server-wrapper)

Your environment

Linux Mint 20.2 (package base Ubuntu Focal).
VSCodium 1.72.0

Steps to reproduce

  1. Install GHCup (0.1.18.0), install Stack (2.9.1), install HLS (1.8.0.0), cabal (3.6.2.0), GHC (8.10.7)

  2. Create a new Stack project: stack new foo

  3. Isolated installation of VSCodium: codium --extensions-dir ./tmp-ext/ --user-data-dir ./tmp-user/ --install-extension haskell.haskell.

    Installing extensions...
    Installing extension 'haskell.haskell'...
    (node:76953) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
    (Use `codium --trace-deprecation ...` to show where the warning was created)
    Extension 'haskell.haskell' v2.2.1 was successfully installed.
    
  4. Start VSCodium: codium --extensions-dir ./tmp-ext/ --user-data-dir ./tmp-user/ foo

  5. Open e.g. src/Lib.hs, answer "Automatically via GHCup" to "How do you want the extension to manage/discover HLS and the relevant toolchain?"

  6. Observe that language server features don't work (e.g. type annotations)

Expected behaviour

HLS features work.

Actual behaviour

No HLS features work.

Include debug information

haskell-language-server-wrapper --debug . shows a problem:

haskell-language-server-wrapper: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by haskell-language-server-wrapper)

Extensions logs unsurprisingly fail because of the glibc version mismatch, too.

Extension log:
2022-10-08 01:50:48.7560000 [client] DEBUG Environment variables:
2022-10-08 01:50:48.7560000 [client] DEBUG   PATH: /home/max/.opam/4.14.0/bin:/home/max/.pyenv/plugins/pyenv-virtualenv/shims:/home/max/.pyenv/shims:/home/max/.pyenv/bin:/home/max/.goenv/shims:/home/max/.goenv/bin:/home/max/.nvm/versions/node/v12.18.3/bin:/home/max/perl5/bin:/home/max/.opam/4.14.0/bin:/home/max/.local/bin:/home/max/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/max/.dotnet/tools:/home/max/.local/share/JetBrains/Toolbox/scripts:/home/max/.fzf/bin:/home/max/.cabal/bin:/home/max/.ghcup/bin
2022-10-08 01:50:48.7570000 [client] INFO Finding haskell-language-server
2022-10-08 01:50:48.7580000 [client] INFO Checking for ghcup installation
2022-10-08 01:50:48.7620000 [client] INFO found ghcup at ghcup
2022-10-08 01:50:48.7630000 [client] INFO Executing 'ghcup --no-verbose upgrade' in cwd '/home/max/src/hs'
2022-10-08 01:50:49.1670000 [client] DEBUG Execution of 'ghcup --no-verbose upgrade' terminated with code 0
2022-10-08 01:50:49.1680000 [client] INFO Checking for ghcup installation
2022-10-08 01:50:49.1710000 [client] INFO found ghcup at ghcup
2022-10-08 01:50:49.1720000 [client] INFO Executing 'ghcup --no-verbose list -t hls -c installed -r' in cwd '/home/max/src/hs'
2022-10-08 01:50:49.2260000 [client] DEBUG Execution of 'ghcup --no-verbose list -t hls -c installed -r' terminated with code 0
2022-10-08 01:50:49.2270000 [client] INFO Checking for ghcup installation
2022-10-08 01:50:49.2310000 [client] INFO found ghcup at ghcup
2022-10-08 01:50:49.2320000 [client] INFO Executing 'ghcup --no-verbose list -t cabal -c installed -r' in cwd '/home/max/src/hs'
2022-10-08 01:50:49.2860000 [client] DEBUG Execution of 'ghcup --no-verbose list -t cabal -c installed -r' terminated with code 0
2022-10-08 01:50:49.2870000 [client] INFO Checking for ghcup installation
2022-10-08 01:50:49.2910000 [client] INFO found ghcup at ghcup
2022-10-08 01:50:49.2920000 [client] INFO Executing 'ghcup --no-verbose list -t stack -c installed -r' in cwd '/home/max/src/hs'
2022-10-08 01:50:49.3570000 [client] DEBUG Execution of 'ghcup --no-verbose list -t stack -c installed -r' terminated with code 0
2022-10-08 01:50:49.3630000 [client] INFO Checking for ghcup installation
2022-10-08 01:50:49.3680000 [client] INFO found ghcup at ghcup
2022-10-08 01:50:49.3680000 [client] INFO Executing 'ghcup --no-verbose whereis hls 1.8.0.0' in cwd '/home/max/src/hs'
2022-10-08 01:50:49.3820000 [client] DEBUG Execution of 'ghcup --no-verbose whereis hls 1.8.0.0' terminated with code 0
2022-10-08 01:50:49.3820000 [client] INFO Checking for ghcup installation
2022-10-08 01:50:49.3870000 [client] INFO found ghcup at ghcup
2022-10-08 01:50:49.3870000 [client] INFO Executing 'ghcup --no-verbose whereis cabal 3.8.1.0' in cwd '/home/max/src/hs'
2022-10-08 01:50:49.4020000 [client] DEBUG Execution of 'ghcup --no-verbose whereis cabal 3.8.1.0' terminated with code 0
2022-10-08 01:50:49.4020000 [client] INFO Checking for ghcup installation
2022-10-08 01:50:49.4060000 [client] INFO found ghcup at ghcup
2022-10-08 01:50:49.4070000 [client] INFO Executing 'ghcup --no-verbose whereis stack 2.9.1' in cwd '/home/max/src/hs'
2022-10-08 01:50:49.4220000 [client] DEBUG Execution of 'ghcup --no-verbose whereis stack 2.9.1' terminated with code 0
2022-10-08 01:50:49.4290000 [client] INFO Executing 'ghc --numeric-version' in cwd '/home/max/src/hs'
2022-10-08 01:50:49.4750000 [client] DEBUG Execution of 'ghc --numeric-version' terminated with code 0
2022-10-08 01:50:49.4750000 [client] INFO Checking for ghcup installation
2022-10-08 01:50:49.4850000 [client] INFO found ghcup at ghcup
2022-10-08 01:50:49.4860000 [client] INFO Executing 'ghcup --no-verbose run --hls 1.8.0.0 --cabal 3.8.1.0 --stack 2.9.1 --install' in cwd '/home/max/src/hs'
2022-10-08 01:50:49.5620000 [client] DEBUG Execution of 'ghcup --no-verbose run --hls 1.8.0.0 --cabal 3.8.1.0 --stack 2.9.1 --install' terminated with code 0
2022-10-08 01:50:49.5630000 [client] INFO Working out the project GHC version. This might take a while...
2022-10-08 01:50:49.5640000 [client] INFO Executing 'haskell-language-server-wrapper --project-ghc-version' in cwd '/home/max/src/hs/foo'
2022-10-08 01:50:49.5670000 [client] DEBUG Execution of 'haskell-language-server-wrapper --project-ghc-version' terminated with code 1
2022-10-08 01:50:49.5670000 [client] ERROR Error executing 'haskell-language-server-wrapper --project-ghc-version' with error code 1
2022-10-08 01:50:49.5670000 [client] ERROR stderr: haskell-language-server-wrapper: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by haskell-language-server-wrapper)

2022-10-08 01:50:49.5680000 [client] ERROR Error: haskell-language-server --project-ghc-version exited with exit code 1:

haskell-language-server-wrapper: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by haskell-language-server-wrapper)

2022-10-08 01:50:49.5680000 [client] INFO Executing 'ghc --numeric-version' in cwd '/home/max/src/hs'
2022-10-08 01:50:49.6050000 [client] DEBUG Execution of 'ghc --numeric-version' terminated with code 0
2022-10-08 01:50:49.9520000 [client] INFO Platform constants: Linux_UnknownLinux, A_64
2022-10-08 01:50:49.9520000 [client] DEBUG HLS 1.1.0 compatible with GHC Versions: 8.10.2,8.10.3,8.10.4,8.6.4,8.6.5,8.8.2,8.8.3,8.8.4
2022-10-08 01:50:49.9520000 [client] DEBUG HLS 1.2.0 compatible with GHC Versions: 8.10.2,8.10.3,8.10.4,8.10.5,8.6.4,8.6.5,8.8.2,8.8.3,8.8.4
2022-10-08 01:50:49.9520000 [client] DEBUG HLS 1.3.0 compatible with GHC Versions: 8.10.2,8.10.3,8.10.4,8.10.5,8.6.4,8.6.5,8.8.3,8.8.4,9.0.1
2022-10-08 01:50:49.9520000 [client] DEBUG HLS 1.4.0 compatible with GHC Versions: 8.10.2,8.10.3,8.10.4,8.10.5,8.10.6,8.10.7,8.6.4,8.6.5,8.8.3,8.8.4,9.0.1
2022-10-08 01:50:49.9520000 [client] DEBUG HLS 1.5.0 compatible with GHC Versions: 8.10.5,8.10.6,8.10.7,8.6.5,8.8.3,8.8.4,9.0.1
2022-10-08 01:50:49.9520000 [client] DEBUG HLS 1.5.1 compatible with GHC Versions: 8.10.5,8.10.6,8.10.7,8.6.5,8.8.3,8.8.4,9.0.1
2022-10-08 01:50:49.9520000 [client] DEBUG HLS 1.6.0.0 compatible with GHC Versions: 8.10.6,8.10.7,8.6.5,8.8.4,9.0.1,9.0.2,9.2.1
2022-10-08 01:50:49.9520000 [client] DEBUG HLS 1.6.1.0 compatible with GHC Versions: 8.10.6,8.10.7,8.6.5,8.8.4,9.0.1,9.0.2,9.2.1
2022-10-08 01:50:49.9520000 [client] DEBUG HLS 1.7.0.0 compatible with GHC Versions: 8.6.5,8.8.4,8.10.7,9.0.2,9.2.1,9.2.2
2022-10-08 01:50:49.9520000 [client] DEBUG HLS 1.8.0.0 compatible with GHC Versions: 8.6.5,8.8.4,8.10.7,9.0.2,9.2.3,9.2.4,9.4.1,9.4.2
2022-10-08 01:50:49.9530000 [client] INFO Checking for ghcup installation
2022-10-08 01:50:49.9610000 [client] INFO found ghcup at ghcup
2022-10-08 01:50:49.9620000 [client] INFO Executing 'ghcup --no-verbose list -t hls -c installed -r' in cwd '/home/max/src/hs'
2022-10-08 01:50:50.0280000 [client] DEBUG Execution of 'ghcup --no-verbose list -t hls -c installed -r' terminated with code 0
2022-10-08 01:50:50.0280000 [client] INFO Checking for ghcup installation
2022-10-08 01:50:50.0320000 [client] INFO found ghcup at ghcup
2022-10-08 01:50:50.0330000 [client] INFO Executing 'ghcup --no-verbose whereis bindir' in cwd '/home/max/src/hs'
2022-10-08 01:50:50.0460000 [client] DEBUG Execution of 'ghcup --no-verbose whereis bindir' terminated with code 0
2022-10-08 01:50:50.0490000 [client] INFO Checking for ghcup installation
2022-10-08 01:50:50.0530000 [client] INFO found ghcup at ghcup
2022-10-08 01:50:50.0540000 [client] INFO Executing 'ghcup --no-verbose whereis hls 1.8.0.0' in cwd '/home/max/src/hs'
2022-10-08 01:50:50.0680000 [client] DEBUG Execution of 'ghcup --no-verbose whereis hls 1.8.0.0' terminated with code 0
2022-10-08 01:50:50.0680000 [client] INFO Checking for ghcup installation
2022-10-08 01:50:50.0720000 [client] INFO found ghcup at ghcup
2022-10-08 01:50:50.0730000 [client] INFO Executing 'ghcup --no-verbose whereis ghc 8.10.7' in cwd '/home/max/src/hs'
2022-10-08 01:50:50.0880000 [client] DEBUG Execution of 'ghcup --no-verbose whereis ghc 8.10.7' terminated with code 0
2022-10-08 01:50:50.0890000 [client] INFO Checking for ghcup installation
2022-10-08 01:50:50.0950000 [client] INFO found ghcup at ghcup
2022-10-08 01:50:50.0960000 [client] INFO Executing 'ghcup --no-verbose run --hls 1.8.0.0 --cabal 3.8.1.0 --stack 2.9.1 --ghc 8.10.7 --install' in cwd '/home/max/src/hs'
2022-10-08 01:50:50.1710000 [client] DEBUG Execution of 'ghcup --no-verbose run --hls 1.8.0.0 --cabal 3.8.1.0 --stack 2.9.1 --ghc 8.10.7 --install' terminated with code 0
2022-10-08 01:50:50.1710000 [client] INFO Activating the language server in working dir: /home/max/src/hs/foo (the workspace folder)
2022-10-08 01:50:50.1720000 [client] INFO run command: /home/max/.ghcup/tmp/ghcup-ghc-8.10.7_cabal-3.8.1.0_hls-1.8.0.0_stack-2.9.1/haskell-language-server-wrapper --lsp -d
2022-10-08 01:50:50.1720000 [client] INFO debug command: /home/max/.ghcup/tmp/ghcup-ghc-8.10.7_cabal-3.8.1.0_hls-1.8.0.0_stack-2.9.1/haskell-language-server-wrapper --lsp -d
2022-10-08 01:50:50.1720000 [client] INFO server environment variables:
2022-10-08 01:50:50.1720000 [client] INFO   PATH=/home/max/.ghcup/tmp/ghcup-ghc-8.10.7_cabal-3.8.1.0_hls-1.8.0.0_stack-2.9.1:/home/max/.opam/4.14.0/bin:/home/max/.pyenv/plugins/pyenv-virtualenv/shims:/home/max/.pyenv/shims:/home/max/.pyenv/bin:/home/max/.goenv/shims:/home/max/.goenv/bin:/home/max/.nvm/versions/node/v12.18.3/bin:/home/max/perl5/bin:/home/max/.opam/4.14.0/bin:/home/max/.local/bin:/home/max/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/max/.dotnet/tools:/home/max/.local/share/JetBrains/Toolbox/scripts:/home/max/.fzf/bin:/home/max/.cabal/bin:/home/max/.ghcup/bin
2022-10-08 01:50:50.1720000 [client] DEBUG document selector patten: /home/max/src/hs/foo/**/*
2022-10-08 01:50:50.1790000 [client] INFO Starting language server
[Trace - 3:50:50 a.m.] Sending request 'initialize - (0)'.
[Error - 3:50:50 a.m.] Connection to server is erroring. Shutting down server.
[Trace - 3:50:50 a.m.] Sending request 'shutdown - (1)'.
/home/max/.ghcup/tmp/ghcup-ghc-8.10.7_cabal-3.8.1.0_hls-1.8.0.0_stack-2.9.1/haskell-language-server-wrapper: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /home/max/.ghcup/tmp/ghcup-ghc-8.10.7_cabal-3.8.1.0_hls-1.8.0.0_stack-2.9.1/haskell-language-server-wrapper)

Solution?

In my VSCodium settings, I've downgraded HLS:

    "haskell.toolchain": {
        "hls": "1.7.0.0"
    }

Now, everything works fine! I'm still filing this as a bug though, since (a) the original error is completely silent, and (b) the required glibc versions are not documented anywhere.

@hasufell hasufell transferred this issue from haskell/vscode-haskell Oct 8, 2022
@hasufell hasufell added type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc.. bindists Anything to do with binary distributions of HLS and removed status: needs triage labels Oct 8, 2022
@hasufell
Copy link
Member

hasufell commented Oct 8, 2022

See #3247 (comment)

@michaelpj
Copy link
Collaborator

dupe

@michaelpj michaelpj closed this as not planned Won't fix, can't repro, duplicate, stale Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bindists Anything to do with binary distributions of HLS type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Projects
None yet
Development

No branches or pull requests

3 participants