Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Windows Server 2016 + VS2017 Mesos master branch latest srouce code
Description
Mesos failed to build due to error C2280: 'Try<os::UTSInfo,Error> os::uname(void)': attempting to reference a deleted function on windows with MSVC. It can be first reproduced on 4bd3e70 reversion on master branch. Could you please look at this issue? Thanks a lot!
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:
91>D:\Mesos\src\src\common\kernel_version.cpp(33): error C2280: 'Try<os::UTSInfo,Error> os::uname(void)': attempting to reference a deleted function [D:\Mesos\build_x64\src\mesos.vcxproj]
D:\Mesos\src\src\common\kernel_version.cpp(33): error C2280: 'Try<os::UTSInfo,Error> os::uname(void)': attempting to reference a deleted function [D:\Mesos\build_x64\src\mesos.vcxproj]