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

link error for atomic-primops on linux on Jenkins #10

Closed
lkuper opened this issue Sep 19, 2013 · 3 comments
Closed

link error for atomic-primops on linux on Jenkins #10

lkuper opened this issue Sep 19, 2013 · 3 comments

Comments

@lkuper
Copy link
Member

lkuper commented Sep 19, 2013

We're so close to having the lvish Jenkins build working...so close...

Loading package atomic-primops-0.4 ... linking ... ghc: /nfs/nfs5/home/nobackup/parfunc/jenkins_workspaces_offloaded/LVish-implementation/JENKINS_GHC/7.6.3/label/linux-soic/haskell/lvish/.cabal-sandbox/lib/x86_64-linux-ghc-7.6.3/atomic-primops-0.4/libHSatomic-primops-0.4.a: unknown symbol `stg_MUT_VAR_CLEAN_info'
ghc: unable to load package `atomic-primops-0.4'
Failed to install lvish-0.2.0.0

The "unknown symbol `stg_MUT_VAR_CLEAN_info'" is apparently the same bug that @rrnewton ran into here!

@toddaaro
Copy link
Member

Ran into this today on my machine trying to use the atomic primops package, unrelated to jenkins/lvish.

/home/toddaaro/.cabal/lib/x86_64-linux-ghc-7.6.3/atomic-primops-0.4/libHSatomic-primops-0.4.a: unknown symbol `stg_MUT_VAR_CLEAN_info'
ghc: unable to load package `atomic-primops-0.4'

The same error pops up when I try ghci -threaded Foo.hs

@rrnewton
Copy link
Member

This is a GHC bug, discussed here in the issue that Lindsye linked.

rrnewton/haskell-lockfree#10

For now we can work around it by not using Template Haskell. Why are we using template haskell? It's because of the unit test framework (test-framework-th).

I already did the verbose, ugly, by-hand listing of the test cases to remove the dependency on template haskell. So this should now be fixed.

@toddaaro
Copy link
Member

Where is the template haskell dependency that is the problem? I don't have any template haskell in my code, is it part of the atomic-primops package?

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

3 participants