Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make -j2 ERROR with EIGEN3 #16

Open
Psarpei opened this issue Feb 24, 2019 · 1 comment
Open

make -j2 ERROR with EIGEN3 #16

Psarpei opened this issue Feb 24, 2019 · 1 comment

Comments

@Psarpei
Copy link

Psarpei commented Feb 24, 2019

Hallo, by using make -j2 i get an error with EIGEN3 i have tested all versions of EIGEN3 but it is always the following error. How can i fix it ?

Scanning dependencies of target cnn
Scanning dependencies of target cnn_shared
[ 2%] Building CXX object cnn/cnn/CMakeFiles/cnn_shared.dir/cfsm-builder.cc.o
[ 2%] Building CXX object cnn/cnn/CMakeFiles/cnn.dir/cfsm-builder.cc.o
In file included from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Core:371:0,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Dense:1,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Eigen:1,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h:21,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cnn.h:13,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.h:6,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.cc:1:
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h: In function ‘typename Eigen::internal::enable_if<((! Eigen::internal::is_integral::value) && (! Eigen::NumTraits::IsComplex)), bool>::type Eigen::internal::isfinite_impl(const T&)’:
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h:723:16: error: ‘std::isfinite’ has not been declared
using std::isfinite;
^
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h: In function ‘typename Eigen::internal::enable_if<((! Eigen::internal::is_integral::value) && (! Eigen::NumTraits::IsComplex)), bool>::type Eigen::internal::isinf_impl(const T&)’:
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h:738:16: error: ‘std::isinf’ has not been declared
using std::isinf;
^
In file included from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Core:371:0,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Dense:1,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Eigen:1,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h:21,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cnn.h:13,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.h:6,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.cc:1:
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h: In function ‘typename Eigen::internal::enable_if<((! Eigen::internal::is_integral::value) && (! Eigen::NumTraits::IsComplex)), bool>::type Eigen::internal::isfinite_impl(const T&)’:
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h:723:16: error: ‘std::isfinite’ has not been declared
using std::isfinite;
^
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h: In function ‘typename Eigen::internal::enable_if<((! Eigen::internal::is_integral::value) && (! Eigen::NumTraits::IsComplex)), bool>::type Eigen::internal::isnan_impl(const T&)’:
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h:753:16: error: ‘std::isnan’ has not been declared
using std::isnan;
^
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h: In function ‘typename Eigen::internal::enable_if<((! Eigen::internal::is_integral::value) && (! Eigen::NumTraits::IsComplex)), bool>::type Eigen::internal::isinf_impl(const T&)’:
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h:738:16: error: ‘std::isinf’ has not been declared
using std::isinf;
^
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h: In function ‘typename Eigen::internal::enable_if<((! Eigen::internal::is_integral::value) && (! Eigen::NumTraits::IsComplex)), bool>::type Eigen::internal::isnan_impl(const T&)’:
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h:753:16: error: ‘std::isnan’ has not been declared
using std::isnan;
^
In file included from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cnn.h:13:0,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.h:6,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.cc:1:
/home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h: In member function ‘bool cnn::Tensor::is_valid() const’:
/home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h:95:11: error: ‘__builtin_isnan’ is not a member of ‘std’
if (std::isnan(v[i]) || std::isinf(v[i])) return false;
^
/home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h:95:11: note: suggested alternative:
: note: ‘__builtin_isnan’
/home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h:95:31: error: ‘__builtin_isinf_sign’ is not a member of ‘std’
if (std::isnan(v[i]) || std::isinf(v[i])) return false;
^
/home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h:95:31: note: suggested alternative:
: note: ‘__builtin_isinf_sign’
In file included from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cnn.h:13:0,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.h:6,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.cc:1:
/home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h: In member function ‘bool cnn::Tensor::is_valid() const’:
/home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h:95:11: error: ‘__builtin_isnan’ is not a member of ‘std’
if (std::isnan(v[i]) || std::isinf(v[i])) return false;
^
/home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h:95:11: note: suggested alternative:
: note: ‘__builtin_isnan’
/home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h:95:31: error: ‘__builtin_isinf_sign’ is not a member of ‘std’
if (std::isnan(v[i]) || std::isinf(v[i])) return false;
^
/home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h:95:31: note: suggested alternative:
: note: ‘__builtin_isinf_sign’
In file included from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Core:371:0,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Dense:1,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Eigen:1,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h:21,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cnn.h:13,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.h:6,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.cc:1:
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h: In instantiation of ‘typename Eigen::internal::enable_if<((! Eigen::internal::is_integral::value) && (! Eigen::NumTraits::IsComplex)), bool>::type Eigen::internal::isfinite_impl(const T&) [with T = double; typename Eigen::internal::enable_if<((! Eigen::internal::is_integral::value) && (! Eigen::NumTraits::IsComplex)), bool>::type = bool]’:
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h:961:100 required from ‘bool Eigen::numext::isfinite(const T&) [with T = double]’
/home/stud_homes/s4191414/eigen-dev3.3.7/unsupported/Eigen/CXX11/src/Tensor/TensorCostModel.h:69:5: required from here
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h:724:39: error: ‘isfinite’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
return isfinite EIGEN_NOT_A_MACRO (x);
^
In file included from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Core:371:0,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Dense:1,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Eigen:1,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h:21,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cnn.h:13,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.h:6,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.cc:1:
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h: In instantiation of ‘typename Eigen::internal::enable_if<((! Eigen::internal::is_integral::value) && (! Eigen::NumTraits::IsComplex)), bool>::type Eigen::internal::isfinite_impl(const T&) [with T = double; typename Eigen::internal::enable_if<((! Eigen::internal::is_integral::value) && (! Eigen::NumTraits::IsComplex)), bool>::type = bool]’:
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h:961:100 required from ‘bool Eigen::numext::isfinite(const T&) [with T = double]’
/home/stud_homes/s4191414/eigen-dev3.3.7/unsupported/Eigen/CXX11/src/Tensor/TensorCostModel.h:69:5: required from here
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h:724:39: error: ‘isfinite’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
return isfinite EIGEN_NOT_A_MACRO (x);
^
In file included from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Core:533:0,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Dense:1,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Eigen:1,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h:21,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cnn.h:13,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.h:6,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.cc:1:
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/GlobalFunctions.h:89:36 note: ‘template const Eigen::CwiseUnaryOp<Eigen::internal::scalar_isfinite_op, const Derived> Eigen::isfinite(const Eigen::ArrayBase&)’ declared here, later in the translation unit
EIGEN_ARRAY_DECLARE_GLOBAL_UNARY(isfinite,scalar_isfinite_op,finite value tes
^
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/GlobalFunctions.h:32:4: note: in definition of macro ‘EIGEN_ARRAY_DECLARE_GLOBAL_UNARY’
(NAME)(const Eigen::ArrayBase& x) {
^
In file included from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Core:371:0,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Dense:1,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Eigen:1,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h:21,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cnn.h:13,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.h:6,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.cc:1:
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h:724:39: error: no matching function for call to ‘isfinite(const double&)’
return isfinite EIGEN_NOT_A_MACRO (x);
^
In file included from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Core:533:0,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Dense:1,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Eigen:1,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h:21,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cnn.h:13,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.h:6,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.cc:1:
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/GlobalFunctions.h:89:36 note: candidate: template const Eigen::CwiseUnaryOp<Eigen::internal::scalar_isfinite_op, const Derived> Eigen::isfinite(const Eigen::ArrayBase&)
EIGEN_ARRAY_DECLARE_GLOBAL_UNARY(isfinite,scalar_isfinite_op,finite value tes
^
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/GlobalFunctions.h:32:4: note: in definition of macro ‘EIGEN_ARRAY_DECLARE_GLOBAL_UNARY’
(NAME)(const Eigen::ArrayBase& x) {
^
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/GlobalFunctions.h:89:36 note: template argument deduction/substitution failed:
EIGEN_ARRAY_DECLARE_GLOBAL_UNARY(isfinite,scalar_isfinite_op,finite value tes
^
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/GlobalFunctions.h:32:4: note: in definition of macro ‘EIGEN_ARRAY_DECLARE_GLOBAL_UNARY’
(NAME)(const Eigen::ArrayBase& x) {
^
In file included from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Core:371:0,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Dense:1,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Eigen:1,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h:21,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cnn.h:13,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.h:6,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.cc:1:
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h:724:39: note: mismatched types ‘const Eigen::ArrayBase’ and ‘const double’
return isfinite EIGEN_NOT_A_MACRO (x);
^
In file included from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Core:533:0,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Dense:1,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Eigen:1,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h:21,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cnn.h:13,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.h:6,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.cc:1:
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/GlobalFunctions.h:89:36 note: ‘template const Eigen::CwiseUnaryOp<Eigen::internal::scalar_isfinite_op, const Derived> Eigen::isfinite(const Eigen::ArrayBase&)’ declared here, later in the translation unit
EIGEN_ARRAY_DECLARE_GLOBAL_UNARY(isfinite,scalar_isfinite_op,finite value test,\sa Eigen::isinf DOXCOMMA Eigen::isnan DOXCOMMA ArrayBase::isfinite)
^
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/GlobalFunctions.h:32:4: note: in definition of macro ‘EIGEN_ARRAY_DECLARE_GLOBAL_UNARY’
(NAME)(const Eigen::ArrayBase& x) {
^
In file included from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Core:371:0,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Dense:1,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Eigen:1,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h:21,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cnn.h:13,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.h:6,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.cc:1:
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h:724:39: error: no matching function for call to ‘isfinite(const double&)’
return isfinite EIGEN_NOT_A_MACRO (x);
^
In file included from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Core:533:0,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Dense:1,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Eigen:1,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h:21,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cnn.h:13,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.h:6,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.cc:1:
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/GlobalFunctions.h:89:36 note: candidate: template const Eigen::CwiseUnaryOp<Eigen::internal::scalar_isfinite_op, const Derived> Eigen::isfinite(const Eigen::ArrayBase&)
EIGEN_ARRAY_DECLARE_GLOBAL_UNARY(isfinite,scalar_isfinite_op,finite value test,\sa Eigen::isinf DOXCOMMA Eigen::isnan DOXCOMMA ArrayBase::isfinite)
^
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/GlobalFunctions.h:32:4: note: in definition of macro ‘EIGEN_ARRAY_DECLARE_GLOBAL_UNARY’
(NAME)(const Eigen::ArrayBase& x) {
^
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/GlobalFunctions.h:89:36 note: template argument deduction/substitution failed:
EIGEN_ARRAY_DECLARE_GLOBAL_UNARY(isfinite,scalar_isfinite_op,finite value test,\sa Eigen::isinf DOXCOMMA Eigen::isnan DOXCOMMA ArrayBase::isfinite)
^
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/GlobalFunctions.h:32:4: note: in definition of macro ‘EIGEN_ARRAY_DECLARE_GLOBAL_UNARY’
(NAME)(const Eigen::ArrayBase& x) {
^
In file included from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Core:371:0,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Dense:1,
from /home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/Eigen:1,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/tensor.h:21,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cnn.h:13,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.h:6,
from /home/stud_homes/s4191414/rnng-master/cnn/cnn/cfsm-builder.cc:1:
/home/stud_homes/s4191414/eigen-dev3.3.7/Eigen/src/Core/MathFunctions.h:724:39: note: mismatched types ‘const Eigen::ArrayBase’ and ‘const double’
return isfinite EIGEN_NOT_A_MACRO (x);
^
cnn/cnn/CMakeFiles/cnn.dir/build.make:62: die Regel für Ziel „cnn/cnn/CMakeFiles/cnn.dir/cfsm-builder.cc.o“ scheiterte
cnn/cnn/CMakeFiles/cnn_shared.dir/build.make:62: die Regel für Ziel „cnn/cnn/CMakeFiles/cnn_shared.dir/cfsm-builder.cc.o“ scheiterte
make[2]: *** [cnn/cnn/CMakeFiles/cnn.dir/cfsm-builder.cc.o] Fehler 1
make[2]: *** [cnn/cnn/CMakeFiles/cnn_shared.dir/cfsm-builder.cc.o] Fehler 1
CMakeFiles/Makefile2:87: die Regel für Ziel „cnn/cnn/CMakeFiles/cnn_shared.dir/all“ scheiterte
make[1]: *** [cnn/cnn/CMakeFiles/cnn_shared.dir/all] Fehler 2
make[1]: *** Auf noch nicht beendete Prozesse wird gewartet …
CMakeFiles/Makefile2:124: die Regel für Ziel „cnn/cnn/CMakeFiles/cnn.dir/all“ scheiterte
make[1]: *** [cnn/cnn/CMakeFiles/cnn.dir/all] Fehler 2
Makefile:140: die Regel für Ziel „all“ scheiterte
make: *** [all] Fehler 2

@jh181
Copy link

jh181 commented Apr 9, 2019

The same happens for me. Does anyone has an idea how to fix it?

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants