kou commented on PR #39622:
URL: https://github.com/apache/arrow/pull/39622#issuecomment-1912216303
Could you try this?
```diff
diff --git a/cpp/src/gandiva/CMakeLists.txt b/cpp/src/gandiva/CMakeLists.txt
index 3f038f54a7..50502eda2a 100644
--- a/cpp/src/gandiva/CMakeLists.txt
+++ b/cpp/src/gandiva/CMakeLists.txt
@@ -229,6 +229,15 @@ function(ADD_GANDIVA_TEST REL_TEST_NAME)
set(TEST_NAME gandiva-${REL_TEST_NAME})
string(REPLACE "_" "-" TEST_NAME ${TEST_NAME})
+
+ if(ARG_USE_STATIC_LINKING OR ARROW_TEST_LINKAGE STREQUAL "static")
+ # LLVM 17 or later requires that an executable exports
+ # "llvm_orc_registerEHFrameSectionWrapper()" and
+ # "llvm_orc_unregisterEHFrameSectionWrapper". We need to do
+ # nothing when we use libLLVM.so. But we need to export symbols
+ # explicitly when we use can do it when we use libLLVM*.a.
+ set_target_properties(${TEST_NAME} PROPERTIES ENABLE_EXPORTS TRUE)
+ endif()
endfunction()
add_gandiva_test(internals-test
```
--
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]