[
https://issues.apache.org/jira/browse/MESOS-7751?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Karen Huang updated MESOS-7751:
-------------------------------
Description:
I try to build mesos with Debug|x64 configuration on Windows. It failed to
build due error C2039: 'parse': is not a member of 'mesos::internal::protobuf'.
This issue can be reproduced from master branch revision 15078ad
[15078ad|https://github.com/apache/mesos/commit/15078adddec1a2fca80978eb29b6889eb15db4b1#diff-6141d9940e12f6e495954cacbe037016].
Could you please take a look at this? Thanks in advance!
Here is repro steps:
1. git clone -c core.autocrlf=true https://github.com/apache/mesos D:\mesos\src
2. Open a VS amd64 command prompt as admin and browse to D:\mesos\src
3. bootstrap.bat
4. mkdir build_x64 && pushd build_x64
5. cmake ..\src -G "Visual Studio 14 2015 Win64"
-DCMAKE_SYSTEM_VERSION=10.0.14393.0 -DENABLE_LIBEVENT=1 -DHAS_AUTHENTICATION=0
-DPATCHEXE_PATH=$quotC:\gnuwin32\bin$quot -T host=x64
6. msbuild Mesos.sln /p:Configuration=Debug /p:Platform=x64 /m /t:Rebuild
Acutal result:
"D:\Mesos\build_x64\Mesos.sln" (Rebuild target) (1) ->
"D:\Mesos\build_x64\src\mesos-1.4.0.vcxproj.metaproj" (Rebuild target)
(16) ->
"D:\Mesos\build_x64\src\mesos-1.4.0.vcxproj" (Rebuild target) (57) ->
(ClCompile target) ->
D:\Mesos\src\src\resource_provider\daemon.cpp(130): error C2039:
'parse': is not a member of 'mesos::internal::protobuf'
[D:\Mesos\build_x64\src\mesos-1.4.0.vcxproj]
D:\Mesos\src\src\resource_provider\daemon.cpp(130): error C2065:
'parse': undeclared identifier [D:\Mesos\build_x64\src\mesos-1.4.0.vcxproj]
D:\Mesos\src\src\resource_provider\daemon.cpp(130): error C2275:
'mesos::ResourceProviderInfo': illegal use of this type as an expression
[D:\Mesos\build_x64\src\mesos-1.4.0.vcxproj]
D:\Mesos\src\src\resource_provider\daemon.cpp(129): error C2512:
'Try<mesos::ResourceProviderInfo,Error>': no appropriate default constructor
available [D:\Mesos\build_x64\src\mesos-1.4.0.vcxproj]
387 Warning(s)
4 Error(s)
was:
I try to build mesos with Debug|x64 configuration on Windows. It failed to
build due error C2039: 'parse': is not a member of 'mesos::internal::protobuf'.
This issue can be reproduced from master branch revision 15078ad
[15078ad|https://github.com/apache/mesos/commit/15078adddec1a2fca80978eb29b6889eb15db4b1#diff-6141d9940e12f6e495954cacbe037016].
Could you please take a look at this? Thanks in advance!
Here is repro steps:
1. git clone -c core.autocrlf=true https://github.com/apache/mesos D:\mesos\src
2. Open a VS amd64 command prompt as admin and browse to D:\mesos\src
3. bootstrap.bat
4. mkdir build_x64 && pushd build_x64
5. cmake ..\src -G "Visual Studio 14 2015 Win64"
-DCMAKE_SYSTEM_VERSION=10.0.14393.0 -DENABLE_LIBEVENT=1 -DHAS_AUTHENTICATION=0
-DPATCHEXE_PATH=$quotC:\gnuwin32\bin$quot -T host=x64
6. msbuild Mesos.sln /p:Configuration=Debug /p:Platform=x64 /m /t:Rebuild
Acutal result:
57>D:\Mesos\src\src\resource_provider\daemon.cpp(130): error C2039: 'parse': is
not a member of 'mesos::internal::protobuf'
[D:\Mesos\build_x64\src\mesos-1.4.0.vcxproj]
D:\Mesos\src\src\common/protobuf_utils.hpp(58): note: see declaration
of 'mesos::internal::protobuf'
57>D:\Mesos\src\src\resource_provider\daemon.cpp(130): error C2065:
'parse': undeclared identifier [D:\Mesos\build_x64\src\mesos-1.4.0.vcxproj]
57>D:\Mesos\src\src\resource_provider\daemon.cpp(130): error C2275:
'mesos::ResourceProviderInfo': illegal use of this type as an expression
[D:\Mesos\build_x64\src\mesos-1.4.0.vcxproj]
D:\Mesos\build_x64\src\master/registry.pb.h(280): note: see
declaration of 'mesos::ResourceProviderInfo'
57>D:\Mesos\src\src\resource_provider\daemon.cpp(129): error C2512:
'Try<mesos::ResourceProviderInfo,Error>': no appropriate default constructor
available [D:\Mesos\build_x64\src\mesos-1.4.0.vcxproj]
D:\Mesos\src\src\resource_provider\daemon.cpp(129): note: see
declaration of 'Try<mesos::ResourceProviderInfo,Error>'
> Mesos failed to build on Windows due to error C2039: 'parse': is not a member
> of 'mesos::internal::protobuf'
> ------------------------------------------------------------------------------------------------------------
>
> Key: MESOS-7751
> URL: https://issues.apache.org/jira/browse/MESOS-7751
> Project: Mesos
> Issue Type: Bug
> Components: build
> Environment: Windows Server 2012 R2 + VS2015 Update 3 + Mesos master
> branch latest source
> Reporter: Karen Huang
>
> I try to build mesos with Debug|x64 configuration on Windows. It failed to
> build due error C2039: 'parse': is not a member of
> 'mesos::internal::protobuf'. This issue can be reproduced from master branch
> revision 15078ad
> [15078ad|https://github.com/apache/mesos/commit/15078adddec1a2fca80978eb29b6889eb15db4b1#diff-6141d9940e12f6e495954cacbe037016].
> Could you please take a look at this? Thanks in advance!
> Here is repro steps:
> 1. git clone -c core.autocrlf=true https://github.com/apache/mesos
> D:\mesos\src
> 2. Open a VS amd64 command prompt as admin and browse to D:\mesos\src
> 3. bootstrap.bat
> 4. mkdir build_x64 && pushd build_x64
> 5. cmake ..\src -G "Visual Studio 14 2015 Win64"
> -DCMAKE_SYSTEM_VERSION=10.0.14393.0 -DENABLE_LIBEVENT=1
> -DHAS_AUTHENTICATION=0 -DPATCHEXE_PATH=$quotC:\gnuwin32\bin$quot -T host=x64
> 6. msbuild Mesos.sln /p:Configuration=Debug /p:Platform=x64 /m /t:Rebuild
> Acutal result:
> "D:\Mesos\build_x64\Mesos.sln" (Rebuild target) (1) ->
> "D:\Mesos\build_x64\src\mesos-1.4.0.vcxproj.metaproj" (Rebuild target)
> (16) ->
> "D:\Mesos\build_x64\src\mesos-1.4.0.vcxproj" (Rebuild target) (57) ->
> (ClCompile target) ->
> D:\Mesos\src\src\resource_provider\daemon.cpp(130): error C2039:
> 'parse': is not a member of 'mesos::internal::protobuf'
> [D:\Mesos\build_x64\src\mesos-1.4.0.vcxproj]
> D:\Mesos\src\src\resource_provider\daemon.cpp(130): error C2065:
> 'parse': undeclared identifier [D:\Mesos\build_x64\src\mesos-1.4.0.vcxproj]
> D:\Mesos\src\src\resource_provider\daemon.cpp(130): error C2275:
> 'mesos::ResourceProviderInfo': illegal use of this type as an expression
> [D:\Mesos\build_x64\src\mesos-1.4.0.vcxproj]
> D:\Mesos\src\src\resource_provider\daemon.cpp(129): error C2512:
> 'Try<mesos::ResourceProviderInfo,Error>': no appropriate default constructor
> available [D:\Mesos\build_x64\src\mesos-1.4.0.vcxproj]
> 387 Warning(s)
> 4 Error(s)
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)