[ 
https://issues.apache.org/jira/browse/MESOS-9621?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gavin updated MESOS-9621:
-------------------------
    Comment: was deleted

(was: www.rtat.net)

> 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: VS 2017 + Windows Server 2016
>            Reporter: LinGao
>            Assignee: Qian Zhang
>            Priority: Major
>              Labels: containerizer, windows
>             Fix For: 1.8.0
>
>         Attachments: log_x64_build.log
>
>
> Issue description:
> Mesos failed to build due to error
> {noformat}
> 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)"{color} on Windows using MSVC. It can be 
> first reproduced on mesos master branch 
> [c03e51f|https://github.com/apache/mesos/commit/c03e51f1fe9cc7137635a7fe586fd890f7c7bdae].
>  
> {noformat}
> Could you please take a look?
> Reproduce steps:
> {noformat}
>  # git clone -c core.autocrlf=true https://github.com/apache/mesos 
> 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
> {noformat}
> ErrorMessage:
> {noformat}
> 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.
> {noformat}
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to