kou commented on issue #42015:
URL: https://github.com/apache/arrow/issues/42015#issuecomment-2161854565
```text
[ 0] 0x00007ffe1bdd2f58
D:\hostedtoolcache\windows\MATLAB\2024.1.999\x64\bin\win64\MSVCP140.dll+00077656
Thrd_yield+00000184
```
Can we upgrade `MSVCP140.dll` bundled in MATLAB to the latest `MSVCP140.dll`?
It'll solve this problem.
Workaround: Defining `_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR` when we build
Arrow C++:
```diff
diff --git a/matlab/CMakeLists.txt b/matlab/CMakeLists.txt
index d8ed65ce92..be4cb19389 100644
--- a/matlab/CMakeLists.txt
+++ b/matlab/CMakeLists.txt
@@ -36,7 +36,8 @@ function(build_arrow)
set(ARROW_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/arrow_ep-build")
set(ARROW_CMAKE_ARGS
"-DCMAKE_INSTALL_PREFIX=${ARROW_PREFIX}" "-DCMAKE_INSTALL_LIBDIR=lib"
- "-DARROW_BUILD_STATIC=OFF" "-DARROW_CSV=ON")
+ "-DARROW_BUILD_STATIC=OFF" "-DARROW_CSV=ON"
+ "-DARROW_CXXFLAGS=-D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR")
add_library(arrow_shared SHARED IMPORTED)
set(ARROW_LIBRARY_TARGET arrow_shared)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]