Compiling error: 'transform_iterator' does not name a type
I tried to build graph-tool from the latest source on Ubuntu 12.04 server (x64) and after getting packages required by ./configure --enable-openmp I've run into a compile error gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 dpkg -s libboost-dev | grep 'Version' Version: 1.48.0.2 Python 2.7.3 make all-recursive make[1]: Entering directory `/home/val/graph_tool_mp' Making all in src make[2]: Entering directory `/home/val/graph_tool_mp/src' Making all in graph make[3]: Entering directory `/home/val/graph_tool_mp/src/graph' Making all in centrality make[4]: Entering directory `/home/val/graph_tool_mp/src/graph/centrality' CXX graph_betweenness.lo In file included from ./../graph_filtering.hh:51:0, from graph_betweenness.cc:18: ./../graph_adaptor.hh:139:13: error: 'transform_iterator' does not name a type ./../graph_adaptor.hh:171:13: error: 'transform_iterator' does not name a type ./../graph_adaptor.hh:179:13: error: 'transform_iterator' does not name a type ./../graph_adaptor.hh: In instantiation of 'boost::transformed_out_range<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::no_property, boost::property<boost::edge_index_t, long unsigned int> > >': and about 5MB worth of error messages follow :) I could not find an exact match for this error on Google, except a possible need for some forward includes. If there is a suitable package with OpenMP support available somewhere for 12.04 that would be a great alternative to compiling oneself. The Precise repo for 12.04 (from http://downloads.skewed.de/apt/precise/) works great, but as far as I can tell, does not include OpenMP support(running algorithms only utilize one core). -- View this message in context: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/... Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com.
On 01/13/2013 02:38 PM, VaSa wrote:
I tried to build graph-tool from the latest source on Ubuntu 12.04 server (x64) and after getting packages required by ./configure --enable-openmp I've run into a compile error
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 dpkg -s libboost-dev | grep 'Version' Version: 1.48.0.2 Python 2.7.3
The problem is that this version of Boost is now too old to compile graph-tool. It would require some annoying backflips to support this, together with the newer versions. However, you can install a compatible Boost version from here: https://launchpad.net/~mapnik/+archive/boost graph-tool will probably compile fine with this. I'll make a package for precise which will depend on this, as soon as I find some time. Cheers, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>
On 01/14/2013 01:44 PM, Tiago de Paula Peixoto wrote:
On 01/13/2013 02:38 PM, VaSa wrote:
I tried to build graph-tool from the latest source on Ubuntu 12.04 server (x64) and after getting packages required by ./configure --enable-openmp I've run into a compile error
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 dpkg -s libboost-dev | grep 'Version' Version: 1.48.0.2 Python 2.7.3
The problem is that this version of Boost is now too old to compile graph-tool. It would require some annoying backflips to support this, together with the newer versions.
However, you can install a compatible Boost version from here:
https://launchpad.net/~mapnik/+archive/boost
graph-tool will probably compile fine with this. I'll make a package for precise which will depend on this, as soon as I find some time.
Packages depending on this backport are now available in the repository. They also were compiled with openmp enabled. Cheers, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>
Tiago, something did not go as planned. sudo apt-get update ... Get:1 http://downloads.skewed.de precise Release.gpg [490 B] Hit http://security.ubuntu.com precise-security/universe Translation-en Get:2 http://downloads.skewed.de precise Release [2,436 B] Get:3 http://downloads.skewed.de precise/universe Sources [1,074 B] Ign http://ppa.launchpad.net precise/main Translation-en_US Ign http://ppa.launchpad.net precise/main Translation-en Ign http://ppa.launchpad.net precise/main Translation-en_US Get:4 http://downloads.skewed.de precise/universe amd64 Packages [959 B] Get:5 http://downloads.skewed.de precise/universe i386 Packages [956 B] Ign http://downloads.skewed.de precise/universe TranslationIndex Ign http://ppa.launchpad.net precise/main Translation-en Ign http://ppa.launchpad.net precise/main Translation-en_US Ign http://ppa.launchpad.net precise/main Translation-en Ign http://downloads.skewed.de precise/universe Translation-en_US Ign http://downloads.skewed.de precise/universe Translation-en Fetched 5,915 B in 2s (2,333 B/s) Reading package lists... Done val@machine:~$ sudo apt-get install graph-tool Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: * graph-tool : Depends: libboost1.46-dev but it is not going to be installed* E: Unable to correct problems, you have held broken packages. It seems to request even an older version than before. I am on 1.49 now -- View this message in context: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/... Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com.
Sorry, was trying to install wrong package graph-tool with sudo apt-get install python-graph-tool everything works! :) Thanks again for updating 12.04 repo. PS http://projects.skewed.de/graph-tool/ticket/128 is present in repo version just as it was in my compiled version -- View this message in context: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/... Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com.
participants (2)
-
Tiago de Paula Peixoto -
VaSa