You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Karen Huang (JIRA)" <ji...@apache.org> on 2017/03/06 07:09:32 UTC

[jira] [Commented] (MESOS-7209) Mesos failed to build due to error MSB6006: "cmd.exe" exited with code 255 on windows

    [ https://issues.apache.org/jira/browse/MESOS-7209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15896816#comment-15896816 ] 

Karen Huang commented on MESOS-7209:
------------------------------------

I found this issue is due to the vaialbe %PreferredToolArchitecture%. In the generated ensure_tool_arch.vxproj file, there are code as below:
IF NOT %PreferredToolArchitecture% == "x64" ( echo "ERROR: Environment variable 'PreferredToolArchitecture' must be set to 'x64', see MESOS-6720 for details" 1&gt;&amp;2 &amp;&amp; EXIT 1 )

The vaiable %PreferredToolArchitecture% has no quotes. So its value (x64) isn't equal to "x64". If you change the code as below:
IF NOT "%PreferredToolArchitecture%" == "x64" ( echo "ERROR: Environment variable 'PreferredToolArchitecture' must be set to 'x64', see MESOS-6720 for details" 1&gt;&amp;2 &amp;&amp; EXIT 1 )
The project will be built successfully.



> Mesos failed to build due to error MSB6006: "cmd.exe" exited with code 255 on windows
> -------------------------------------------------------------------------------------
>
>                 Key: MESOS-7209
>                 URL: https://issues.apache.org/jira/browse/MESOS-7209
>             Project: Mesos
>          Issue Type: Bug
>         Environment: Windows 10 (64bit) + VS2015 Update 3
>            Reporter: Karen Huang
>
> I try to build mesos with Debug|x64 configuration on Windows. It failed to build due to error MSB6006: "cmd.exe" exited with code 255.[F:\mesos\build_x64\ensure_tool_arch.vcxproj]. This error is reported when build ensure_tool_arch.vcxproj project.
> Here is repro steps:
> 1. git clone -c core.autocrlf=true https://github.com/apache/mesos F:\mesos\src
> 2. Open a VS amd64 command prompt as admin and browse to F:\mesos\src
> 3. set PreferredToolArchitecture=x64
> 4. bootstrap.bat
> 5. mkdir build_x64 && pushd build_x64
> 6. cmake ..\src -G "Visual Studio 14 2015 Win64" -DENABLE_LIBEVENT=1 -DHAS_AUTHENTICATION=0 -DPATCHEXE_PATH="C:\gnuwin32\bin"
> 7. msbuild Mesos.sln /p:Configuration=Debug /p:Platform=x64 /m /t:Rebuild
> Error message:
>  CustomBuild:
>          Building Custom Rule F:/mesos/src/CMakeLists.txt
>          CMake does not need to re-run because F:\mesos\build_x64\CMakeFiles\generate.stamp is up-to-date.
>          ( was unexpected at this time.
>     43>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" exited with code 255. [F:\mesos\build_x64\ensure_tool_arch.vcxproj]
> If you build the project ensure_tool_arch.vcxproj in VS IDE seperatly. The error info is as bleow:
> 2>------ Rebuild All started: Project: ensure_tool_arch, Configuration: Debug x64 ------
> 2>  Building Custom Rule D:/Mesos/src/CMakeLists.txt
> 2>  CMake does not need to re-run because D:\Mesos\build_x64\CMakeFiles\generate.stamp is up-to-date.
> 2>  ( was unexpected at this time.
> 2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" exited with code 255.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)