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

hs_add_root is obsolete #4

Open
jwaldmann opened this issue Nov 7, 2019 · 0 comments
Open

hs_add_root is obsolete #4

jwaldmann opened this issue Nov 7, 2019 · 0 comments

Comments

@jwaldmann
Copy link

ghc-8.4 removed "hs_add_root", see https://downloads.haskell.org/~ghc/8.4.1/docs/html/users_guide/8.4.1-notes.html#runtime-system

This leads to a linker error when building the scoop library for ltsmin.

After this obvious change

diff --git a/src/lib_scoop.c b/src/lib_scoop.c
index ac70f7e..f37cd2b 100644
--- a/src/lib_scoop.c
+++ b/src/lib_scoop.c
@@ -18,7 +18,7 @@ void scoop_init(int argc, char *argv[])
 {
     hs_init(&argc, &argv);
 #ifdef __GLASGOW_HASKELL__
-    hs_add_root(__stginit_LibScoop);
+    //    hs_add_root(__stginit_LibScoop);
 #endif
     constants=const_empty();
 }

compilation is fine with (tested with ghc-8.6.5, ghc-8.8.1).

I don't know how to test.

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

No branches or pull requests

1 participant