LinGao created MESOS-9621:
-----------------------------
Summary: Mesos failed to build due to error LNK2019 on Windows
using MSVC.
Key: MESOS-9621
URL: https://issues.apache.org/jira/browse/MESOS-9621
Project: Mesos
Issue Type: Bug
Components: build
Environment: Environment:
VS 2017 + Windows Server 2016
Reporter: LinGao
Attachments: log_x64_build.log
Issue description:
Mesos failed to build due to error LNK2019: {color:#f79232}unresolved external
symbol "public: __cdecl
mesos::internal::slave::VolumeGidManager::~VolumeGidManager(void)"
(??1VolumeGidManager@slave@internal@mesos@@QEAA@XZ) referenced in function
"public: void * __cdecl mesos::internal::slave::VolumeGidManager::`scalar
deleting destructor'(unsigned int)"{color} on Windows using MSVC. It can be
first reproduced on mesos master branch
[c03e51f|https://github.com/apache/mesos/commit/c03e51f1fe9cc7137635a7fe586fd890f7c7bdae].
Could you please take a look?
Reproduce steps:
# git clone -c core.autocrlf=true
[{color:#0066cc}https://github.com/apache/mesos{color}] D:\mesos\src
# Open a VS 2017 x64 command prompt as admin and browse to D:\mesos
# cd src
# .\bootstrap.bat
# cd ..
# mkdir build_x64 && pushd build_x64
# 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
# msbuild Mesos.sln /p:Configuration=Debug /p:Platform=x64 /maxcpucount:4
/t:Rebuild
ErrorMessage:
main.obj : error LNK2019: unresolved external symbol "public: __cdecl
mesos::internal::slave::VolumeGidManager::~VolumeGidManager(void)"
(??1VolumeGidManager@slave@internal@mesos@@QEAA@XZ) referenced in function
"public: void * __cdecl mesos::internal::slave::VolumeGidManager::`scalar
deleting destructor'(unsigned int)"
(??_GVolumeGidManager@slave@internal@mesos@@QEAAPEAXI@Z)
[D:\Mesos\build_x64\src\slave\mesos-agent.vcxproj]
107>D:\Mesos\build_x64\src\mesos-agent.exe : fatal error LNK1120: 1
unresolved externals [D:\Mesos\build_x64\src\slave\mesos-agent.vcxproj]
107>Done Building Project "D:\Mesos\build_x64\src\slave\mesos-agent.vcxproj"
(Rebuild target(s)) -- FAILED.
27>Done Building Project
"D:\Mesos\build_x64\src\slave\mesos-agent.vcxproj.metaproj" (Rebuild target(s))
-- FAILED.
2>Done Building Project "D:\Mesos\build_x64\ALL_BUILD.vcxproj.metaproj"
(Rebuild target(s)) -- FAILED.
1>Done Building Project "D:\Mesos\build_x64\Mesos.sln" (Rebuild target(s))
-- FAILED.
Build FAILED.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)