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

usage with stack #7

Open
sdx23 opened this issue Mar 21, 2016 · 1 comment
Open

usage with stack #7

sdx23 opened this issue Mar 21, 2016 · 1 comment

Comments

@sdx23
Copy link

sdx23 commented Mar 21, 2016

I tried to use HaPy with stack, but failed. Could you please update the example?

What I found up to now is: the extra libraries options has to go to stack.yaml, e.g.

ghc-options:
    package-name:    -lHSrts-ghc7.10.3

The _.so file will be somewhere in .stack-work/install/x86_64-linux/lts-5.8/7.10.3/lib/x86_64-linux-ghc-7.10.3/modulename_/lib*.so. (Tough I haven't used--enable-shared anywhere, how'd I supply that to stack?) So far so good. Copying that *.so-file to the python directory and using it there gives me:

OSError: /usr/lib/ghc/ghcpr_8TmvWUcS1U1IKHT0levwg3/libHSghc-prim-0.4.0.0-8TmvWUcS1U1IKHT0levwg3-ghc7.10.3.so: undefined symbol: stg_forkOnzh

Any suggestions?

@mgajda
Copy link

mgajda commented Jul 30, 2018

It seems to work with 8.4, and PR #8

mgajda added a commit to mgajda/HaPy that referenced this issue Apr 19, 2021
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

2 participants