Skip to content
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

GLIBC_PRIVATE not defined error on {-# LANGUAGE ... -#} pragma #2300

Closed
jonathan-il opened this issue Oct 24, 2021 · 3 comments
Closed

GLIBC_PRIVATE not defined error on {-# LANGUAGE ... -#} pragma #2300

jonathan-il opened this issue Oct 24, 2021 · 3 comments
Labels
os: nixos type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..

Comments

@jonathan-il
Copy link

In a (cabal) Haskell project, the vscode-haskell extension is giving me an error on one file, and I don't understand what the error means nor how to work around it. There doesn't seem to be anything wrong with the project, as it builds and runs fine with cabal build and cabal run. The error appears and squiggly underlines {-# LANGUAGE Extension #-} pragmas at the top of the file. The file in question uses a small amount of template haskell -- for obtaining some derive instances. Thus, if I remove all the extensions, and in particular the {-# LANGUAGE TemplateHaskell #-} extension, the program will fail to build. The exact error message is

Unexpected usage error
    /nix/store/2jfn3d7vyj7h0h6lmh510rz31db68l1i-glibc-2.33-50/lib/libc.so.6: symbol
    _dl_catch_error_ptr version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 
    with link time reference

How can I find out what the error is and how to get around it?

@jneira
Copy link
Member

jneira commented Oct 24, 2021

Transferring the issue to the haskell-language-server repo

@jneira jneira transferred this issue from haskell/vscode-haskell Oct 24, 2021
@jneira jneira added type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc.. type: template haskell related labels Oct 24, 2021
@jneira
Copy link
Member

jneira commented Oct 24, 2021

From the error message i suspect it could be related with template haskell, does the error go away if you removes the template haskell definitions (even without removing the language pragma)?

It reminds me #392

@jneira
Copy link
Member

jneira commented Oct 24, 2021

In fact i think this is essentially #392, so i am gonna close it if you dont mind.
You can read more about in that issue but the workaround seems to be build hls from source in the target machine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
os: nixos 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

2 participants