Re: [eigen] ftbfs basicstuff_4 test with visual studio 10

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


I guess RealScalar is an int:
CALL_SUBTEST_4
( basicStuff(MatrixXi(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<int>(1,EIGEN_TEST_MAX_SIZE))) );

Here's the full output:



Scanning dependencies of target basicstuff_4

Building CXX object test/CMakeFiles/basicstuff_4.dir/basicstuff.cpp.obj
basicstuff.cpp
c:\miniconda3\conda-bld\work\eigen-eigen-f562a193118d\eigen\src/Core/CommaInitializer.h(103) : warning C4290: C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
c:\miniconda3\conda-bld\work\eigen-eigen-f562a193118d\eigen\src/Core/CommaInitializer.h(128) : see reference to class template instantiation 'Eigen::CommaInitializer<Derived>' being compiled
c:\miniconda3\conda-bld\work\eigen-eigen-f562a193118d\test\main.h(381) : error C2668: 'sqrt' : ambiguous call to overloaded function
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\math.h(589): could be 'long double sqrt(long double)'
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\math.h(541): or 'float sqrt(float)'
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\math.h(127): or 'double sqrt(double)'
while trying to match the argument list '(RealScalar)'
c:\miniconda3\conda-bld\work\eigen-eigen-f562a193118d\test\main.h(480) : see reference to function template instantiation 'int Eigen::test_relative_error<Derived,Derived>(const Eigen::EigenBase<Derived> &,const Eigen::EigenBase<Derived> &)' being compiled
with
[
Derived=Eigen::Matrix<int,-1,1>
]
C:\Miniconda3\conda-bld\work\eigen-eigen-f562a193118d\test\basicstuff.cpp(52) : see reference to function template instantiation 'bool Eigen::verifyIsApprox<VectorType,VectorType>(const Type1 &,const Type2 &)' being compiled
with
[
Type1=VectorType,
Type2=VectorType
]
C:\Miniconda3\conda-bld\work\eigen-eigen-f562a193118d\test\basicstuff.cpp(263) : see reference to function template instantiation 'void basicStuff<Eigen::Matrix<_Scalar,_Rows,_Cols>>(const MatrixType &)' being compiled
with
[
_Scalar=int,
_Rows=-1,
_Cols=-1,
MatrixType=Eigen::Matrix<int,-1,-1>
]
c:\miniconda3\conda-bld\work\eigen-eigen-f562a193118d\test\main.h(381) : fatal error C1903: unable to recover from previous error(s); stopping compilation
NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~2.0\VC\bin\cl.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\Bin\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\Bin\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\Bin\nmake.exe"' : return code '0x2'
Stop.


From: Gael Guennebaud <gael.guennebaud@xxxxxxxxx>
Sent: Thursday, January 5, 2017 12:12:38 PM
To: eigen
Subject: Re: [eigen] ftbfs basicstuff_4 test with visual studio 10
 
Hi,

do you have the full error message at hand, so that we know what RealScalar is, and the call stack that triggered the issue.

thanks.

On Wed, Jan 4, 2017 at 11:20 AM, Michel Zou <Xantares09@xxxxxxxxxxx> wrote:

hi,


just letting you know, basicstuff_4 test cannot be built with vs10 anymore with latest eigen version 3.3.1:


Building CXX object test/CMakeFiles/basicstuff_4.dir/basicstuff.cpp.obj

basicstuff.cpp
c:\miniconda3-x64\conda-bld\work\eigen-eigen-f562a193118d\eigen\src/Core/CommaInitializer.h(103) : warning C4290: C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
c:\miniconda3-x64\conda-bld\work\eigen-eigen-f562a193118d\eigen\src/Core/CommaInitializer.h(128) : see reference to class template instantiation 'Eigen::CommaInitializer<Derived>' being compiled
c:\miniconda3-x64\conda-bld\work\eigen-eigen-f562a193118d\test\main.h(381) : error C2668: 'sqrt' : ambiguous call to overloaded function
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\math.h(589): could be 'long double sqrt(long double)'
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\math.h(541): or 'float sqrt(float)'
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\math.h(127): or 'double sqrt(double)'
while trying to match the argument list '(RealScalar)'




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/