[jira] [Commented] (MESOS-9971) 'dist' and 'distcheck' cmake targets are implemented as shell scripts, so fail on Windows/MSVC.
[ https://issues.apache.org/jira/browse/MESOS-9971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16938705#comment-16938705 ] Joseph Wu commented on MESOS-9971: -- Oh, good catch. We moved that file to {{support/setup-dev.bat}} as part of this review: https://reviews.apache.org/r/71299/ If you are purely building Mesos, and not developing, then you can simply remove that step from your build process. > 'dist' and 'distcheck' cmake targets are implemented as shell scripts, so > fail on Windows/MSVC. > --- > > Key: MESOS-9971 > URL: https://issues.apache.org/jira/browse/MESOS-9971 > Project: Mesos > Issue Type: Bug > Components: build >Affects Versions: master > Environment: {color:#172b4d}VS 2017 + Windows Server 2016{color} >Reporter: LinGao >Assignee: Joseph Wu >Priority: Trivial > Labels: foundations > Fix For: 1.10.0 > > Attachments: log_x64_build.log > > > Mesos failed to build due to error MSB6006: "cmd.exe" exited with code 1 on > Windows using MSVC. It can be first reproduced on > {color:#24292e}e0f7e2d{color} 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. > -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (MESOS-9971) 'dist' and 'distcheck' cmake targets are implemented as shell scripts, so fail on Windows/MSVC.
[ https://issues.apache.org/jira/browse/MESOS-9971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16938307#comment-16938307 ] LinGao commented on MESOS-9971: --- Hi Joseph Wu, Thanks for you info. I rebuild Mesos on windows/MSCV with latest {color:#172b4d}reversion aed0b87 on master branch. It failed to execute bootstrap.bat.{color} 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 {color:#172b4d}ErrorMessage:{color} {color:#172b4d}[executing command] .\bootstrap.bat '.\bootstrap.bat' is not recognized as an internal or external command, operable program or batch file. [command took 0 seconds] {color} {color:#172b4d}Does the windows/msvc build method change? If there is a change, can you provide detailed steps? Could you please take a look at this isssue? Thanks a lot!{color} {color:#172b4d}Thanks,{color} {color:#172b4d}Lin{color} > 'dist' and 'distcheck' cmake targets are implemented as shell scripts, so > fail on Windows/MSVC. > --- > > Key: MESOS-9971 > URL: https://issues.apache.org/jira/browse/MESOS-9971 > Project: Mesos > Issue Type: Bug > Components: build >Affects Versions: master > Environment: {color:#172b4d}VS 2017 + Windows Server 2016{color} >Reporter: LinGao >Assignee: Joseph Wu >Priority: Trivial > Labels: foundations > Fix For: 1.10.0 > > Attachments: log_x64_build.log > > > Mesos failed to build due to error MSB6006: "cmd.exe" exited with code 1 on > Windows using MSVC. It can be first reproduced on > {color:#24292e}e0f7e2d{color} 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. > -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (MESOS-9971) 'dist' and 'distcheck' cmake targets are implemented as shell scripts, so fail on Windows/MSVC.
[ https://issues.apache.org/jira/browse/MESOS-9971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16932768#comment-16932768 ] Joseph Wu commented on MESOS-9971: -- Disabling the targets: https://reviews.apache.org/r/71507/ > 'dist' and 'distcheck' cmake targets are implemented as shell scripts, so > fail on Windows/MSVC. > --- > > Key: MESOS-9971 > URL: https://issues.apache.org/jira/browse/MESOS-9971 > Project: Mesos > Issue Type: Bug > Components: build >Affects Versions: master > Environment: {color:#172b4d}VS 2017 + Windows Server 2016{color} >Reporter: LinGao >Priority: Major > Attachments: log_x64_build.log > > > Mesos failed to build due to error MSB6006: "cmd.exe" exited with code 1 on > Windows using MSVC. It can be first reproduced on > {color:#24292e}e0f7e2d{color} 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. > -- This message was sent by Atlassian Jira (v8.3.4#803005)