Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 4.4.0-beta1
-
None
-
Windows Sever 2012 R2 + VS2015 Update 3
Description
I tried to build QTCreator with VS2015 Update 3 on Winodws. It failed to build due to many errors. This issue comes form master branch revision 112e322 (http://code.qt.io/cgit/qt-creator/qt-creator.git/commit/?id=112e32228aa41bf356604e099c807ebb14bf8e5e). Could you please take a look at this? Thanks!
Here is the steps that I used to build QTCreator:
1. git clone git://code.qt.io/qt-creator/qt-creator.git D:\QTCreator\src
2. Open a VS 2015 x86 command prompt and browse to D:\QTCreator\src
3. qmake -r qtcreator.pro
4. nmake
Error info:
..\..\libs\utils/port.h(40): error C2589: '(': illegal token on right side of '::' ..\..\libs\utils/port.h(40): error C2062: type 'unknown-type' unexpected ..\..\libs\utils/port.h(40): error C2612: trailing ')' illegal in base/member initializer list C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(22): error C2061: syntax error: identifier '_General_ptr_iterator_tag' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(43): error C2061: syntax error: identifier '_Really_trivial_ptr_iterator_tag' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(46): error C2995: '_FwdIt Utils::std::_Uninitialized_copy_unchecked(_InIt,_InIt,_FwdIt)': function template has already been defined C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(21): note: see declaration of 'Utils::std::_Uninitialized_copy_unchecked' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(80): error C2061: syntax error: identifier '_General_ptr_iterator_tag' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(102): error C2061: syntax error: identifier '_Really_trivial_ptr_iterator_tag' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(110): error C2995: '_FwdIt Utils::std::_Uninitialized_copy_n_unchecked1(_InIt,_Diff,_FwdIt)': function template has already been defined C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(79): note: see declaration of 'Utils::std::_Uninitialized_copy_n_unchecked1' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(338): error C2061: syntax error: identifier 'false_type' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(356): error C2061: syntax error: identifier 'true_type' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(359): error C2995: 'void Utils::std::_Uninitialized_fill_unchecked(_FwdIt,_FwdIt,const _Tval &)': function template has already been defined C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(338): note: see declaration of 'Utils::std::_Uninitialized_fill_unchecked' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(375): error C2061: syntax error: identifier 'false_type' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(396): error C2061: syntax error: identifier 'true_type' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(405): error C2995: '_FwdIt Utils::std::_Uninitialized_fill_n_unchecked(_FwdIt,_Diff,const _Tval &)': function template has already been defined C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(375): note: see declaration of 'Utils::std::_Uninitialized_fill_n_unchecked' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(823): error C2504: 'exception': base class undefined C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(843): error C3646: '_Uses': unknown override specifier C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(843): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(844): error C3646: '_Weaks': unknown override specifier C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(844): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(849): error C2614: 'Utils::std::_Ref_count_base': illegal member initialization: '_Uses' is not a base or member C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(849): error C2614: 'Utils::std::_Ref_count_base': illegal member initialization: '_Weaks' is not a base or member C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(862): error C2065: '_Atomic_integral_t': undeclared identifier C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(862): error C2146: syntax error: missing ';' before identifier '_Count' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(862): error C2065: '_Count': undeclared identifier C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(863): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(863): error C2146: syntax error: missing '>' before identifier '_Atomic_counter_t' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(865): error C2065: '_Count': undeclared identifier C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(868): error C2061: syntax error: identifier '_Atomic_integral_t' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(888): error C2065: '_Uses': undeclared identifier C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(893): error C2065: '_Weaks': undeclared identifier C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(898): error C2065: '_Uses': undeclared identifier C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(907): error C2065: '_Weaks': undeclared identifier C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(913): error C2065: '_Uses': undeclared identifier C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(913): error C3861: '_Get_atomic_count': identifier not found C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(981): error C2143: syntax error: missing ';' before '<' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(982): note: see reference to class template instantiation 'Utils::std::_Ref_count_del<_Ty,_Dx>' being compiled C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(981): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(981): error C2238: unexpected token(s) preceding ';' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(993): error C2143: syntax error: missing ';' before '<' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(1022): note: see reference to class template instantiation 'Utils::std::_Ref_count_del_alloc<_Ty,_Dx,_Alloc>' being compiled C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(993): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(993): error C2238: unexpected token(s) preceding ';' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(994): error C2653: '_Myalty0': is not a class or namespace name C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(994): error C3646: '_Myalty': unknown override specifier C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(994): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(1021): error C2143: syntax error: missing ';' before '<' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(1021): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(1021): error C2238: unexpected token(s) preceding ';' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(1424): error C2143: syntax error: missing ';' before '<' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(1494): note: see reference to class template instantiation 'Utils::std::shared_ptr<_Ty>' being compiled C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(1424): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(1425): error C2334: unexpected token(s) preceding '{'; skipping apparent function body C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(1615): error C2988: unrecognizable template declaration/definition C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(1615): error C2143: syntax error: missing ';' before '<' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(1615): error C2059: syntax error: '<' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(1616): error C2065: '_Ty': undeclared identifier C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(1616): error C2923: 'Utils::std::shared_ptr': '_Ty' is not a valid template type argument for parameter '_Ty' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(1617): error C2143: syntax error: missing ';' before '{' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(1617): error C2447: '{': missing function header (old-style formal list?)