How to find the value of '_GLIBCXX_USE_CXX11_ABI' of a shared object?











up vote
0
down vote

favorite












I am using python 3.7 from Anaconda3 v5.3, which was built with gcc 7.2, on Redhat 7.5 ppc64le which is built with gcc 4.8.4.



I built pyarrow in this environment, but I keep getting the following error on doing import pyarrow.



$ python
Python 3.7.0 (default, Jun 28 2018, 13:02:24)
[GCC 7.2.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyarrow
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/bsyu/files/arrow/python/pyarrow/__init__.py", line 54, in <module>
from pyarrow.lib import cpu_count, set_cpu_count
ImportError: /home/bsyu/files/arrow/python/pyarrow/lib.cpython-37m-powerpc64le-linux-gnu.so: undefined symbol: _ZNK5arrow11StructArray14GetFieldByNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE


I see this is a very common error from linking shared objects built with different versions of gcc. I tried building pyarrow with gcc 7.2, but it ends up with another undefined symbol error.



ImportError: /home/bsyu/anaconda3/lib/python3.7/site-packages/pyarrow/libparquet.so.12: undefined symbol: _ZN5boost13match_resultsIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEESaINS_9sub_matchISB_EEEE12maybe_assignERKSF_


I have two questions :



1) What is the general recommendation when we use Anaconda3 v5.3 on Redhat 7.5 ? Use gcc 7.2 ? Use -D_GLIBCXX_USE_CXX11_ABI=0 ? Doesn't it bother you ladies and gentlemen with these undefined symbol errors ?



2) How do we find the value of _GLIBCXX_USE_CXX11_ABI used for a shared object ? I tried strings, but it shows a bunch of nothing only.



$ strings /home/bsyu/anaconda3/lib/python3.7/site-packages/pyarrow/libparquet.so.12.0.0 | grep CXXABI
CXXABI_1.3.11
CXXABI_1.3.2
CXXABI_1.3
CXXABI_1.3.3
CXXABI_1.3.5









share|improve this question


















  • 1




    Generally, you use the same version of compiler and options for everything you link together. I know of no way to extract these defines from compiled code.
    – rubenvb
    Nov 20 at 8:04










  • @rubenvb Then do you recommend Anaconda 5.0 only, not Anaconda 5.2 or higher for Redhat 7.5 ?
    – nasica88
    Nov 20 at 9:12






  • 1




    I recommend using the same version of the compiler. The path of least resistance is using your distro's packages (if anaconda is in there, use that). I know RedHat has several GCC versions installable, maybe the one you want can be installed and set as default? I'm not that familiar with RedHat and that in itself warrants another question :) as this is all relatively off-topic for this question as asked.
    – rubenvb
    Nov 20 at 9:19















up vote
0
down vote

favorite












I am using python 3.7 from Anaconda3 v5.3, which was built with gcc 7.2, on Redhat 7.5 ppc64le which is built with gcc 4.8.4.



I built pyarrow in this environment, but I keep getting the following error on doing import pyarrow.



$ python
Python 3.7.0 (default, Jun 28 2018, 13:02:24)
[GCC 7.2.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyarrow
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/bsyu/files/arrow/python/pyarrow/__init__.py", line 54, in <module>
from pyarrow.lib import cpu_count, set_cpu_count
ImportError: /home/bsyu/files/arrow/python/pyarrow/lib.cpython-37m-powerpc64le-linux-gnu.so: undefined symbol: _ZNK5arrow11StructArray14GetFieldByNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE


I see this is a very common error from linking shared objects built with different versions of gcc. I tried building pyarrow with gcc 7.2, but it ends up with another undefined symbol error.



ImportError: /home/bsyu/anaconda3/lib/python3.7/site-packages/pyarrow/libparquet.so.12: undefined symbol: _ZN5boost13match_resultsIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEESaINS_9sub_matchISB_EEEE12maybe_assignERKSF_


I have two questions :



1) What is the general recommendation when we use Anaconda3 v5.3 on Redhat 7.5 ? Use gcc 7.2 ? Use -D_GLIBCXX_USE_CXX11_ABI=0 ? Doesn't it bother you ladies and gentlemen with these undefined symbol errors ?



2) How do we find the value of _GLIBCXX_USE_CXX11_ABI used for a shared object ? I tried strings, but it shows a bunch of nothing only.



$ strings /home/bsyu/anaconda3/lib/python3.7/site-packages/pyarrow/libparquet.so.12.0.0 | grep CXXABI
CXXABI_1.3.11
CXXABI_1.3.2
CXXABI_1.3
CXXABI_1.3.3
CXXABI_1.3.5









share|improve this question


















  • 1




    Generally, you use the same version of compiler and options for everything you link together. I know of no way to extract these defines from compiled code.
    – rubenvb
    Nov 20 at 8:04










  • @rubenvb Then do you recommend Anaconda 5.0 only, not Anaconda 5.2 or higher for Redhat 7.5 ?
    – nasica88
    Nov 20 at 9:12






  • 1




    I recommend using the same version of the compiler. The path of least resistance is using your distro's packages (if anaconda is in there, use that). I know RedHat has several GCC versions installable, maybe the one you want can be installed and set as default? I'm not that familiar with RedHat and that in itself warrants another question :) as this is all relatively off-topic for this question as asked.
    – rubenvb
    Nov 20 at 9:19













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I am using python 3.7 from Anaconda3 v5.3, which was built with gcc 7.2, on Redhat 7.5 ppc64le which is built with gcc 4.8.4.



I built pyarrow in this environment, but I keep getting the following error on doing import pyarrow.



$ python
Python 3.7.0 (default, Jun 28 2018, 13:02:24)
[GCC 7.2.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyarrow
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/bsyu/files/arrow/python/pyarrow/__init__.py", line 54, in <module>
from pyarrow.lib import cpu_count, set_cpu_count
ImportError: /home/bsyu/files/arrow/python/pyarrow/lib.cpython-37m-powerpc64le-linux-gnu.so: undefined symbol: _ZNK5arrow11StructArray14GetFieldByNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE


I see this is a very common error from linking shared objects built with different versions of gcc. I tried building pyarrow with gcc 7.2, but it ends up with another undefined symbol error.



ImportError: /home/bsyu/anaconda3/lib/python3.7/site-packages/pyarrow/libparquet.so.12: undefined symbol: _ZN5boost13match_resultsIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEESaINS_9sub_matchISB_EEEE12maybe_assignERKSF_


I have two questions :



1) What is the general recommendation when we use Anaconda3 v5.3 on Redhat 7.5 ? Use gcc 7.2 ? Use -D_GLIBCXX_USE_CXX11_ABI=0 ? Doesn't it bother you ladies and gentlemen with these undefined symbol errors ?



2) How do we find the value of _GLIBCXX_USE_CXX11_ABI used for a shared object ? I tried strings, but it shows a bunch of nothing only.



$ strings /home/bsyu/anaconda3/lib/python3.7/site-packages/pyarrow/libparquet.so.12.0.0 | grep CXXABI
CXXABI_1.3.11
CXXABI_1.3.2
CXXABI_1.3
CXXABI_1.3.3
CXXABI_1.3.5









share|improve this question













I am using python 3.7 from Anaconda3 v5.3, which was built with gcc 7.2, on Redhat 7.5 ppc64le which is built with gcc 4.8.4.



I built pyarrow in this environment, but I keep getting the following error on doing import pyarrow.



$ python
Python 3.7.0 (default, Jun 28 2018, 13:02:24)
[GCC 7.2.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyarrow
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/bsyu/files/arrow/python/pyarrow/__init__.py", line 54, in <module>
from pyarrow.lib import cpu_count, set_cpu_count
ImportError: /home/bsyu/files/arrow/python/pyarrow/lib.cpython-37m-powerpc64le-linux-gnu.so: undefined symbol: _ZNK5arrow11StructArray14GetFieldByNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE


I see this is a very common error from linking shared objects built with different versions of gcc. I tried building pyarrow with gcc 7.2, but it ends up with another undefined symbol error.



ImportError: /home/bsyu/anaconda3/lib/python3.7/site-packages/pyarrow/libparquet.so.12: undefined symbol: _ZN5boost13match_resultsIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEESaINS_9sub_matchISB_EEEE12maybe_assignERKSF_


I have two questions :



1) What is the general recommendation when we use Anaconda3 v5.3 on Redhat 7.5 ? Use gcc 7.2 ? Use -D_GLIBCXX_USE_CXX11_ABI=0 ? Doesn't it bother you ladies and gentlemen with these undefined symbol errors ?



2) How do we find the value of _GLIBCXX_USE_CXX11_ABI used for a shared object ? I tried strings, but it shows a bunch of nothing only.



$ strings /home/bsyu/anaconda3/lib/python3.7/site-packages/pyarrow/libparquet.so.12.0.0 | grep CXXABI
CXXABI_1.3.11
CXXABI_1.3.2
CXXABI_1.3
CXXABI_1.3.3
CXXABI_1.3.5






python-3.x gcc anaconda






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 20 at 7:50









nasica88

16018




16018








  • 1




    Generally, you use the same version of compiler and options for everything you link together. I know of no way to extract these defines from compiled code.
    – rubenvb
    Nov 20 at 8:04










  • @rubenvb Then do you recommend Anaconda 5.0 only, not Anaconda 5.2 or higher for Redhat 7.5 ?
    – nasica88
    Nov 20 at 9:12






  • 1




    I recommend using the same version of the compiler. The path of least resistance is using your distro's packages (if anaconda is in there, use that). I know RedHat has several GCC versions installable, maybe the one you want can be installed and set as default? I'm not that familiar with RedHat and that in itself warrants another question :) as this is all relatively off-topic for this question as asked.
    – rubenvb
    Nov 20 at 9:19














  • 1




    Generally, you use the same version of compiler and options for everything you link together. I know of no way to extract these defines from compiled code.
    – rubenvb
    Nov 20 at 8:04










  • @rubenvb Then do you recommend Anaconda 5.0 only, not Anaconda 5.2 or higher for Redhat 7.5 ?
    – nasica88
    Nov 20 at 9:12






  • 1




    I recommend using the same version of the compiler. The path of least resistance is using your distro's packages (if anaconda is in there, use that). I know RedHat has several GCC versions installable, maybe the one you want can be installed and set as default? I'm not that familiar with RedHat and that in itself warrants another question :) as this is all relatively off-topic for this question as asked.
    – rubenvb
    Nov 20 at 9:19








1




1




Generally, you use the same version of compiler and options for everything you link together. I know of no way to extract these defines from compiled code.
– rubenvb
Nov 20 at 8:04




Generally, you use the same version of compiler and options for everything you link together. I know of no way to extract these defines from compiled code.
– rubenvb
Nov 20 at 8:04












@rubenvb Then do you recommend Anaconda 5.0 only, not Anaconda 5.2 or higher for Redhat 7.5 ?
– nasica88
Nov 20 at 9:12




@rubenvb Then do you recommend Anaconda 5.0 only, not Anaconda 5.2 or higher for Redhat 7.5 ?
– nasica88
Nov 20 at 9:12




1




1




I recommend using the same version of the compiler. The path of least resistance is using your distro's packages (if anaconda is in there, use that). I know RedHat has several GCC versions installable, maybe the one you want can be installed and set as default? I'm not that familiar with RedHat and that in itself warrants another question :) as this is all relatively off-topic for this question as asked.
– rubenvb
Nov 20 at 9:19




I recommend using the same version of the compiler. The path of least resistance is using your distro's packages (if anaconda is in there, use that). I know RedHat has several GCC versions installable, maybe the one you want can be installed and set as default? I'm not that familiar with RedHat and that in itself warrants another question :) as this is all relatively off-topic for this question as asked.
– rubenvb
Nov 20 at 9:19

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53388433%2fhow-to-find-the-value-of-glibcxx-use-cxx11-abi-of-a-shared-object%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53388433%2fhow-to-find-the-value-of-glibcxx-use-cxx11-abi-of-a-shared-object%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Wiesbaden

Marschland

Dieringhausen