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

linking with boost-filesystem fails since commit e79dba271452721cc807b4d891ddbead1ed1ac78 #46

Closed
blattms opened this issue Oct 5, 2012 · 10 comments

Comments

@blattms
Copy link
Member

blattms commented Oct 5, 2012

Since the merge of pull request #43, building opm-core fails on my system:

--- going to build opm-core  ---
WARNING: commandline parameters will overwrite setting in opts file "/home/mblatt/src/dune/opts/agmg.opts"
--- calling make for opm-core ---
make  "V=1" "all"
make  all-recursive
make[1]: Entering directory `/home/mblatt/src/dune/2.2/opm-core'
Making all in .
make[2]: Entering directory `/home/mblatt/src/dune/2.2/opm-core'
make[2]: Leaving directory `/home/mblatt/src/dune/2.2/opm-core'
Making all in tests
make[2]: Entering directory `/home/mblatt/src/dune/2.2/opm-core/tests'
make[2]: Für das Ziel »all« ist nichts zu tun.
make[2]: Leaving directory `/home/mblatt/src/dune/2.2/opm-core/tests'
Making all in examples
make[2]: Entering directory `/home/mblatt/src/dune/2.2/opm-core/examples'
/bin/bash ../libtool  --tag=CXX   --mode=link g++  -DNDEBUG -O4 -Wall -I/home/mblatt/src/dune/2.2/dune-common-2.2.0 -I/home/mblatt/src/dune/2.2/dune-istl-2.2.0  -L/home/mblatt/src/dune/2.2/dune-common-2.2.0/lib/.libs -o sim_2p_comp_reorder sim_2p_comp_reorder.o ../lib/libopmcore.la -lumfpack -lcholmod -lccolamd -lcolamd -lcamd -lamd -lm -ldunecommon 
libtool: link: g++ -DNDEBUG -O4 -Wall -I/home/mblatt/src/dune/2.2/dune-common-2.2.0 -I/home/mblatt/src/dune/2.2/dune-istl-2.2.0 -o .libs/sim_2p_comp_reorder sim_2p_comp_reorder.o  -L/home/mblatt/src/dune/2.2/dune-common-2.2.0/lib/.libs ../lib/.libs/libopmcore.so -lumfpack -lcholmod -lccolamd -lcolamd -lcamd -lamd -lm /home/mblatt/src/dune/2.2/dune-common-2.2.0/lib/.libs/libdunecommon.a -llapack
/usr/bin/ld: sim_2p_comp_reorder.o: undefined reference to symbol '_ZN5boost11filesystem36detail18create_directoriesERKNS0_4pathEPNS_6system10error_codeE'
/usr/bin/ld: note: '_ZN5boost11filesystem36detail18create_directoriesERKNS0_4pathEPNS_6system10error_codeE' is defined in DSO /usr/lib/libboost_filesystem.so.1.49.0 so try adding it to the linker command line
/usr/lib/libboost_filesystem.so.1.49.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[2]: *** [sim_2p_comp_reorder] Fehler 1
make[2]: Leaving directory `/home/mblatt/src/dune/2.2/opm-core/examples'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/mblatt/src/dune/2.2/opm-core'
make: *** [all] Fehler 2
--- Failed to build opm-core ---
Terminating dunecontrol due to previous errors!
´´´´
@bska
Copy link
Member

bska commented Oct 5, 2012

Can you upload your lib/libopmcore.la file? It is hard to know where to begin debugging this without more information.

@bska
Copy link
Member

bska commented Oct 5, 2012

By the way; do you configure static and/or dynamic libraries (--disable-shared &c)?

Update: Never mind. Upon reading the error messages more thoroughly it clearly references libopmcore.so.

@rolk
Copy link
Member

rolk commented Oct 5, 2012

Isn't the problem here that sim_2p_comp_reorder references boost::filesystem, but doesn't link to it explicitly? (It used to be that it could link to it through opm-core, see https://fedoraproject.org/wiki/UnderstandingDSOLinkChange)

@blattms
Copy link
Member Author

blattms commented Oct 5, 2012

config.log and the .la file can be found at https://gist.github.com/3838822

@bska
Copy link
Member

bska commented Oct 5, 2012

@rolk : Yes, that's probably it.

I'll see about updating the example build accordingly.

@blattms: Thanks.

@bska
Copy link
Member

bska commented Oct 5, 2012

@blattms: I just pushed a new commit, 5e8f87d, to https://github.com/bska/opm-core with a tentative fix for this issue (branch link-boost-explicitly-where-needed). Would you mind testing it and reporting whether or not it works?

@blattms
Copy link
Member Author

blattms commented Oct 5, 2012

On Fri, Oct 05, 2012 at 03:13:14AM -0700, Bård Skaflestad wrote:

@blattms: I just pushed a new commit, 5e8f87d, to https://github.com/bska/opm-core with a tentative fix for this issue (branch link-boost-explicitly-where-needed). Would you mind testing it and reporting whether or not it works?

Hi,

Just check it. Compiles nicely on my system. Thanks a lot!

Cheers,

Markus

Dr. Markus Blatt - HPC-Simulation-Software & Services http://www.dr-blatt.de
Hans-Bunte-Str. 8-10, 69123 Heidelberg, Germany, USt-Id: DE279960836
Tel.: +49 (0) 160 97590858 Fax: +49 (0)322 1108991658

Please notice the new address!

@bska
Copy link
Member

bska commented Oct 5, 2012

Thanks for the report. I'll submit a pull request later today.

@atgeirr
Copy link
Member

atgeirr commented Oct 8, 2012

I assume this issue can be closed now?

@bska
Copy link
Member

bska commented Oct 11, 2012

Is this still an issue?

@rolk rolk closed this as completed Oct 14, 2012
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

4 participants