Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-9621

Mesos failed to build due to error LNK2019 on Windows using MSVC.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.8.0
    • build
    • VS 2017 + Windows Server 2016

    • Containerization RI11 Sp 41
    • 1

    Description

      Issue description:

      Mesos failed to build due to 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)"{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 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
      

      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.
      

       

       

      Attachments

        1. log_x64_build.log
          2.46 MB
          LinGao

        Activity

          People

            qianzhang Qian Zhang
            spacelg LinGao
            Gilbert Song Gilbert Song
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: