You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Wes McKinney (Jira)" <ji...@apache.org> on 2021/02/20 03:41:00 UTC
[jira] [Closed] (ARROW-5347) [C++] Building fails on Windows with
gtest symbol issue
[ https://issues.apache.org/jira/browse/ARROW-5347?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wes McKinney closed ARROW-5347.
-------------------------------
Resolution: Workaround
> [C++] Building fails on Windows with gtest symbol issue
> -------------------------------------------------------
>
> Key: ARROW-5347
> URL: https://issues.apache.org/jira/browse/ARROW-5347
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++
> Reporter: Antoine Pitrou
> Priority: Critical
> Labels: windows
>
> I get the following on my WIndows VM:
> {code}
> 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
> {code}
> 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:
> {code}
> 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
> {code}
> I'm using conda for dependencies.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)