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

problems with linking dune-cornerpoint to opm-core #137

Closed
totto82 opened this issue Feb 1, 2013 · 6 comments
Closed

problems with linking dune-cornerpoint to opm-core #137

totto82 opened this issue Feb 1, 2013 · 6 comments

Comments

@totto82
Copy link
Member

totto82 commented Feb 1, 2013

@rolk

I have struggled for a while with installing dune-cornerpoint. I get lots of undefined references looking like this for instance:

readEclipseFormat.cpp:(.text+0x3906): undefined reference to `Opm::EclipseGridInspector::gridSize() const'

I saw your newest commit 2c1df0b and hoped it would fix the problem, but it didn't. I have install opm-core with cmake and used dunecontrol to build dune-cornerpoint.

@rolk
Copy link
Member

rolk commented Feb 1, 2013

@totto82 Maybe fixed; see post to mailing list titled "Re: [OPM] Autotools -> CMake transition" at 2013-02-01 14:16 CET. Try the description there; if it doesn't work then post a gist with dune-cornerpoint/config.log

@totto82
Copy link
Member Author

totto82 commented Feb 1, 2013

Re: [OPM] Autotools -> CMake transition" at 2013-02-01 14:16 CET

fixed the problem. I assume a more permanent fix is on the way

@kristinf
Copy link
Member

kristinf commented Feb 4, 2013

I have posted the log files opm-core/CMakeFiles/CMake*.log and dune-cornerpoint/config.log as you requested on https://gist.github.com/6c4f4c269f73ec7d0271
Hope you can make some sense out of this.

@rolk
Copy link
Member

rolk commented Feb 4, 2013

@kristinf
Preliminary analysis: This seems to be a variant of the problem Tor Harald observed: in config.log:4321 it fails because it does not link umfpack together with cholmod; however in CMakeOutput.log:742 it manages to do so. This may suggest that the "link with or without cholmod" test is insufficient.

What I cannot fathom is why it is able to build using only autotools, since it is the same m4/ directory (and which dune-cornerpoint should pick up) in both scenarios.

@rolk
Copy link
Member

rolk commented Feb 5, 2013

@kristinf
I have reason to believe that this error is fixed (from commit 09ceb7d onwards); libtool manages to pick up -llapack from libdunecommon.la, so by having a proper .la file it should add the dependencies that opm-core needs too. Pull a new version of the cmake branch, delete CMakeCache.txt and rebuild opm-core; then try building dune-cornerpoint again.

@rolk
Copy link
Member

rolk commented Feb 12, 2013

I believe this issue is solved in the release/2013.03 branch.

@rolk rolk closed this as completed Feb 12, 2013
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