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

Eigen 3.4 compilation error #860

Closed
traversaro opened this issue Apr 23, 2021 · 1 comment
Closed

Eigen 3.4 compilation error #860

traversaro opened this issue Apr 23, 2021 · 1 comment

Comments

@traversaro
Copy link
Member

Homebrew updated to Eigen 3.4 for an error (see Homebrew/homebrew-core#75472), and this revealed a compilation error. While Eigen in homebrew has been moved back to 3.3.9, Eigen 3.4-rc1 has been already released so soon it will may be released in rolling release distributions, so it may be better to be ready for it.

2021-04-23T04:21:41.5949330Z [ 66%] Building CXX object src/inverse-kinematics/CMakeFiles/idyntree-inverse-kinematics.dir/src/InverseKinematicsNLP.cpp.o
2021-04-23T04:21:44.7796070Z /Users/runner/work/idyntree/idyntree/src/inverse-kinematics/src/InverseKinematicsNLP.cpp:1608:13: error: reference to 'Vector3' is ambiguous
2021-04-23T04:21:44.7797100Z             Vector3 rpy;
2021-04-23T04:21:44.7797410Z             ^
2021-04-23T04:21:44.7799610Z /Users/runner/work/idyntree/idyntree/src/core/include/iDynTree/Core/VectorFixSize.h:399:31: note: candidate found by name lookup is 'iDynTree::Vector3'
2021-04-23T04:21:44.7801260Z     typedef VectorFixSize<3>  Vector3;
2021-04-23T04:21:44.7801700Z                               ^
2021-04-23T04:21:44.7803280Z /usr/local/include/eigen3/Eigen/src/Core/Matrix.h:541:1: note: candidate found by name lookup is 'Eigen::Vector3'
2021-04-23T04:21:44.7804080Z EIGEN_MAKE_TYPEDEFS(3, 3)
2021-04-23T04:21:44.7804410Z ^
2021-04-23T04:21:44.7805370Z /usr/local/include/eigen3/Eigen/src/Core/Matrix.h:523:67: note: expanded from macro 'EIGEN_MAKE_TYPEDEFS'
2021-04-23T04:21:44.7806660Z template <typename Type>                                          \
2021-04-23T04:21:44.7807120Z                                                                   ^
2021-04-23T04:21:44.7989190Z /Users/runner/work/idyntree/idyntree/src/inverse-kinematics/src/InverseKinematicsNLP.cpp:1609:51: error: use of undeclared identifier 'rpy'
2021-04-23T04:21:44.7990490Z             currentTransform.getRotation().getRPY(rpy(0), rpy(1), rpy(2));
2021-04-23T04:21:44.7991110Z                                                   ^
2021-04-23T04:21:44.8148690Z /Users/runner/work/idyntree/idyntree/src/inverse-kinematics/src/InverseKinematicsNLP.cpp:1609:59: error: use of undeclared identifier 'rpy'
2021-04-23T04:21:44.8149930Z             currentTransform.getRotation().getRPY(rpy(0), rpy(1), rpy(2));
2021-04-23T04:21:44.8150530Z                                                           ^
2021-04-23T04:21:44.8309370Z /Users/runner/work/idyntree/idyntree/src/inverse-kinematics/src/InverseKinematicsNLP.cpp:1609:67: error: use of undeclared identifier 'rpy'
2021-04-23T04:21:44.8310630Z             currentTransform.getRotation().getRPY(rpy(0), rpy(1), rpy(2));
2021-04-23T04:21:44.8311370Z                                                                   ^
2021-04-23T04:21:44.8502890Z /Users/runner/work/idyntree/idyntree/src/inverse-kinematics/src/InverseKinematicsNLP.cpp:1610:37: error: use of undeclared identifier 'rpy'
2021-04-23T04:21:44.8504300Z             std::cerr << "RPY\n" << rpy.toString() << "\n";
2021-04-23T04:21:44.8504710Z                                     ^
2021-04-23T04:21:44.8672030Z /Users/runner/work/idyntree/idyntree/src/inverse-kinematics/src/InverseKinematicsNLP.cpp:1614:34: error: use of undeclared identifier 'rpy'
2021-04-23T04:21:44.8673650Z             omegaToRPYParameters(rpy, map);
2021-04-23T04:21:44.8674420Z                                  ^
2021-04-23T04:21:44.8989460Z /Users/runner/work/idyntree/idyntree/src/inverse-kinematics/src/InverseKinematicsNLP.cpp:1645:21: error: reference to 'Vector4' is ambiguous
2021-04-23T04:21:44.8990730Z                     Vector4 quaternion;
2021-04-23T04:21:44.8991200Z                     ^
2021-04-23T04:21:44.8993280Z /Users/runner/work/idyntree/idyntree/src/core/include/iDynTree/Core/VectorFixSize.h:400:31: note: candidate found by name lookup is 'iDynTree::Vector4'
2021-04-23T04:21:44.8994180Z     typedef VectorFixSize<4>  Vector4;
2021-04-23T04:21:44.8994590Z                               ^
2021-04-23T04:21:44.8996080Z /usr/local/include/eigen3/Eigen/src/Core/Matrix.h:542:1: note: candidate found by name lookup is 'Eigen::Vector4'
2021-04-23T04:21:44.8997060Z EIGEN_MAKE_TYPEDEFS(4, 4)
2021-04-23T04:21:44.8997420Z ^
2021-04-23T04:21:44.8998430Z /usr/local/include/eigen3/Eigen/src/Core/Matrix.h:523:67: note: expanded from macro 'EIGEN_MAKE_TYPEDEFS'
2021-04-23T04:21:44.8999120Z template <typename Type>                                          \
2021-04-23T04:21:44.8999530Z                                                                   ^
2021-04-23T04:21:44.9172830Z /Users/runner/work/idyntree/idyntree/src/inverse-kinematics/src/InverseKinematicsNLP.cpp:1646:51: error: use of undeclared identifier 'quaternion'
2021-04-23T04:21:44.9174190Z                     currentRotation.getQuaternion(quaternion);
2021-04-23T04:21:44.9174780Z                                                   ^
2021-04-23T04:21:44.9494080Z /Users/runner/work/idyntree/idyntree/src/inverse-kinematics/src/InverseKinematicsNLP.cpp:1647:69: error: use of undeclared identifier 'quaternion'
2021-04-23T04:21:44.9496200Z                     positiveIncrement.tail<4>() = iDynTree::toEigen(quaternion);
2021-04-23T04:21:44.9496790Z                                                                     ^
2021-04-23T04:21:44.9498160Z /Users/runner/work/idyntree/idyntree/src/inverse-kinematics/src/InverseKinematicsNLP.cpp:1650:21: error: reference to 'Vector3' is ambiguous
2021-04-23T04:21:44.9499050Z                     Vector3 rpy;
2021-04-23T04:21:44.9499350Z                     ^
2021-04-23T04:21:44.9501060Z /Users/runner/work/idyntree/idyntree/src/core/include/iDynTree/Core/VectorFixSize.h:399:31: note: candidate found by name lookup is 'iDynTree::Vector3'
2021-04-23T04:21:44.9501940Z     typedef VectorFixSize<3>  Vector3;
2021-04-23T04:21:44.9502510Z                               ^
2021-04-23T04:21:44.9504030Z /usr/local/include/eigen3/Eigen/src/Core/Matrix.h:541:1: note: candidate found by name lookup is 'Eigen::Vector3'
2021-04-23T04:21:44.9504690Z EIGEN_MAKE_TYPEDEFS(3, 3)
2021-04-23T04:21:44.9505010Z ^
2021-04-23T04:21:44.9505970Z /usr/local/include/eigen3/Eigen/src/Core/Matrix.h:523:67: note: expanded from macro 'EIGEN_MAKE_TYPEDEFS'
2021-04-23T04:21:44.9506670Z template <typename Type>                                          \
2021-04-23T04:21:44.9507080Z                                                                   ^
2021-04-23T04:21:44.9660330Z /Users/runner/work/idyntree/idyntree/src/inverse-kinematics/src/InverseKinematicsNLP.cpp:1651:44: error: use of undeclared identifier 'rpy'
2021-04-23T04:21:44.9661530Z                     currentRotation.getRPY(rpy(0), rpy(1), rpy(2));
2021-04-23T04:21:44.9662140Z                                            ^
2021-04-23T04:21:44.9824970Z /Users/runner/work/idyntree/idyntree/src/inverse-kinematics/src/InverseKinematicsNLP.cpp:1651:52: error: use of undeclared identifier 'rpy'
2021-04-23T04:21:44.9826160Z                     currentRotation.getRPY(rpy(0), rpy(1), rpy(2));
2021-04-23T04:21:44.9826700Z                                                    ^
2021-04-23T04:21:44.9990950Z /Users/runner/work/idyntree/idyntree/src/inverse-kinematics/src/InverseKinematicsNLP.cpp:1651:60: error: use of undeclared identifier 'rpy'
2021-04-23T04:21:44.9992270Z                     currentRotation.getRPY(rpy(0), rpy(1), rpy(2));
2021-04-23T04:21:44.9992760Z                                                            ^
2021-04-23T04:21:45.0156330Z /Users/runner/work/idyntree/idyntree/src/inverse-kinematics/src/InverseKinematicsNLP.cpp:1652:69: error: use of undeclared identifier 'rpy'
2021-04-23T04:21:45.0158330Z                     positiveIncrement.tail<3>() = iDynTree::toEigen(rpy);
2021-04-23T04:21:45.0158970Z                                                                     ^
2021-04-23T04:21:45.0186670Z /Users/runner/work/idyntree/idyntree/src/inverse-kinematics/src/InverseKinematicsNLP.cpp:1673:21: error: reference to 'Vector4' is ambiguous
2021-04-23T04:21:45.0187680Z                     Vector4 quaternion;
2021-04-23T04:21:45.0188030Z                     ^
2021-04-23T04:21:45.0190920Z /Users/runner/work/idyntree/idyntree/src/core/include/iDynTree/Core/VectorFixSize.h:400:31: note: candidate found by name lookup is 'iDynTree::Vector4'
2021-04-23T04:21:45.0191910Z     typedef VectorFixSize<4>  Vector4;
2021-04-23T04:21:45.0192320Z                               ^
2021-04-23T04:21:45.0193900Z /usr/local/include/eigen3/Eigen/src/Core/Matrix.h:542:1: note: candidate found by name lookup is 'Eigen::Vector4'
2021-04-23T04:21:45.0194590Z EIGEN_MAKE_TYPEDEFS(4, 4)
2021-04-23T04:21:45.0194910Z ^
2021-04-23T04:21:45.0195900Z /usr/local/include/eigen3/Eigen/src/Core/Matrix.h:523:67: note: expanded from macro 'EIGEN_MAKE_TYPEDEFS'
2021-04-23T04:21:45.0196610Z template <typename Type>                                          \
2021-04-23T04:21:45.0197100Z                                                                   ^
2021-04-23T04:21:45.0370700Z /Users/runner/work/idyntree/idyntree/src/inverse-kinematics/src/InverseKinematicsNLP.cpp:1674:51: error: use of undeclared identifier 'quaternion'
2021-04-23T04:21:45.0372570Z                     currentRotation.getQuaternion(quaternion);
2021-04-23T04:21:45.0373160Z                                                   ^
2021-04-23T04:21:45.0551590Z /Users/runner/work/idyntree/idyntree/src/inverse-kinematics/src/InverseKinematicsNLP.cpp:1675:69: error: use of undeclared identifier 'quaternion'
2021-04-23T04:21:45.0553350Z                     negativeIncrement.tail<4>() = iDynTree::toEigen(quaternion);
2021-04-23T04:21:45.0553960Z                                                                     ^
2021-04-23T04:21:45.0555340Z /Users/runner/work/idyntree/idyntree/src/inverse-kinematics/src/InverseKinematicsNLP.cpp:1679:21: error: reference to 'Vector3' is ambiguous
2021-04-23T04:21:45.0556270Z                     Vector3 rpy;
2021-04-23T04:21:45.0556590Z                     ^
2021-04-23T04:21:45.0558340Z /Users/runner/work/idyntree/idyntree/src/core/include/iDynTree/Core/VectorFixSize.h:399:31: note: candidate found by name lookup is 'iDynTree::Vector3'
2021-04-23T04:21:45.0559290Z     typedef VectorFixSize<3>  Vector3;
2021-04-23T04:21:45.0559700Z                               ^
2021-04-23T04:21:45.0561240Z /usr/local/include/eigen3/Eigen/src/Core/Matrix.h:541:1: note: candidate found by name lookup is 'Eigen::Vector3'
2021-04-23T04:21:45.0561910Z EIGEN_MAKE_TYPEDEFS(3, 3)
2021-04-23T04:21:45.0562240Z ^
2021-04-23T04:21:45.0563210Z /usr/local/include/eigen3/Eigen/src/Core/Matrix.h:523:67: note: expanded from macro 'EIGEN_MAKE_TYPEDEFS'
2021-04-23T04:21:45.0563930Z template <typename Type>                                          \
2021-04-23T04:21:45.0564360Z                                                                   ^
2021-04-23T04:21:45.0723160Z /Users/runner/work/idyntree/idyntree/src/inverse-kinematics/src/InverseKinematicsNLP.cpp:1680:44: error: use of undeclared identifier 'rpy'
2021-04-23T04:21:45.0724330Z                     currentRotation.getRPY(rpy(0), rpy(1), rpy(2));
2021-04-23T04:21:45.0724840Z                                            ^
2021-04-23T04:21:45.0888660Z fatal error: too many errors emitted, stopping now [-ferror-limit=]
2021-04-23T04:21:45.0935980Z 20 errors generated.
2021-04-23T04:21:45.1080000Z make[2]: *** [src/inverse-kinematics/CMakeFiles/idyntree-inverse-kinematics.dir/src/InverseKinematicsNLP.cpp.o] Error 1
2021-04-23T04:21:45.1086110Z make[1]: *** [src/inverse-kinematics/CMakeFiles/idyntree-inverse-kinematics.dir/all] Error 2
2021-04-23T04:21:45.1090110Z make: *** [all] Error 2
2021-04-23T04:21:45.1137650Z ##[error]Process completed with exit code 2.
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

1 participant