diff_fem
diff_fem copied to clipboard
Build Failure with CMake and pydifem
Issue: Build Failure with CMake and pydifem
Summary:
I'm experiencing a build failure when compiling the pydifem.cc file due to an error related to the isfinite function in Eigen with CppAD::AD
Environment Details: OS: Linux (Ubuntu/Debian) Compiler: GCC (version 11.4) Eigen Version: 3.4 CppAD Version: 2021.00.00.8 Python Version: 3.8 (Conda environment) CMake Version: 3.22.1
FAILED: CMakeFiles/pydifem.dir/python/pydifem.cc.o
/usr/bin/c++ -DBOOST_ALL_NO_LIB ... -c /home/hakim/diff_fem/python/pydifem.cc
In file included from /usr/include/eigen3/Eigen/Core:171,
from /home/hakim/diff_fem/python/../sim/diff/cppad_utils.h:25,
from /home/hakim/diff_fem/python/pydifem.cc:8:
/usr/include/eigen3/Eigen/src/Core/MathFunctions.h: In instantiation of
‘typename Eigen::internal::enable_if<((! std::is_integral<_Tp>::value) && (!
Eigen::NumTraits<T>::IsComplex)), bool>::type Eigen::internal::isfinite_impl(const T&)
[with T = CppAD::AD
...
/usr/include/c++/11/cmath:578:5: note: candidate: ‘template<class _Tp> constexpr
typename __gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value,
bool>::__type std::isfinite(_Tp)’
error: no matching function for call to ‘isfinite(const CppAD::AD