[ https://issues.apache.org/jira/browse/ARROW-4274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17661298#comment-17661298 ]
Rok Mihevc commented on ARROW-4274: ----------------------------------- This issue has been migrated to [issue #20850|https://github.com/apache/arrow/issues/20850] on GitHub. Please see the [migration documentation|https://github.com/apache/arrow/issues/14542] for further details. > [Gandiva] static jni library broken after decimal changes > --------------------------------------------------------- > > Key: ARROW-4274 > URL: https://issues.apache.org/jira/browse/ARROW-4274 > Project: Apache Arrow > Issue Type: Bug > Components: C++ - Gandiva > Reporter: Pindikura Ravindra > Assignee: Pindikura Ravindra > Priority: Major > Labels: pull-request-available > Fix For: 0.13.0 > > Time Spent: 6.5h > Remaining Estimate: 0h > > With the decimal changes, there can be cpp calls from the IR code. The > symbols for theseĀ need to be visible in the gandiva cpp library. but, the > jni library makes visible only a limited set of symbols from gandiva (the > ones specified in src/gandiva/jni/symbols.map). > This breaksĀ if the jni library links with the static-libstdc++ (dremio > builds the gandiva binary with stdc++ statically linked) due to two reasons > # The cpp symbols like std::ios_base::init are not exported via symbols.map. > This causes LLVM to complain that there is are unresolved symbols. > # Also, there is a problem with exceptions (string_view.hpp can throw > exceptions) - This also causes LLVM to complain that unwindResume is > unresolved. -- This message was sent by Atlassian Jira (v8.20.10#820010)