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

Mesos failed to build due to error C3493 on windows with MSVC

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • master
    • None
    • build
    • None
    • VS 2017 + Windows Server 2016

    Description

      Mesos failed to build due to error C3493: 'childRoleLength' cannot be implicitly captured because no default capture mode has been specified on Windows using MSVC. It can be first reproduced on 69e92ae reversion on master branch. Could you please take a look at this isssue? Thanks a lot!
       
      Reproduce steps:
      1. git clone -c core.autocrlf=true https://github.com/apache/mesos D:\mesos\src
      2. Open a VS 2017 x64 command prompt as admin and browse to D:\mesos
      3. cd src
      4. .\bootstrap.bat
      5. cd ..
      6. mkdir build_x64 && pushd build_x64
      7. cmake ..\src -G "Visual Studio 15 2017 Win64" -DCMAKE_SYSTEM_VERSION=10.0.17134.0 -DENABLE_LIBEVENT=1 -DHAS_AUTHENTICATION=0 -DPATCHEXE_PATH="C:\gnuwin32\bin" -T host=x64
      8. msbuild Mesos.sln /p:Configuration=Debug /p:Platform=x64 /maxcpucount:4 /t:Rebuild
       
      ErrorMessage:
      D:\mesos\src\src\tests\hierarchical_allocator_tests.cpp(8455): error C3493: 'childRoleLength' cannot be implicitly captured because no default capture mode has been specified

      Attachments

        1. log_x64_build.log
          1.57 MB
          LinGao

        Activity

          People

            mzhu Meng Zhu
            spacelg LinGao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: