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

'dist' and 'distcheck' cmake targets are implemented as shell scripts, so fail on Windows/MSVC.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: master
    • Fix Version/s: 1.10.0
    • Component/s: build
    • Labels:
    • Environment:

      VS 2017 + Windows Server 2016

    • Target Version/s:
    • Sprint:
      Foundations: RI-18 55
    • Story Points:
      1

      Description

      Mesos failed to build due to error MSB6006: "cmd.exe" exited with code 1 on Windows using MSVC. It can be first reproduced on e0f7e2d 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:

      67>PrepareForBuild:
               Creating directory "x64\Debug\dist\dist.tlog\".
             InitializeBuildStatus:
               Creating "x64\Debug\dist\dist.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

      67>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: "cmd.exe" exited with code 1. [D:\Mesos\build_x64\dist.vcxproj]
      67>Done Building Project "D:\Mesos\build_x64\dist.vcxproj" (Rebuild target(s)) – FAILED.

       

        Attachments

        1. log_x64_build.log
          2.04 MB
          LinGao

          Activity

            People

            • Assignee:
              kaysoky Joseph Wu
              Reporter:
              spacelg LinGao
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: