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

Build errors #4

Open
divya84 opened this issue Aug 30, 2016 · 5 comments
Open

Build errors #4

divya84 opened this issue Aug 30, 2016 · 5 comments

Comments

@divya84
Copy link

divya84 commented Aug 30, 2016

Hello,

When trying to do cabal install I get a series of errors of this form:

src/Data/LLVM/Types/Attributes.chs:86:10:
No instance for (GHC.Generics.Generic SynchronizationScope)
arising from a use of Control.DeepSeq.$gdmrnf' In the expression: Control.DeepSeq.$gdmrnf In an equation forrnf': rnf = Control.DeepSeq.$gdmrnf
In the instance declaration for `NFData SynchronizationScope'

src/Data/LLVM/Types/Attributes.chs:105:10:
No instance for (GHC.Generics.Generic AtomicOperation)
arising from a use of Control.DeepSeq.$gdmrnf' In the expression: Control.DeepSeq.$gdmrnf In an equation forrnf': rnf = Control.DeepSeq.$gdmrnf
In the instance declaration for `NFData AtomicOperation'
....

cabal: Error: some packages failed to install:
llvm-analysis-0.3.0 depends on llvm-base-types-0.3.0 which failed to install.
llvm-base-types-0.3.0 failed during the building phase. The exception was:
ExitFailure 1
llvm-data-interop-0.3.0 depends on llvm-base-types-0.3.0 which failed to
install.
llvm-slicing-0.3.3 depends on llvm-base-types-0.3.0 which failed to install.''

I am not familiar with Haskell so I don't know what to make of these. Could you help? Thanks

@zhangyz
Copy link
Owner

zhangyz commented Aug 31, 2016

It seems that the version of Haskell library deepseq installed in your computer does not meet (e.g. higher) the requirement for Haskell libray llvm-base-types. There are two solutions: 1) uninstall your higher version of deepseq, reinstall its lower one, and try them again; or 2) directly download our pre-built binary in the folder bin/. In addition, for more detailed install information about llvm-analysis, please see its website: http://hackage.haskell.org/package/llvm-analysis. I strongly recommend you to select Solution 2, since you are now a Haskell newbie. Thanks for your interest in our llvm-slicing.

@divya84
Copy link
Author

divya84 commented Aug 31, 2016

Hi, Thanks for your answer. I was able to get the binary working. Is there any way to relate the line numbers back to corresponding functions in the source (alternatively print the corresponding source line)?

@zhangyz
Copy link
Owner

zhangyz commented Sep 1, 2016

llvm-slicing now does not support that function, since it just focuses on IR programs. BTW, you may try it by using text-search techniques in source files.

@divya84
Copy link
Author

divya84 commented Sep 1, 2016

Hi,

Thanks. We are trying to run the slicer on memcached(+libevent) for an academic project. The slicer seems to run for a few minutes and then the memory consumption skyrockets to 10 GB and the process gets killed. I was wondering what the reason might be. Have you run the slicer on large programs?

@zhangyz
Copy link
Owner

zhangyz commented Sep 1, 2016

Sorry, I do not know the reason of that case in your computation environment. Everything runs smoothly on my side, with some large test programs as shown in the folder test/C, ranging up to 336,800 instructions in size.

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