← Back to team overview

yade-users team mailing list archive

Re: [Question #695081]: Compilation failed on vtk8.2.0

 

Question #695081 on Yade changed:
https://answers.launchpad.net/yade/+question/695081

Su Kan posted a new comment:
Thanks again, Bruno.
I don't know how to turn off RealHP mpmath precisionsDouble (I didn't find such options), but I did turn off MPFR, the error message is the same.

BTW, in prevoius error message, the error is about vtk, thus I turned
off VTK. But I still failed to compile, because of other errors, such as
redefinition and multiple definition:


```
In file included from /tmp/makepkg/yade/src/trunk/lib.0.cpp:10:
/tmp/makepkg/yade/src/trunk/core/main/pyboot.cpp:5:74: error: redefinition of 'boost::log::v2_mt_posix::sources::severity_logger<Logging::SeverityLevel> {anonymous}::logger'
    5 | CREATE_CPP_LOCAL_LOGGER("pyboot.cpp");
      |                                                                          ^     
In file included from /tmp/makepkg/yade/src/trunk/lib.0.cpp:9:
/tmp/makepkg/yade/src/trunk/lib/pyutil/gil.cpp:5:74: note: 'boost::log::v2_mt_posix::sources::severity_logger<Logging::SeverityLevel> {anonymous}::logger' previously declared here
    5 | CREATE_CPP_LOCAL_LOGGER("gil.cpp")
      |                                                     

```

```
In file included from /tmp/makepkg/yade/src/trunk/pkg/pfv/PeriodicFlowEngine.cpp:16,
                 from /tmp/makepkg/yade/src/trunk/pkg.2.cpp:26:
/tmp/makepkg/yade/src/trunk/pkg/pfv/FlowEngine_FlowEngine_PeriodicInfo.hpp:52:6: error: multiple definition of 'enum yade::UseFlowSolver'
   52 | enum /* class */ UseFlowSolver {
      |      ^~~~~~~~~~~~~
In file included from /tmp/makepkg/yade/src/trunk/pkg/pfv/FlowEngine.cpp:11,
                 from /tmp/makepkg/yade/src/trunk/pkg.2.cpp:24:
/tmp/makepkg/yade/src/trunk/pkg/pfv/FlowEngine_FlowEngineT.hpp:52:6: note: previous definition here
   52 | enum /* class */ UseFlowSolver {
      |      ^~~~~~~~~~~~~


```

And I noticed that there is  a note saying that 
```
/usr/include/boost/bind.hpp:41:273: note: '#pragma message: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use <boost/bind/bind.hpp> + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.'
   41 | )
      |               


In file included from /usr/include/CGAL/boost/graph/copy_face_graph.h:37,
                 from /usr/include/CGAL/Surface_mesh/Surface_mesh.h:53,
                 from /usr/include/CGAL/Surface_mesh.h:27,
                 from /tmp/makepkg/yade/src/trunk/lib/base/AliasCGAL.hpp:23,
                 from /tmp/makepkg/yade/src/trunk/lib/triangulation/RegularTriangulation.h:11,
                 from /tmp/makepkg/yade/src/trunk/lib/triangulation/Tenseur3.h:3,
                 from /tmp/makepkg/yade/src/trunk/lib/triangulation/KinematicLocalisationAnalyser.hpp:15,
                 from /tmp/makepkg/yade/src/trunk/lib/triangulation/KinematicLocalisationAnalyser.cpp:13,
                 from /tmp/makepkg/yade/src/build/lib.0.cpp:12:
/usr/include/boost/function_output_iterator.hpp:14:110: note: '#pragma message: This header is deprecated. Use <boost/iterator/function_output_iterator.hpp> instead.'
   14 | BOOST_HEADER_DEPRECATED("<boost/iterator/function_output_iterator.hpp>")
      |                                                                                                                                                                                                                                                   
```
I guess the problem is with my boost library

boost 1.75.0-2


Full log is posted at https://pastebin.ubuntu.com/p/sfk7gXSCFt/

I think maybe I should wait now, thanks again for your patience and
advice!

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.