[graph-tool] Could not link against boost_coroutine

Tiago de Paula Peixoto tiago at skewed.de
Tue Feb 7 19:01:30 CET 2017


On 07.02.2017 17:53, dperry324 wrote:
> config1.log
> <http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/file/n4027005/config1.log>  
> 
> I tried your suggestion, and it still failed at the same spot.  Here is the
> resulting config.log.
> 
> I used this command line:
> # ./configure --with-boost=/usr/local/boost161
> LDFLAGS=-L/usr/local/boost161/lib/

We are not going to do wack-a-mole like this. You have to look at the error
yourself and try to understand what it means. Note these are not graph-tool
bugs, but rather are probably inconsistencies with your installation. If
you look at your newest config.log we see

configure:20283: g++ -std=gnu++14 -o conftest -fvisibility=default -fvisibility-inlines-hidden -O3 -Wno-deprecated -Wno-unknown-pragmas -ftemplate-depth-250 -DNDEBUG -Wall -Wextra -ftemplate-backtrace-limit=0  -Wno-unknown-pragmas -I/opt/rh/python27/root/usr/include/python2.7  -I/usr/local/boost161/include  -L/usr/local/boost161/lib/ -L/usr/local/boost161/lib conftest.cpp -lboost_coroutine  -lbz2 -lm  >&5
/opt/rh/devtoolset-4/root/usr/libexec/gcc/x86_64-redhat-linux/5.3.1/ld: warning: libboost_context.so.1.61.0, needed by /usr/local/boost161/lib//libboost_coroutine.so, not found (try using -rpath or -rpath-link)
/opt/rh/devtoolset-4/root/usr/libexec/gcc/x86_64-redhat-linux/5.3.1/ld: warning: libboost_thread.so.1.61.0, needed by /usr/local/boost161/lib//libboost_coroutine.so, not found (try using -rpath or -rpath-link)
/opt/rh/devtoolset-4/root/usr/libexec/gcc/x86_64-redhat-linux/5.3.1/ld: warning: libboost_chrono.so.1.61.0, needed by /usr/local/boost161/lib//libboost_coroutine.so, not found (try using -rpath or -rpath-link)
/opt/rh/devtoolset-4/root/usr/libexec/gcc/x86_64-redhat-linux/5.3.1/ld: warning: libboost_system.so.1.61.0, needed by /usr/local/boost161/lib//libboost_coroutine.so, not found (try using -rpath or -rpath-link)
/usr/local/boost161/lib//libboost_coroutine.so: undefined reference to `boost::thread_detail::commit_once_region(boost::once_flag&)'
/usr/local/boost161/lib//libboost_coroutine.so: undefined reference to `jump_fcontext'
/usr/local/boost161/lib//libboost_coroutine.so: undefined reference to `boost::thread_detail::enter_once_region(boost::once_flag&)'
/usr/local/boost161/lib//libboost_coroutine.so: undefined reference to `make_fcontext'
collect2: error: ld returned 1 exit status

It is still not finding boost-context, boost-thread, etc. Are these libraries really in /usr/local/boost161/lib/?

-- 
Tiago de Paula Peixoto <tiago at skewed.de>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.skewed.de/pipermail/graph-tool/attachments/20170207/e9693cc2/attachment.asc>


More information about the graph-tool mailing list