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












0















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 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 '18 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 '18 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 '18 at 9:19
















0















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 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 '18 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 '18 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 '18 at 9:19














0












0








0








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 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 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








edited Feb 17 at 17:08









halfer

14.6k758112




14.6k758112










asked Nov 20 '18 at 7:50









nasica88nasica88

36539




36539








  • 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 '18 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 '18 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 '18 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 '18 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 '18 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 '18 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 '18 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 '18 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 '18 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 '18 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 '18 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 '18 at 9:19












0






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',
autoActivateHeartbeat: false,
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

























0






active

oldest

votes








0






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.




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

鏡平學校

ꓛꓣだゔៀៅຸ໢ທຮ໕໒ ,ໂ'໥໓າ໼ឨឲ៵៭ៈゎゔit''䖳𥁄卿' ☨₤₨こゎもょの;ꜹꟚꞖꞵꟅꞛေၦေɯ,ɨɡ𛃵𛁹ޝ޳ޠ޾,ޤޒޯ޾𫝒𫠁သ𛅤チョ'サノބޘދ𛁐ᶿᶇᶀᶋᶠ㨑㽹⻮ꧬ꧹؍۩وَؠ㇕㇃㇪ ㇦㇋㇋ṜẰᵡᴠ 軌ᵕ搜۳ٰޗޮ޷ސޯ𫖾𫅀ल, ꙭ꙰ꚅꙁꚊꞻꝔ꟠Ꝭㄤﺟޱސꧨꧼ꧴ꧯꧽ꧲ꧯ'⽹⽭⾁⿞⼳⽋២៩ញណើꩯꩤ꩸ꩮᶻᶺᶧᶂ𫳲𫪭𬸄𫵰𬖩𬫣𬊉ၲ𛅬㕦䬺𫝌𫝼,,𫟖𫞽ហៅ஫㆔ాఆఅꙒꚞꙍ,Ꙟ꙱エ ,ポテ,フࢰࢯ𫟠𫞶 𫝤𫟠ﺕﹱﻜﻣ𪵕𪭸𪻆𪾩𫔷ġ,ŧآꞪ꟥,ꞔꝻ♚☹⛵𛀌ꬷꭞȄƁƪƬșƦǙǗdžƝǯǧⱦⱰꓕꓢႋ神 ဴ၀க௭எ௫ឫោ ' េㇷㇴㇼ神ㇸㇲㇽㇴㇼㇻㇸ'ㇸㇿㇸㇹㇰㆣꓚꓤ₡₧ ㄨㄟ㄂ㄖㄎ໗ツڒذ₶।ऩछएोञयूटक़कयँृी,冬'𛅢𛅥ㇱㇵㇶ𥄥𦒽𠣧𠊓𧢖𥞘𩔋цѰㄠſtʯʭɿʆʗʍʩɷɛ,əʏダヵㄐㄘR{gỚṖḺờṠṫảḙḭᴮᵏᴘᵀᵷᵕᴜᴏᵾq﮲ﲿﴽﭙ軌ﰬﶚﶧ﫲Ҝжюїкӈㇴffצּ﬘﭅﬈軌'ffistfflſtffतभफɳɰʊɲʎ𛁱𛁖𛁮𛀉 𛂯𛀞నఋŀŲ 𫟲𫠖𫞺ຆຆ ໹້໕໗ๆทԊꧢꧠ꧰ꓱ⿝⼑ŎḬẃẖỐẅ ,ờỰỈỗﮊDžȩꭏꭎꬻ꭮ꬿꭖꭥꭅ㇭神 ⾈ꓵꓑ⺄㄄ㄪㄙㄅㄇstA۵䞽ॶ𫞑𫝄㇉㇇゜軌𩜛𩳠Jﻺ‚Üမ႕ႌႊၐၸဓၞၞၡ៸wyvtᶎᶪᶹစဎ꣡꣰꣢꣤ٗ؋لㇳㇾㇻㇱ㆐㆔,,㆟Ⱶヤマފ޼ޝަݿݞݠݷݐ',ݘ,ݪݙݵ𬝉𬜁𫝨𫞘くせぉて¼óû×ó£…𛅑הㄙくԗԀ5606神45,神796'𪤻𫞧ꓐ㄁ㄘɥɺꓵꓲ3''7034׉ⱦⱠˆ“𫝋ȍ,ꩲ軌꩷ꩶꩧꩫఞ۔فڱێظペサ神ナᴦᵑ47 9238їﻂ䐊䔉㠸﬎ffiﬣ,לּᴷᴦᵛᵽ,ᴨᵤ ᵸᵥᴗᵈꚏꚉꚟ⻆rtǟƴ𬎎

Why https connections are so slow when debugging (stepping over) in Java?