[Trilinos-Users] compiling error with Teuchos
David Cole
david.cole at kitware.com
Fri Feb 11 11:31:10 MST 2011
So.... I have downloaded the current v1.3.2 installers for MPICH2.
Question before I attempt to reproduce the problem:
Are you doing a 32-bit or 64-bit build? (I'm assuming 32-bits since you said
you were using the "Visual Studio 10" generator...)
Thx,
David
On Thu, Feb 10, 2011 at 3:02 PM, David Cole <david.cole at kitware.com> wrote:
> 2.8.3 should work, but we have fixed several VS 2010 related bugs between
> 2.8.3 and 2.8.4. None of that should influence the errors you're seeing,
> though. I suspect it's going to happen for me too if I use the same MPI as
> you...
>
> I will see if I can get MPICH2 v1.3.1 and try it here.
>
>
> On Thu, Feb 10, 2011 at 2:49 PM, Hongyu Miao <jackymiao at gmail.com> wrote:
>
>> I’m using CMake 2.8.3, will that cause the problem?
>>
>> Also, I used the Visual Studio 10 generator instead of NMake makefiles;
>>
>> I specified the lapack library in CMake built from CLAPACK;
>>
>> MPICH2 v1.3.1 is what I’m using.
>>
>>
>>
>> Thanks,
>>
>> Hongyu
>>
>>
>>
>> *From:* David Cole [mailto:david.cole at kitware.com]
>> *Sent:* Thursday, February 10, 2011 2:16 PM
>> *To:* Hongyu Miao
>> *Cc:* trilinos-users at software.sandia.gov
>> *Subject:* Re: [Trilinos-Users] compiling error with Teuchos
>>
>>
>>
>> I have not tried this with Trilinos 10.6.2 (I am using Trilinos from the
>> head of the git repository today), but I am able to build Teuchos without
>> errors using CMake 2.8.4-rc2 and Visual Studio 2010. I'm using the NMake
>> Makefiles generator. I'm also doing a serial build, not an openmp build.
>>
>> What version of CMake are you using?
>> What generator are you using (NMake Makefiles or Visual Studio 10)?
>> Did you build clapack first?
>> What MPI library are you using?
>>
>> On Thu, Feb 10, 2011 at 12:56 PM, Hongyu Miao <jackymiao at gmail.com>
>> wrote:
>>
>> Sorry to send this again since the file name was spelled wrong.
>>
>>
>>
>> Hi, All
>>
>> Sorry to bother you with this. I’m new to Trilinos and I’m trying to
>> compile Trilinos 10.6.2 on Windows using CMake and V.S. 2010. The error
>> messages I got so far are listed below. If anyone can help (e.g., a quick
>> fix), I will appreciate a lot.
>>
>>
>>
>> 1. Epetra_CrsMatrix.cpp, line 2792, ‘row’ must be signed integer
>> with OpenMP on. This is easy to fix, but I’d like to report it;
>>
>>
>>
>> 2. Teuchos_SerializationTraits.hpp, line 50, I got a bunch of
>> errors:
>>
>> Error 393 error C2825: 'T': must be a class or namespace
>> when followed by '::'
>> …\thirdparty\trilinos\src\packages\teuchos\src\Teuchos_SerializationTraits.hpp
>> 50
>>
>> Error 394 error C2039:
>> 'this_type_is_missing_a_specialization' : is not a member of '`global
>> namespace''
>> …\trilinos\src\packages\teuchos\src\Teuchos_SerializationTraits.hpp 50
>>
>> Error 395 error C2146: syntax error : missing ')' before
>> identifier 'this_type_is_missing_a_specialization'
>> …\thirdparty\trilinos\src\packages\teuchos\src\Teuchos_SerializationTraits.hpp
>> 50
>>
>> Error 396 error C2059: syntax error : ')'
>> …\thirdparty\trilinos\src\packages\teuchos\src\Teuchos_SerializationTraits.hpp
>> 50
>>
>> Error 397 error C3861:
>> 'this_type_is_missing_a_specialization': identifier not found
>> …\thirdparty\trilinos\src\packages\teuchos\src\Teuchos_SerializationTraits.hpp
>> 50
>>
>> Error 554 error C2825: 'T': must be a class or namespace
>> when followed by '::'
>> …\thirdparty\trilinos\src\packages\teuchos\src\Teuchos_SerializationTraits.hpp
>> 50
>>
>> Error 555 error C2039:
>> 'this_type_is_missing_a_specialization' : is not a member of '`global
>> namespace''
>> …\thirdparty\trilinos\src\packages\teuchos\src\Teuchos_SerializationTraits.hpp
>> 50
>>
>> Error 556 error C2146: syntax error : missing ')' before
>> identifier 'this_type_is_missing_a_specialization'
>> …\thirdparty\trilinos\src\packages\teuchos\src\Teuchos_SerializationTraits.hpp
>> 50
>>
>> Error 557 error C2059: syntax error : ')'
>> …\thirdparty\trilinos\src\packages\teuchos\src\Teuchos_SerializationTraits.hpp
>> 50
>>
>> Error 558 error C3861:
>> 'this_type_is_missing_a_specialization': identifier not found
>> …\thirdparty\trilinos\src\packages\teuchos\src\Teuchos_SerializationTraits.hpp
>> 50
>>
>>
>>
>> 3. Teuchos_OrdinalTraits.hpp, line 89, one error message:
>>
>> Error 633 error C2664:
>> 'std::basic_string<_Elem,_Traits,_Ax>::basic_string(const
>> std::basic_string<_Elem,_Traits,_Ax> &)' : cannot convert parameter 1 from
>> 'Thyra::Ordinal' to 'const std::basic_string<_Elem,_Traits,_Ax> &'
>> …\thirdparty\trilinos\src\packages\teuchos\src\Teuchos_OrdinalTraits.hpp
>> 89
>>
>>
>>
>> 4. I guess the errors above also triggered a number of error
>> messages in std::vector. Here is a part of what I got:
>>
>> Error 5354 error C2039: 'difference_type' : is not a member
>> of 'Teuchos::RCP<T>' C:\Program Files (x86)\Microsoft Visual Studio
>> 10.0\VC\include\vector 1544
>>
>> Error 5355 error C2146: syntax error : missing ',' before
>> identifier 'difference_type' C:\Program Files (x86)\Microsoft Visual
>> Studio 10.0\VC\include\vector 1544
>>
>> Error 5356 error C2065: 'difference_type' : undeclared
>> identifier C:\Program Files (x86)\Microsoft Visual Studio
>> 10.0\VC\include\vector 1544
>>
>> Error 5357 error C2955: 'std::_Iterator012' : use of class
>> template requires template argument list C:\Program Files
>> (x86)\Microsoft Visual Studio 10.0\VC\include\vector 1548
>>
>> Error 5358 error C2039: 'size_type' : is not a member of
>> 'Teuchos::RCP<T>' C:\Program Files (x86)\Microsoft Visual Studio
>> 10.0\VC\include\vector 1550
>>
>> Error 5359 error C2146: syntax error : missing ';' before
>> identifier '_Sizet' C:\Program Files (x86)\Microsoft Visual Studio
>> 10.0\VC\include\vector 1550
>>
>> Error 5360 error C4430: missing type specifier - int assumed.
>> Note: C++ does not support default-int C:\Program Files
>> (x86)\Microsoft Visual Studio 10.0\VC\include\vector 1550
>>
>> Error 5361 error C4430: missing type specifier - int assumed.
>> Note: C++ does not support default-int C:\Program Files
>> (x86)\Microsoft Visual Studio 10.0\VC\include\vector 1550
>>
>> Error 5362 error C2061: syntax error : identifier
>> '_Sizet' C:\Program Files (x86)\Microsoft Visual Studio
>> 10.0\VC\include\vector 1558
>>
>>
>>
>> Thanks,
>>
>> Hongyu
>>
>>
>>
>>
>> _______________________________________________
>> Trilinos-Users mailing list
>> Trilinos-Users at software.sandia.gov
>> http://software.sandia.gov/mailman/listinfo/trilinos-users
>>
>>
>>
>
>
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at software.sandia.gov
> http://software.sandia.gov/mailman/listinfo/trilinos-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20110211/cb3ed8ea/attachment.html
More information about the Trilinos-Users
mailing list