← Back to team overview

yade-users team mailing list archive

Re: [Question #693698]: Trouble when compiling with g++-9 or g++-7

 

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

Sacha Duverger posted a new comment:
Thank you for these suggestions

The version of libboost-all-dev installed on my machine is
1.65.1.0ubuntu1, but I couldn't figure out if it is compatible with
g++-9.

I added " SET(REAL_MULTI_HP "OFF") " right after the warning in
CMakeLists.txt . The output of cmake says that RealHP is indeed
disabled, but make still fails. The compilation is going a little
further though : 7% instead of 1% when RealHP was enabled.

Here are the outputs : 
 ####################################################################################################################################################################################
Running cmake and make with g++-9 and RealHP disabled

## cmake command

cmake -DENABLE_GUI=ON -DENABLE_MPI=OFF -DENABLE_PFVFLOW=OFF
-DENABLE_TWOPHASEFLOW=OFF -DENABLE_LBMFLOW=OFF
-DENABLE_POTENTIAL_BLOCKS=OFF -DCMAKE_CXX_COMPILER=g++-9
-DCMAKE_C_COMPILER=gcc-9 -DCMAKE_INSTALL_PREFIX=../install ../trunk

## cmake output

-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc-9 - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++-9 - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Version is set to 2020-10-20.git-427f64c
-- GCC Version >= 4.8. Adding -ftrack-macro-expansion=0
-- GCC Version >= 4.8. Adding -save-temps
-- Found Eigen3: /usr/include/eigen3 (Required is at least version "2.91.0") 
-- Log filtering: enabled
-- Enabling boost::log library and DEBUG=OFF. Logging will work nicely, backtraces will not have debug info, files will be small.
Loop on the following python versions and check available dependencies:3.8;3.7;3.6;3.5;3.4;3.3;3.2;3.1;3.0;2.7;2.6
-- Found PythonInterp: /usr/bin/python (found version "2.7.17") 
-- Found PythonInterp: /usr/bin/python3.6 (found version "3.6.9") 
Python version 3.6.9 found, try to import dependencies...
-- Found NumPy: version "1.18.4" /home/sacha.duverger/.local/lib/python3.6/site-packages/numpy/core/include
-- Found IPython: /usr/lib/python3/dist-packages/IPython  
-- Found matplotlib: /home/sacha.duverger/.local/lib/python3.6/site-packages/matplotlib  
-- Found pygraphviz: /usr/lib/python3/dist-packages/pygraphviz  
-- Found Xlib: /usr/lib/python3/dist-packages/Xlib  
-- Found future: /usr/lib/python3/dist-packages/future  
-- Found past: /usr/lib/python3/dist-packages/past  
-- Found tkinter: /usr/lib/python3.6/tkinter  
--   Boost_VERSION: 106501
--   Boost_LIB_VERSION: 1_65_1
--   Boost_INCLUDE_DIRS: /usr/include
--   Boost_LIBRARIES: /usr/lib/x86_64-linux-gnu/libboost_python3-py36.so/usr/lib/x86_64-linux-gnu/libboost_thread.so-lpthread/usr/lib/x86_64-linux-gnu/libboost_filesystem.so/usr/lib/x86_64-linux-gnu/libboost_iostreams.so/usr/lib/x86_64-linux-gnu/libboost_regex.so/usr/lib/x86_64-linux-gnu/libboost_serialization.so/usr/lib/x86_64-linux-gnu/libboost_system.so/usr/lib/x86_64-linux-gnu/libboost_date_time.so/usr/lib/x86_64-linux-gnu/libboost_log.so/usr/lib/x86_64-linux-gnu/libboost_chrono.so/usr/lib/x86_64-linux-gnu/libboost_atomic.so/usr/lib/x86_64-linux-gnu/libboost_log_setup.so
Found all python dependencies with version 3.6.9, will compile yade with that.
-- Chosen compiler flags are: CMAKE_CXX_FLAGS =   -Werror -Wformat -Wformat-security -Wformat-nonliteral -Wall -Wextra -Wnarrowing -Wreturn-type -Wuninitialized -Wfloat-conversion -Wcast-align -Wdisabled-optimization -Wtrampolines -Wpointer-arith -Wswitch-bool -Wwrite-strings -Wnon-virtual-dtor -Wreturn-local-addr  -Wno-error=maybe-uninitialized -Wno-comment -Wno-cast-function-type -Wno-deprecated-copy -Wno-error=cpp -fdce -fstack-protector-strong 
-- Determining preferred precision of Real numbers
-- Will now try to find python-mpmath using /usr/bin/python3.6
-- Warning: RealHP<N> higher precision types will use slow boost cpp_bin_float, consider passing cmake option ENABLE_MPFR=ON to fix this.
-- mpfr disabled
-- Will use PrecisionDouble as Real type with 15 decimal places precision and use 64 bits of storage.
-- Found BZip2: /usr/lib/x86_64-linux-gnu/libbz2.so (found version "1.0.6") 
-- Looking for BZ2_bzCompressInit
-- Looking for BZ2_bzCompressInit - found
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11") 
-- Found Eigen3, version: 3.3.4
-- Disable vectorization
CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
  The new name for the 'vtkIOParallelXML' component is 'IOParallelXML'
Call Stack (most recent call first):
  CMakeLists.txt:643 (FIND_PACKAGE)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
  The new name for the 'vtkCommonCore' component is 'CommonCore'
Call Stack (most recent call first):
  CMakeLists.txt:643 (FIND_PACKAGE)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
  The new name for the 'vtkIOImage' component is 'IOImage'
Call Stack (most recent call first):
  CMakeLists.txt:643 (FIND_PACKAGE)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
  The new name for the 'vtkIOXML' component is 'IOXML'
Call Stack (most recent call first):
  CMakeLists.txt:643 (FIND_PACKAGE)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
  The new name for the 'vtkFiltersCore' component is 'FiltersCore'
Call Stack (most recent call first):
  CMakeLists.txt:643 (FIND_PACKAGE)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
  The new name for the 'vtkImagingCore' component is 'ImagingCore'
Call Stack (most recent call first):
  CMakeLists.txt:643 (FIND_PACKAGE)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
  The new name for the 'vtkRenderingCore' component is 'RenderingCore'
Call Stack (most recent call first):
  CMakeLists.txt:643 (FIND_PACKAGE)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
  The new name for the 'vtkImagingGeneral' component is 'ImagingGeneral'
Call Stack (most recent call first):
  CMakeLists.txt:643 (FIND_PACKAGE)


CMake Deprecation Warning at /usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:71 (message):
  The new name for the 'vtkImagingHybrid' component is 'ImagingHybrid'
Call Stack (most recent call first):
  CMakeLists.txt:643 (FIND_PACKAGE)


-- Found Threads: TRUE  
-- Found VTK
-- Found OpenMP_C: -fopenmp (found version "4.5") 
-- Found OpenMP_CXX: -fopenmp (found version "4.5") 
-- Found OpenMP: TRUE (found version "4.5")  
-- Found OpenMP
-- GTS using gts-config /usr/bin/gts-config
-- Using GTS from /usr
CMake Warning (dev) at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
  The package name passed to `find_package_handle_standard_args` (PkgConfig)
  does not match the name of the calling package (glib2).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  /usr/share/cmake-3.18/Modules/FindPkgConfig.cmake:59 (find_package_handle_standard_args)
  cMake/Findglib2.cmake:30 (INCLUDE)
  CMakeLists.txt:676 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
-- Checking for one of the modules 'glib-2.0'
-- Found GLib2: glib-2.0 /usr/include/glib-2.0;/usr/lib/x86_64-linux-gnu/glib-2.0/include
-- Looking for include file glib/gregex.h
-- Looking for include file glib/gregex.h - not found
-- Found GTS
CMake Warning (dev) at /usr/share/cmake-3.18/Modules/FindOpenGL.cmake:305 (message):
  Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
  available.  Run "cmake --help-policy CMP0072" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  FindOpenGL found both a legacy GL library:

    OPENGL_gl_LIBRARY: /usr/lib/x86_64-linux-gnu/libGL.so

  and GLVND libraries for OpenGL and GLX:

    OPENGL_opengl_LIBRARY: /usr/lib/x86_64-linux-gnu/libOpenGL.so
    OPENGL_glx_LIBRARY: /usr/lib/x86_64-linux-gnu/libGLX.so

  OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
  compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
  CMakeLists.txt:694 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so   
-- Found GLUT: /usr/lib/x86_64-linux-gnu/libglut.so  
-- USE QT5
-- Found QGLVIEWER-qt5: /usr/include/QGLViewer  
-- Found GUI-Qt5-LIBS
-- GMP libs: /usr/lib/x86_64-linux-gnu/libgmp.so /usr/lib/x86_64-linux-gnu/libgmpxx.so
-- Found GMP: /usr/include/x86_64-linux-gnu  
-- Found CGAL: /usr/include, /usr/lib/x86_64-linux-gnu/libCGAL.so
-- GMP libs: /usr/lib/x86_64-linux-gnu/libgmp.so /usr/lib/x86_64-linux-gnu/libgmpxx.so
-- Found CGAL
-- Found GL2PS: /usr/lib/x86_64-linux-gnu/libgl2ps.so  
-- Found GL2PS
-- Found OpenBlas: /usr/lib/x86_64-linux-gnu/libopenblas.so  
-- BLAS_INCLUDE_DIR=/usr/include/x86_64-linux-gnu
-- Looking for sgemm_
-- Looking for sgemm_ - not found
-- Looking for sgemm_
-- Looking for sgemm_ - found
-- Found BLAS: /usr/lib/x86_64-linux-gnu/libopenblas.so  
-- Looking for cheev_
-- Looking for cheev_ - found
-- A library with LAPACK API found.
-- Found OpenBlas
-- Found Lapack
-- md5sum of freegult /usr/include/GL/freeglut_std.h is: 791a2febd8584ec530cdd7676191b6d5
-- freegult version is 2.8.1
Yade will be installed to /home/sacha.duverger/packages/yade/install
-- Suffix is set to -2020-10-20.git-427f64c
-- LIBRARY_OUTPUT_PATH is set to lib/x86_64-linux-gnu
-- runtimePREFIX is set to /home/sacha.duverger/packages/yade/install
-- Could NOT find gts (missing: PY_gts) 
-- Use embedded version of gts. Please, consider installing the corresponding package
-- linking -lquadmath skipped
-- VTK version >7 is found
-- ===========================================================
-- Yade configured with following features: BoostLog PrecisionDouble Odeint VTK OpenMP GTS GUI-Qt5 CGAL FEMLIKE GL2PS PotentialParticles
-- Disabled features: RealHP mpmath MPFR PFVFLOW PFVFLOW LINSOLV MPI TWOPHASEFLOW SPH DEFORM LIQMIGRATION LBMFLOW MASK_ARBITRARY THERMAL PARTIALSAT PROFILING PotentialBlocks
-- Using MAX_LOG_LEVEL=5, ENABLE_LOGGER=ON
-- Optimized build
-- C++ standard version: 17
-- ===========================================================
-- Configuring done
-- Generating done
-- Build files have been written to: /home/sacha.duverger/packages/yade/build

## make install output

Scanning dependencies of target _GLViewer_autogen
[  0%] Automatic MOC for target _GLViewer
Scanning dependencies of target _gts
Scanning dependencies of target _polyhedra_utils
Scanning dependencies of target _packObb
[  0%] Building CXX object py/CMakeFiles/_gts.dir/3rd-party/pygts-0.3.1/cleanup.cpp.o
[  0%] Building CXX object py/CMakeFiles/_packObb.dir/pack/_packObb.cpp.o
[  1%] Building CXX object py/CMakeFiles/_polyhedra_utils.dir/_polyhedra_utils.cpp.o
[  1%] Built target _GLViewer_autogen
[  2%] Building CXX object py/CMakeFiles/_gts.dir/3rd-party/pygts-0.3.1/edge.cpp.o
Scanning dependencies of target WeightedAverage2d
[  2%] Building CXX object py/CMakeFiles/WeightedAverage2d.dir/WeightedAverage2d.cpp.o
[  2%] Building CXX object py/CMakeFiles/_gts.dir/3rd-party/pygts-0.3.1/face.cpp.o
[  3%] Building CXX object py/CMakeFiles/_gts.dir/3rd-party/pygts-0.3.1/object.cpp.o
[  3%] Building CXX object py/CMakeFiles/_gts.dir/3rd-party/pygts-0.3.1/point.cpp.o
[  4%] Building CXX object py/CMakeFiles/_gts.dir/3rd-party/pygts-0.3.1/pygts.cpp.o
[  4%] Building CXX object py/CMakeFiles/_gts.dir/3rd-party/pygts-0.3.1/segment.cpp.o
[  4%] Building CXX object py/CMakeFiles/_gts.dir/3rd-party/pygts-0.3.1/surface.cpp.o
[  5%] Building CXX object py/CMakeFiles/_gts.dir/3rd-party/pygts-0.3.1/triangle.cpp.o
[  5%] Building CXX object py/CMakeFiles/_gts.dir/3rd-party/pygts-0.3.1/vertex.cpp.o
[  6%] Linking CXX shared library lib/x86_64-linux-gnu/_gts.so
[  6%] Built target _gts
In file included from /usr/include/python3.6m/numpy/ndarraytypes.h:1809,
                 from /home/sacha.duverger/packages/yade/trunk/py/_polyhedra_utils.cpp:14:
/usr/include/python3.6m/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
   15 | #warning "Using deprecated NumPy API, disable it by " \
      |  ^~~~~~~
Scanning dependencies of target _GLViewer
[  7%] Building CXX object gui/CMakeFiles/_GLViewer.dir/_GLViewer_autogen/mocs_compilation.cpp.o
In file included from /usr/include/boost/cstdfloat.hpp:27,
                 from /home/sacha.duverger/packages/yade/trunk/lib/high-precision/Real.hpp:74,
                 from /home/sacha.duverger/packages/yade/trunk/lib/base/Math.hpp:12,
                 from /home/sacha.duverger/packages/yade/trunk/py/pack/_packObb.cpp:6:
/usr/include/boost/math/cstdfloat/cstdfloat_cmath.hpp:539:43: error: 'boost::math::cstdfloat::detail::float_internal128_t boost::math::cstdfloat::detail::abs(boost::math::cstdfloat::detail::float_internal128_t)' conflicts with a previous declaration
  539 |     using boost::math::cstdfloat::detail::abs;
      |                                           ^~~
In file included from /usr/include/c++/9/cstdlib:77,
                 from /usr/include/c++/9/ext/string_conversions.h:41,
                 from /usr/include/c++/9/bits/basic_string.h:6493,
                 from /usr/include/c++/9/string:55,
                 from /usr/include/c++/9/stdexcept:39,
                 from /usr/include/c++/9/array:39,
                 from /usr/include/c++/9/tuple:39,
                 from /usr/include/c++/9/mutex:38,
                 from /home/sacha.duverger/packages/yade/trunk/lib/base/Singleton.hpp:5,
                 from /home/sacha.duverger/packages/yade/trunk/lib/base/Logging.hpp:36,
                 from /home/sacha.duverger/packages/yade/trunk/py/pack/_packObb.cpp:5:
/usr/include/c++/9/bits/std_abs.h:103:3: note: previous declaration 'constexpr __float128 std::abs(__float128)'
  103 |   abs(__float128 __x)
      |   ^~~
In file included from /usr/include/boost/cstdfloat.hpp:27,
                 from /home/sacha.duverger/packages/yade/trunk/lib/high-precision/Real.hpp:74,
                 from /home/sacha.duverger/packages/yade/trunk/lib/base/Math.hpp:12,
                 from /home/sacha.duverger/packages/yade/trunk/lib/smoothing/WeightedAverage2d.hpp:5,
                 from /home/sacha.duverger/packages/yade/trunk/py/WeightedAverage2d.cpp:2:
/usr/include/boost/math/cstdfloat/cstdfloat_cmath.hpp:539:43: error: 'boost::math::cstdfloat::detail::float_internal128_t boost::math::cstdfloat::detail::abs(boost::math::cstdfloat::detail::float_internal128_t)' conflicts with a previous declaration
  539 |     using boost::math::cstdfloat::detail::abs;
      |                                           ^~~
In file included from /usr/include/c++/9/cstdlib:77,
                 from /usr/include/c++/9/ext/string_conversions.h:41,
                 from /usr/include/c++/9/bits/basic_string.h:6493,
                 from /usr/include/c++/9/string:55,
                 from /usr/include/c++/9/stdexcept:39,
                 from /usr/include/c++/9/array:39,
                 from /usr/include/c++/9/tuple:39,
                 from /usr/include/c++/9/mutex:38,
                 from /home/sacha.duverger/packages/yade/trunk/lib/base/Singleton.hpp:5,
                 from /home/sacha.duverger/packages/yade/trunk/lib/base/Logging.hpp:36,
                 from /home/sacha.duverger/packages/yade/trunk/py/WeightedAverage2d.cpp:1:
/usr/include/c++/9/bits/std_abs.h:103:3: note: previous declaration 'constexpr __float128 std::abs(__float128)'
  103 |   abs(__float128 __x)
      |   ^~~
In file included from /usr/include/boost/cstdfloat.hpp:27,
                 from /home/sacha.duverger/packages/yade/trunk/lib/high-precision/Real.hpp:74,
                 from /home/sacha.duverger/packages/yade/trunk/lib/base/Math.hpp:12,
                 from /home/sacha.duverger/packages/yade/trunk/core/Omega.hpp:20,
                 from /home/sacha.duverger/packages/yade/trunk/py/_polyhedra_utils.cpp:9:
/usr/include/boost/math/cstdfloat/cstdfloat_cmath.hpp:539:43: error: 'boost::math::cstdfloat::detail::float_internal128_t boost::math::cstdfloat::detail::abs(boost::math::cstdfloat::detail::float_internal128_t)' conflicts with a previous declaration
  539 |     using boost::math::cstdfloat::detail::abs;
      |                                           ^~~
In file included from /usr/include/c++/9/cstdlib:77,
                 from /usr/include/c++/9/ext/string_conversions.h:41,
                 from /usr/include/c++/9/bits/basic_string.h:6493,
                 from /usr/include/c++/9/string:55,
                 from /usr/include/c++/9/stdexcept:39,
                 from /usr/include/c++/9/array:39,
                 from /usr/include/c++/9/tuple:39,
                 from /usr/include/c++/9/mutex:38,
                 from /home/sacha.duverger/packages/yade/trunk/lib/base/Singleton.hpp:5,
                 from /home/sacha.duverger/packages/yade/trunk/lib/base/Logging.hpp:36,
                 from /home/sacha.duverger/packages/yade/trunk/py/_polyhedra_utils.cpp:7:
/usr/include/c++/9/bits/std_abs.h:103:3: note: previous declaration 'constexpr __float128 std::abs(__float128)'
  103 |   abs(__float128 __x)
      |   ^~~
py/CMakeFiles/_packObb.dir/build.make:81: recipe for target 'py/CMakeFiles/_packObb.dir/pack/_packObb.cpp.o' failed
make[2]: *** [py/CMakeFiles/_packObb.dir/pack/_packObb.cpp.o] Error 1
CMakeFiles/Makefile2:437: recipe for target 'py/CMakeFiles/_packObb.dir/all' failed
make[1]: *** [py/CMakeFiles/_packObb.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[  7%] Building CXX object gui/CMakeFiles/_GLViewer.dir/qt5/GLViewer.cpp.o
py/CMakeFiles/WeightedAverage2d.dir/build.make:81: recipe for target 'py/CMakeFiles/WeightedAverage2d.dir/WeightedAverage2d.cpp.o' failed
make[2]: *** [py/CMakeFiles/WeightedAverage2d.dir/WeightedAverage2d.cpp.o] Error 1
CMakeFiles/Makefile2:577: recipe for target 'py/CMakeFiles/WeightedAverage2d.dir/all' failed
make[1]: *** [py/CMakeFiles/WeightedAverage2d.dir/all] Error 2
[  8%] Building CXX object gui/CMakeFiles/_GLViewer.dir/qt5/_GLViewer.cpp.o
In file included from /usr/include/boost/cstdfloat.hpp:27,
                 from /home/sacha.duverger/packages/yade/trunk/lib/high-precision/Real.hpp:74,
                 from /home/sacha.duverger/packages/yade/trunk/lib/base/Math.hpp:12,
                 from /home/sacha.duverger/packages/yade/trunk/core/Omega.hpp:20,
                 from /home/sacha.duverger/packages/yade/build/gui/_GLViewer_autogen/OXRBQHTNNB/../../../../trunk/gui/qt5/GLViewer.hpp:6,
                 from /home/sacha.duverger/packages/yade/build/gui/_GLViewer_autogen/OXRBQHTNNB/moc_GLViewer.cpp:9,
                 from /home/sacha.duverger/packages/yade/build/gui/_GLViewer_autogen/mocs_compilation.cpp:2:
/usr/include/boost/math/cstdfloat/cstdfloat_cmath.hpp:539:43: error: 'boost::math::cstdfloat::detail::float_internal128_t boost::math::cstdfloat::detail::abs(boost::math::cstdfloat::detail::float_internal128_t)' conflicts with a previous declaration
  539 |     using boost::math::cstdfloat::detail::abs;
      |                                           ^~~
In file included from /usr/include/c++/9/cstdlib:77,
                 from /usr/include/c++/9/stdlib.h:36,
                 from /usr/include/python3.6m/Python.h:34,
                 from /usr/include/boost/python/detail/wrap_python.hpp:151,
                 from /home/sacha.duverger/packages/yade/trunk/core/Omega.hpp:14,
                 from /home/sacha.duverger/packages/yade/build/gui/_GLViewer_autogen/OXRBQHTNNB/../../../../trunk/gui/qt5/GLViewer.hpp:6,
                 from /home/sacha.duverger/packages/yade/build/gui/_GLViewer_autogen/OXRBQHTNNB/moc_GLViewer.cpp:9,
                 from /home/sacha.duverger/packages/yade/build/gui/_GLViewer_autogen/mocs_compilation.cpp:2:
/usr/include/c++/9/bits/std_abs.h:103:3: note: previous declaration 'constexpr __float128 std::abs(__float128)'
  103 |   abs(__float128 __x)
      |   ^~~
In file included from /usr/include/boost/cstdfloat.hpp:27,
                 from /home/sacha.duverger/packages/yade/trunk/lib/high-precision/Real.hpp:74,
                 from /home/sacha.duverger/packages/yade/trunk/lib/base/Math.hpp:12,
                 from /home/sacha.duverger/packages/yade/trunk/core/Omega.hpp:20,
                 from /home/sacha.duverger/packages/yade/trunk/gui/qt5/GLViewer.hpp:6,
                 from /home/sacha.duverger/packages/yade/trunk/gui/qt5/GLViewer.cpp:9:
/usr/include/boost/math/cstdfloat/cstdfloat_cmath.hpp:539:43: error: 'boost::math::cstdfloat::detail::float_internal128_t boost::math::cstdfloat::detail::abs(boost::math::cstdfloat::detail::float_internal128_t)' conflicts with a previous declaration
  539 |     using boost::math::cstdfloat::detail::abs;
      |                                           ^~~
In file included from /usr/include/c++/9/cstdlib:77,
                 from /usr/include/c++/9/stdlib.h:36,
                 from /usr/include/python3.6m/Python.h:34,
                 from /usr/include/boost/python/detail/wrap_python.hpp:151,
                 from /home/sacha.duverger/packages/yade/trunk/core/Omega.hpp:14,
                 from /home/sacha.duverger/packages/yade/trunk/gui/qt5/GLViewer.hpp:6,
                 from /home/sacha.duverger/packages/yade/trunk/gui/qt5/GLViewer.cpp:9:
/usr/include/c++/9/bits/std_abs.h:103:3: note: previous declaration 'constexpr __float128 std::abs(__float128)'
  103 |   abs(__float128 __x)
      |   ^~~
In file included from /usr/include/boost/cstdfloat.hpp:27,
                 from /home/sacha.duverger/packages/yade/trunk/lib/high-precision/Real.hpp:74,
                 from /home/sacha.duverger/packages/yade/trunk/lib/base/Math.hpp:12,
                 from /home/sacha.duverger/packages/yade/trunk/core/Omega.hpp:20,
                 from /home/sacha.duverger/packages/yade/trunk/gui/qt5/GLViewer.hpp:6,
                 from /home/sacha.duverger/packages/yade/trunk/gui/qt5/_GLViewer.cpp:1:
/usr/include/boost/math/cstdfloat/cstdfloat_cmath.hpp:539:43: error: 'boost::math::cstdfloat::detail::float_internal128_t boost::math::cstdfloat::detail::abs(boost::math::cstdfloat::detail::float_internal128_t)' conflicts with a previous declaration
  539 |     using boost::math::cstdfloat::detail::abs;
      |                                           ^~~
In file included from /usr/include/c++/9/cstdlib:77,
                 from /usr/include/c++/9/stdlib.h:36,
                 from /usr/include/python3.6m/Python.h:34,
                 from /usr/include/boost/python/detail/wrap_python.hpp:151,
                 from /home/sacha.duverger/packages/yade/trunk/core/Omega.hpp:14,
                 from /home/sacha.duverger/packages/yade/trunk/gui/qt5/GLViewer.hpp:6,
                 from /home/sacha.duverger/packages/yade/trunk/gui/qt5/_GLViewer.cpp:1:
/usr/include/c++/9/bits/std_abs.h:103:3: note: previous declaration 'constexpr __float128 std::abs(__float128)'
  103 |   abs(__float128 __x)
      |   ^~~
gui/CMakeFiles/_GLViewer.dir/build.make:81: recipe for target 'gui/CMakeFiles/_GLViewer.dir/_GLViewer_autogen/mocs_compilation.cpp.o' failed
make[2]: *** [gui/CMakeFiles/_GLViewer.dir/_GLViewer_autogen/mocs_compilation.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
gui/CMakeFiles/_GLViewer.dir/build.make:94: recipe for target 'gui/CMakeFiles/_GLViewer.dir/qt5/GLViewer.cpp.o' failed
make[2]: *** [gui/CMakeFiles/_GLViewer.dir/qt5/GLViewer.cpp.o] Error 1
gui/CMakeFiles/_GLViewer.dir/build.make:107: recipe for target 'gui/CMakeFiles/_GLViewer.dir/qt5/_GLViewer.cpp.o' failed
make[2]: *** [gui/CMakeFiles/_GLViewer.dir/qt5/_GLViewer.cpp.o] Error 1
CMakeFiles/Makefile2:301: recipe for target 'gui/CMakeFiles/_GLViewer.dir/all' failed
make[1]: *** [gui/CMakeFiles/_GLViewer.dir/all] Error 2
py/CMakeFiles/_polyhedra_utils.dir/build.make:81: recipe for target 'py/CMakeFiles/_polyhedra_utils.dir/_polyhedra_utils.cpp.o' failed
make[2]: *** [py/CMakeFiles/_polyhedra_utils.dir/_polyhedra_utils.cpp.o] Error 1
CMakeFiles/Makefile2:410: recipe for target 'py/CMakeFiles/_polyhedra_utils.dir/all' failed
make[1]: *** [py/CMakeFiles/_polyhedra_utils.dir/all] Error 2
Makefile:148: recipe for target 'all' failed
make: *** [all] Error 2

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