You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Cong Ding (Jira)" <ji...@apache.org> on 2019/08/21 18:45:00 UTC
[jira] [Commented] (ARROW-5932) [C++] undefined reference to
`__cxa_init_primary_exception@CXXABI_1.3.11'
[ https://issues.apache.org/jira/browse/ARROW-5932?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16912595#comment-16912595 ]
Cong Ding commented on ARROW-5932:
----------------------------------
Yes, I built from source. I have figured out this problem by linking the library explicitly in g++ command line. I guess it's because the version of stdc++ library isn't compatible with arrow
> [C++] undefined reference to `__cxa_init_primary_exception@CXXABI_1.3.11'
> -------------------------------------------------------------------------
>
> Key: ARROW-5932
> URL: https://issues.apache.org/jira/browse/ARROW-5932
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++
> Affects Versions: 0.14.0
> Environment: Linux Mint 19.1 Tessa
> g++-6
> Reporter: Cong Ding
> Priority: Critical
>
> I was installing Apache Arrow in my Linux Mint 19.1 Tessa server. I followed the instructions on the official arrow website (using the ubuntu 18.04 method). However, when I was trying to compile the examples, the g++ compiler threw out some errors.
> I have updated my g++ to g++-6, update my libstdc++ library, and using flag -lstdc++, but it still didn't work.
>
> {code:java}
> //代码占位符
> g++-6 -std=c++11 -larrow -lparquet main.cpp -lstdc++
> {code}
> The error message:
> /usr/lib/x86_64-linux-gnu/libarrow.so: undefined reference to `__cxa_init_primary_exception@CXXABI_1.3.11'
> /usr/lib/x86_64-linux-gnu/libarrow.so: undefined reference to `std::__exception_ptr::exception_ptr::exception_ptr(void*)@CXXABI_1.3.11'
> collect2: error: ld returned 1 exit status.
>
> I do not know what to do this moment. Can anyone help me?
--
This message was sent by Atlassian Jira
(v8.3.2#803003)