Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-7751

Mesos failed to build on Windows due to error C2039: 'parse': is not a member of 'mesos::internal::protobuf'

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0
    • build
    • None
    • Windows Server 2012 R2 + VS2015 Update 3 + Mesos master branch latest source

    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. 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)

      Attachments

        Activity

          People

            nfnt Jan Schlicht
            KarenTian Karen Huang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: