← 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

    Status: Answered => Open

Su Kan is still having a problem:
Thanks for your reply, Robert.
I tried the default compilation options, with (and  without) add `/usr/share/cmake-3.19/Modules` to `CMAKE_MODULE_PATH`. But in vain. 
Then, I tried to disable potentialparticles by 
```
cmake -DCMAKE_INSTALL_PREFIX=../install ../trunk -DENABLE_POTENTIAL_BLOCKS=OFF -DENABLE_POTENTIAL_PARTICLES=OFF
```
with and without the hack above. It also failed to compile.
And it stops at around 9%, different from previous error information.

```
[  9%] Linking CXX shared library lib64/_gts.so
[  9%] Built target _gts
```
the error lines are listed below and full log  posted at https://pastebin.pl/view/3b12616a

```
In file included from /usr/include/boost/multiprecision/cpp_int/limits.hpp:11,
                 from /usr/include/boost/multiprecision/cpp_int.hpp:2284,
                 from /usr/include/boost/multiprecision/cpp_bin_float.hpp:9,
                 from /tmp/makepkg/yade/src/trunk/lib/high-precision/RealHP.hpp:46,
                 from /tmp/makepkg/yade/src/trunk/lib/high-precision/Real.hpp:215,
                 from /tmp/makepkg/yade/src/trunk/lib/base/Math.hpp:12,
                 from /tmp/makepkg/yade/src/trunk/py/pack/_packObb.cpp:6:
/usr/include/boost/multiprecision/traits/max_digits10.hpp: In instantiation of 'const unsigned int boost::multiprecision::detail::calc_digits10<151>::value':
/usr/include/boost/multiprecision/cpp_bin_float.hpp:1918:90:   required from 'constexpr const int std::numeric_limits<boost::multiprecision::number<boost::multiprecision::backends::cpp_bin_float<45, boost::multiprecision::backends::digit_base_10, void, int, 0, 0>, boost::multiprecision::et_off> >::digits10'
/tmp/makepkg/yade/src/trunk/lib/high-precision/RealHPConfig.hpp:41:70:   required from 'static int yade::math::DigitsHP10<N>::value() [with int N = 3]'
/tmp/makepkg/yade/src/trunk/lib/high-precision/RealHPConfig.hpp:70:97:   required from 'static int yade::math::RealHPConfig::getDigits(int) [with dig = yade::math::DigitsHP10]'
/tmp/makepkg/yade/src/trunk/lib/high-precision/RealHPConfig.hpp:76:72:   required from here
/usr/include/boost/multiprecision/traits/max_digits10.hpp:51:43:   in 'constexpr' expansion of 'boost::multiprecision::detail::calc_digits10<151>::digits_10(151)'
/usr/include/boost/multiprecision/traits/max_digits10.hpp:49:96: error: '(3.010299956639812e-1 * 1.5e+2)' is not a constant expression
   49 |       return static_cast<unsigned>(0.301029995663981195213738894724493026768189881462108541310 * (d - 1));
      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
```

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