make[3]: *** [graph_triangulation.lo] Error 1
*Hi Tiago,* *I tried to install graph-tool on macOS again and non of port install py-graph-tool or brew install graph-tool works on my laptop and I get **this error:* Segmentation fault: 11 *Then I tried to download the source and I ran:* ./configure CPPFLAGS="-I/usr/local/Cellar/py2cairo/1.17.1/include/" --with-cgal=/usr/local/Cellar/cgal/ *and then* make install *and I got this error message:* */usr/local/include/CGAL/internal/Triangulation_ds_circulators_3.h:181:1:* *note: *candidate: '*template<class Tds_> bool CGAL::internal::operator==(typename Tds_::Cell_handle, CGAL::internal::Triangulation_ds_cell_circulator_3<Tds_>)*' *operator*==(typename Tds_::Cell_handle ch, Triangulation_ds_cell_circulator_3<Tds_> cc) *^~~~~~~~* */usr/local/include/CGAL/internal/Triangulation_ds_circulators_3.h:181:1:* *note: * template argument deduction/substitution failed: In file included from */opt/local/include/gcc8/c++/memory:76*, from */usr/local/include/boost/config/no_tr1/memory.hpp:21* , from */usr/local/include/boost/get_pointer.hpp:14*, from */usr/local/include/boost/python/object/pointer_holder.hpp:11*, from */usr/local/include/boost/python/to_python_indirect.hpp:10*, from */usr/local/include/boost/python/converter/arg_to_python.hpp:10*, from */usr/local/include/boost/python/call.hpp:15*, from */usr/local/include/boost/python/object_core.hpp:14*, from */usr/local/include/boost/python/object.hpp:9*, from *../../../src/graph/graph.hh:23*, from *graph_triangulation.cc:23*: */opt/local/include/gcc8/c++/bits/stl_function.h:356:20:* *note: * '*CGAL::Triangulation_vertex_base_3<CGAL::Epick, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_3<CGAL::Epick, CGAL::Triangulation_ds_vertex_base_3<void> >, CGAL::Delaunay_triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_cell_base_3<CGAL::Epick, CGAL::Triangulation_ds_cell_base_3<void> > >, CGAL::Sequential_tag> > >*' is not derived from ' *CGAL::internal::Triangulation_ds_cell_circulator_3<Tds_>*' { return *__x == __y*; } *~~~~^~~~~~* make[3]: *** [graph_triangulation.lo] Error 1 make[2]: *** [install-recursive] Error 1 make[1]: *** [install-recursive] Error 1 make: *** [install-recursive] Error 1 It is really annoying because non of these approaches work. I also would like to install new version of graph tool on python 2.7 and it fails. any suggestion? Thanks in advance. Best, Zahra
Am 07.11.18 um 10:05 schrieb Zahra Sheikhbahaee:
any suggestion?
The homebrew recipe must be patched against the new version of CGAL. Could you please open an issue at the homebrew issue tracker, so that this can be handled there? Thanks! Best, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>
Hi Tiage, I was compiling graph-tool with gcc8.2 and I was getting this error then I used gcc7 with this command line: ./configure CPPFLAGS="-I/Users/anaconda2/pkgs/pycairo-1.18.0-py27h4d1f301_0/include -I/usr/local/include" -with-cgal=/Users/anaconda2/pkgs/cgal-4.12-py27h8634a1c_1 --prefix=/Users/anaconda2 LDFLAGS="-L/usr/local/lib" CC=gcc-7 CXX=g++-7 It got compiled but again when I import graph-tool in python, I receive this error message:
from graph_tool.all import *
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/anaconda2/lib/python2.7/site-packages/graph_tool/__init__.py", line 111, in <module> dl_import("from . import libgraph_tool_core as libcore") File "/Users/anaconda2/lib/python2.7/site-packages/graph_tool/dl_import.py", line 61, in dl_import exec(import_expr, local_dict, global_dict) File "<string>", line 1, in <module> ImportError: dlopen(/Users/anaconda2/lib/python2.7/site-packages/graph_tool/libgraph_tool_core.so, 8): Symbol not found: __ZN5boost6system6detail25generic_category_instanceE Referenced from: /Users/anaconda2/lib/python2.7/site-packages/graph_tool/libgraph_tool_core.so Expected in: flat namespace in /Users/anaconda2/lib/python2.7/site-packages/graph_tool/libgraph_tool_core.so
What can be the problem now? Thanks again. Best, Z. On Thu, Nov 8, 2018 at 1:33 AM Tiago de Paula Peixoto <tiago@skewed.de> wrote:
Am 07.11.18 um 10:05 schrieb Zahra Sheikhbahaee:
any suggestion?
The homebrew recipe must be patched against the new version of CGAL. Could you please open an issue at the homebrew issue tracker, so that this can be handled there? Thanks!
Best, Tiago
-- Tiago de Paula Peixoto <tiago@skewed.de>
_______________________________________________ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool
Ni! Hi Zahra, This last error seems to be a consequence of boost being compiled with a different compiler version than graph_tool. I encourage you to follow Tiago's request and open a bug with the homebrew issue tracker. Only this will properly fix things for you and others in the long run. Now, _assuming you don't need the triangulation function_, I have a patch applied to one of my systems which lets me disable CGAL: https://git.skewed.de/solstag/graph-tool/commit/7737cafb3a9a4a3667aadc9b9806... This patch should let you configure with '--disable-cgal' and compile with your regular compiler without facing your original issue. Cheers, ale .~´ Le jeudi 08 novembre 2018 à 07:17 -0500, Zahra Sheikhbahaee a écrit :
Hi Tiage,
I was compiling graph-tool with gcc8.2 and I was getting this error then I used gcc7 with this command line: ./configure CPPFLAGS="-I/Users/anaconda2/pkgs/pycairo-1.18.0- py27h4d1f301_0/include -I/usr/local/include" -with- cgal=/Users/anaconda2/pkgs/cgal-4.12-py27h8634a1c_1 -- prefix=/Users/anaconda2 LDFLAGS="-L/usr/local/lib" CC=gcc-7 CXX=g++-7
It got compiled but again when I import graph-tool in python, I receive this error message:
from graph_tool.all import * Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/anaconda2/lib/python2.7/site- packages/graph_tool/__init__.py", line 111, in <module> dl_import("from . import libgraph_tool_core as libcore") File "/Users/anaconda2/lib/python2.7/site- packages/graph_tool/dl_import.py", line 61, in dl_import exec(import_expr, local_dict, global_dict) File "<string>", line 1, in <module> ImportError: dlopen(/Users/anaconda2/lib/python2.7/site- packages/graph_tool/libgraph_tool_core.so, 8): Symbol not found: __ZN5boost6system6detail25generic_category_instanceE Referenced from: /Users/anaconda2/lib/python2.7/site- packages/graph_tool/libgraph_tool_core.so Expected in: flat namespace in /Users/anaconda2/lib/python2.7/site- packages/graph_tool/libgraph_tool_core.so
What can be the problem now? Thanks again.
Best, Z.
On Thu, Nov 8, 2018 at 1:33 AM Tiago de Paula Peixoto < tiago@skewed.de> wrote:
Am 07.11.18 um 10:05 schrieb Zahra Sheikhbahaee:
any suggestion?
The homebrew recipe must be patched against the new version of CGAL. Could you please open an issue at the homebrew issue tracker, so that this can be handled there? Thanks!
Best, Tiago
_______________________________________________ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool
participants (3)
-
Alexandre Hannud Abdo -
Tiago de Paula Peixoto -
Zahra Sheikhbahaee