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*

attachment.html (11.3 KB)

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

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.

attachment.html (8.38 KB)

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/7737cafb3a9a4a3667aadc9b9806ef7c1fd9a4ef

This patch should let you configure with '--disable-cgal' and compile
with your regular compiler without facing your original issue.

Cheers,

ale
.~´