Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
master
-
None
-
None
Description
Hi All,
We tried to build Mesos on Windows with VS2019. It failed to build due to error C2668: 'os::spawn': ambiguous call to overloaded function, with MSVC on windows. It can be reproduced on latest reversion 8e74d18 master branch. Could you please look at this issue? We use cmake version 3.17.2.
Reproduce steps:
- git clone -c core.autocrlf=true https://github.com/apache/mesos F:\Mesos\src
- Open a VS 2019 x64 command prompt as admin and browse to F:\Mesos\src
- cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DENABLE_LIBEVENT=1 -DHAS_AUTHENTICATION=0 -DPATCHEXE_PATH="F:\tools\gnuwin32\bin" -T host=x64 ..
- set CL=/D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING
- msbuild /maxcpucount:4 /p:Platform=x64 /p:Configuration=Release Mesos.sln /t:Rebuild
ErrorMessage:
85>F:\Mesos\src\3rdparty\stout\include\stout/os/windows/shell.hpp(168,68): error C2668: 'os::spawn': ambiguous call to overloaded function (compiling source file F:\Mesos\src\3rdparty\libprocess\src\latch.cpp) [F:\Mesos\src\build_amd64\3rdparty\libprocess\src\process.vcxproj]
F:\Mesos\src\3rdparty\stout\include\stout/os/exec.hpp(52,20): message : could be 'Option<T> os::spawn(const std::string &,const std::vector<std::string,std::allocator<std::string>> &)' [F:\Mesos\src\build_amd64\3rdparty\libprocess\src\process.vcxproj]
85>F:\Mesos\src\3rdparty\stout\include\stout/os/windows/shell.hpp(168,68): error C2668: 'os::spawn': ambiguous call to overloaded function (compiling source file F:\Mesos\src\3rdparty\libprocess\src\metrics\metrics.cpp) [F:\Mesos\src\build_amd64\3rdparty\libprocess\src\process.vcxproj]