Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-5347

[C++] Building fails on Windows with gtest symbol issue

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Workaround
    • None
    • None
    • C++

    Description

      I get the following on my WIndows VM:

      compute-test.cc.obj : error LNK2001: unresolved external symbol "class testing::
      internal::Mutex testing::internal::g_gmock_mutex" (?g_gmock_mutex@internal@testi
      ng@@3VMutex@12@A)
      release\arrow-compute-test.exe : fatal error LNK1120: 1 unresolved externals
      

      It's probably caused by something like https://github.com/google/googletest/issues/292 except that our CMake code already seems to handle this issue, so I'm not sure what happens.

      Here is my build script:

      cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Debug ^
          -DARROW_USE_CLCACHE=ON ^
          -DARROW_BOOST_USE_SHARED=OFF ^
          -DBOOST_ROOT=C:\boost_1_67_0 ^
          -DARROW_DEPENDENCY_SOURCE=BUNDLED ^
          -DARROW_PYTHON=OFF ^
          -DARROW_PLASMA=OFF ^
          -DARROW_BUILD_TESTS=ON ^
          ..
      cmake --build . --config Debug
      

      I'm using conda for dependencies.

      Attachments

        Activity

          People

            Unassigned Unassigned
            apitrou Antoine Pitrou
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: