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

GHC linker error - undefined symbol: mblock_address_space #13

Open
ddssff opened this issue Aug 23, 2018 · 5 comments
Open

GHC linker error - undefined symbol: mblock_address_space #13

ddssff opened this issue Aug 23, 2018 · 5 comments
Labels

Comments

@ddssff
Copy link

ddssff commented Aug 23, 2018

I haven't investigated this closely, but when I try to compile with packman I get this:

-- <no location info>: error:
--     <command line>: can't load .so/.DLL for: /usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-8.4.3/libHSpackman-0.5.0-Fv7reuyLHo03M7x4FerNmn-ghc8.4.3.so (/usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-8.4.3/libHSpackman-0.5.0-Fv7reuyLHo03M7x4FerNmn-ghc8.4.3.so: undefined symbol: mblock_address_space)

I copied the code I needed into my app for the moment. Has anyone seen this error?

@ddssff
Copy link
Author

ddssff commented Aug 23, 2018

oh, probably a missing c library?

@jberthold
Copy link
Owner

jberthold commented Apr 11, 2019

Apologies, I did not see this issue (did not spend time on this recently, very busy).
I can look into this problem if it is still relevant. Would need some information about the platform you are trying to compile and run with (like uname -a ).
EDIT: Just saw in the error message that the GHC is 8.4.3. Are you working with a branch or with master (master is only expected to support GHC <= 8.2.2), and are you trying to use dynamic linking? (won't work, sorry)

@Qqwy
Copy link

Qqwy commented Aug 11, 2021

I am encountering the same problem.

GHC version 8.8.4. This is using the current master (which have the newer GHC support built-in as #16 was merged), to be exact, using commit 277a60d inside a stack project.

Searching for mblock_address_space in the GHC repository yields these results.

I am running on an x86_64 arch linux system.

@jberthold
Copy link
Owner

Thanks for the report @Qqwy
From the search results that you linked to, I do not see an immediate hint to what is going wrong here.
Anyway, it seems as though fixing this would entail a complete revision of the code, as GHC has moved on quite a bit since i last changed code here.
My sincere apologies but unfortunately I have very little time to pick up maintenance for this library again... ;-(

@Qqwy
Copy link

Qqwy commented Sep 2, 2021

No worries!

It might indeed also have been caused by the fact that GHC is also being linked dynamically on my machine (with unfortunately not an easy option to turn it off... I'm using Arch by the way 😅 ).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants