![]() Registered Member ![]()
|
Hi
Eigen fails to compile in Sun sparc box. Compiler version: CC: Sun C++ 5.10 SunOS_sparc 2009/06/03 Compilation flags: -xO5 -fns -fsimple=2 -xbuiltin=%all -xdepend=yes -xlibmil -xlibmopt -xtarget=native -mt -library=stlport4 -xcode=pic32 Errors: "ThirdParty/Eigen/src/Core/VectorBlock.h", line 207: Error: Could not find a match for Eigen::DenseBase<Eigen::Derived>::segment(Eigen::internal::traits<Eigen::internal::T>::Index). "ThirdParty/Eigen/src/Core/VectorBlock.h", line 216: Error: Could not find a match for Eigen::DenseBase<Eigen::Derived>::segment(Eigen::internal::traits<Eigen::internal::T>::Index) const. "ThirdParty/Eigen/src/Core/VectorBlock.h", line 235: Error: Could not find a match for Eigen::DenseBase<Eigen::Derived>::head(). "ThirdParty/Eigen/src/Core/VectorBlock.h", line 245: Error: Could not find a match for Eigen::DenseBase<Eigen::Derived>::head() const. "ThirdParty/Eigen/src/Core/VectorBlock.h", line 264: Error: Could not find a match for Eigen::DenseBase<Eigen::Derived>::tail(). "ThirdParty/Eigen/src/Core/VectorBlock.h", line 273: Error: Could not find a match for Eigen::DenseBase<Eigen::Derived>::tail() const. "ThirdParty/Eigen/src/Core/Diagonal.h", line 221: Error: Could not find a match for Eigen::MatrixBase<Eigen::Derived>::diagonal(). "ThirdParty/Eigen/src/Core/Diagonal.h", line 230: Error: Could not find a match for Eigen::MatrixBase<Eigen::Derived>::diagonal() const. "ThirdParty/Eigen/src/Core/TriangularMatrix.h", line 762: Error: Could not find a match for Eigen::MatrixBase<Eigen::Derived>::triangularView<Eigen::MatrixBase<Eigen::Derived>::Mode>(). "ThirdParty/Eigen/src/Core/TriangularMatrix.h", line 771: Error: Could not find a match for Eigen::MatrixBase<Eigen::Derived>::triangularView<Eigen::MatrixBase<Eigen::Derived>::Mode>() const. "ThirdParty/Eigen/src/Core/SelfAdjointView.h", line 300: Error: Could not find a match for Eigen::MatrixBase<Eigen::Derived>::selfadjointView<Eigen::MatrixBase<Eigen::Derived>::UpLo>() const. "ThirdParty/Eigen/src/Core/SelfAdjointView.h", line 308: Error: Could not find a match for Eigen::MatrixBase<Eigen::Derived>::selfadjointView<Eigen::MatrixBase<Eigen::Derived>::UpLo>(). Any ideas how it can be fixed? Thank you, Vlad |
![]() Moderator ![]()
|
yes, you could try to move the definitions into the body class.
|
![]() Registered Member ![]()
|
Thank you ggael. Your suggestion helped.
I fixed several more bugs along the way (actually not bugs, but quite valid C++ code - stupid SUN CC can not swallow it ![]() Now I bumped into "/proj/murex06/QuantApps/sparc/ThirdParty/Eigen/src/Core/PlainObjectBase.h", line 77: Error: Multiple declaration for Base. "/proj/murex06/QuantApps/sparc/ThirdParty/Eigen/src/Core/Matrix.h", line 129: Where: While specializing "Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 1, 0, -1, 1>>". "/proj/murex06/QuantApps/sparc/ThirdParty/Eigen/src/Core/Matrix.h", line 129: Where: Specialized in Eigen::Matrix<double, -1, 1, 0, -1, 1>. "./Source/Calibration/Volatility/sabr_volatility_smile.hpp", line 1054: Where: Specialized in Calibration::sabr_calibration_problem<2, 0>. "Source/Xll/NewFunctionsXll.cpp", line 228: Where: Specialized in non-template code. "/proj/murex06/QuantApps/sparc/ThirdParty/Eigen/src/Core/PlainObjectBase.h", line 79: Error: Multiple declaration for StorageKind. "/proj/murex06/QuantApps/sparc/ThirdParty/Eigen/src/Core/Matrix.h", line 129: Where: While specializing "Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 1, 0, -1, 1>>". "/proj/murex06/QuantApps/sparc/ThirdParty/Eigen/src/Core/Matrix.h", line 129: Where: Specialized in Eigen::Matrix<double, -1, 1, 0, -1, 1>. "./Source/Calibration/Volatility/sabr_volatility_smile.hpp", line 1054: Where: Specialized in Calibration::sabr_calibration_problem<2, 0>. "Source/Xll/NewFunctionsXll.cpp", line 228: Where: Specialized in non-template code. . . . Could you help, please. I think it would be very beneficial to compile Eigen on SUN CC - this will widen Eigen user base (because many big companies don't support gcc and there is no choice, but CC). Thank you, vladvlad |
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]