Boost logo

Boost Users :

Subject: Re: [Boost-users] [EXTERNAL] [PBGL] compilation of example/dijkstra_shortest_paths.cpp failed
From: Belcourt, Kenneth (kbelco_at_[hidden])
Date: 2016-04-24 18:15:50



> On Apr 24, 2016, at 2:57 AM, Eisuke Kawashima <e.kawaschima_at_[hidden]> wrote:
>
> I tried to compile
> http://www.boost.org/doc/libs/1_60_0/libs/graph_parallel/example/dijkstra_sh
> ortest_paths.cpp,

This works for me with the head of the develop branch.

gcc.compile.c++ ../bin.v2/libs/graph_parallel/example/gcc-4.9.1/debug/threading-multi/dijkstra_shortest_paths.o

    "g++" -ftemplate-depth-128 -std=c++11 -O0 -fno-inline -Wall -g -fPIC -m64 -DBOOST_ALL_NO_LIB=1 -DBOOST_SYSTEM_DYN_LINK=1 -I".." -I"mpi/openmpi/1.6.4-gcc-4.9.1-RHEL6/include" -c -o "../bin.v2/libs/graph_parallel/example/gcc-4.9.1/debug/threading-multi/dijkstra_shortest_paths.o" "../libs/graph_parallel/example/dijkstra_shortest_paths.cpp”

Can you send just the compile line, rather than the link line, for this one target?

— Noel


> My environment is:
> * GCC 4.9.2
> * OpenMPI 1.10.2
> * boost 1.60.0
> * OS: Debian jessie
>
> The error, related to template, is long; the summary is:
> $ mpicxx -std=c++11 -lboost_mpi -lboost_serialization -lboost_system -
> lboost_graph_parallel dijkstra_shortest_paths.cpp
> In file included from boost/graph/dijkstra_shortest_paths.hpp:25:0,
> from dijkstra_shortest_paths.cpp:19:
> boost/pending/relaxed_heap.hpp: In instantiation of ‘bool
> boost::relaxed_heap...
> boost/graph/distributed/crauser_et_al_shortest_paths.hpp:377:54: required
> from ...
> boost/graph/distributed/detail/remote_update_set.hpp:148:7: required from
> ...
> boost/graph/distributed/crauser_et_al_shortest_paths.hpp:264:37: required
> from ...
> boost/graph/breadth_first_search.hpp:76:7: required from ...
> boost/graph/breadth_first_search.hpp:124:69: required from ...
> boost/graph/breadth_first_search.hpp:135:64: [ skipping 4 instantiation
> contexts, use -ftemplate-backtrace-limit=0 to disable ]
> boost/graph/distributed/dijkstra_shortest_paths.hpp:146:50: required from
> ...
> boost/graph/distributed/dijkstra_shortest_paths.hpp:200:45: required from
> ...
> boost/graph/dijkstra_shortest_paths.hpp:573:16: required from ...
> boost/graph/dijkstra_shortest_paths.hpp:595:35: required from ...
> boost/graph/dijkstra_shortest_paths.hpp:614:14: required from ...
> dijkstra_shortest_paths.cpp:74:64: required from here
> boost/pending/relaxed_heap.hpp:194:70: error: cannot convert ‘const
> value_type {aka const
> boost::optional<boost::detail::parallel::global_descriptor<long unsigned
> int> >}’ to ‘bool’ in return
> bool contains(const value_type& x) const { return groups[get(id, x)]; }
> ^


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net