arrow-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juan J Galvez <j...@bodo.ai>
Subject RE: [C++] [pip] libarrow.so dynamic linking error from C++17 compiled code
Date Wed, 28 Apr 2021 22:39:28 GMT
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta
http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft
Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
.MsoChpDefault
	{mso-style-type:export-only;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style></head><body lang=EN-US link=blue vlink="#954F72" style='word-wrap:break-word'><div
class=WordSection1><p class=MsoNormal>This worked! Thank you!</p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p
class=MsoNormal><o:p>&nbsp;</o:p></p><div style='mso-element:para-border-div;border:none;border-top:solid
#E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='border:none;padding:0in'><b>From:
</b><a href="mailto:antoine@python.org">Antoine Pitrou</a><br><b>Sent:
</b>Tuesday, April 27, 2021 3:34 AM<br><b>To: </b><a href="mailto:user@arrow.apache.org">user@arrow.apache.org</a><br><b>Subject:
</b>Re: [C++] [pip] libarrow.so dynamic linking error from C++17 compiled code</p></div><p
class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p
class=MsoNormal>Hello Juan,</p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p
class=MsoNormal>Can you try passing -D_GLIBCXX_USE_CXX11_ABI=0 when compiling your</p><p
class=MsoNormal>C++17 compiled code?</p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p
class=MsoNormal>Regards</p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p
class=MsoNormal>Antoine.</p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p
class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>On
Mon, 26 Apr 2021 12:36:01 -0500</p><p class=MsoNormal>Juan J Galvez &lt;juan@bodo.ai&gt;
wrote:</p><p class=MsoNormal>&gt; Hello,</p><p class=MsoNormal>&gt;
</p><p class=MsoNormal>&gt; &nbsp;</p><p class=MsoNormal>&gt;
</p><p class=MsoNormal>&gt; The shared libraries in the pyarrow pip package
apparently cannot be called from C++17 compiled code. Compilation works when using the `pyarrow/include`
headers provided with the pip package, but at dynamic linking I get this error when linking
with libarrow.so.300:</p><p class=MsoNormal>&gt; </p><p class=MsoNormal>&gt;
&nbsp;</p><p class=MsoNormal>&gt; </p><p class=MsoNormal>&gt;
undefined symbol: _ZN5arrow8internal14DieWithMessageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE</p><p
class=MsoNormal>&gt; </p><p class=MsoNormal>&gt; &nbsp;</p><p
class=MsoNormal>&gt; </p><p class=MsoNormal>&gt; The Arrow libraries
in conda-forge pyarrow and arrow-cpp packages don’t have this issue. The symbol is present
in the library and code compiled with C++11 or C++17 works.</p><p class=MsoNormal>&gt;
</p><p class=MsoNormal>&gt; &nbsp;</p><p class=MsoNormal>&gt;
</p><p class=MsoNormal>&gt; Thanks</p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p
class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p
class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>

Mime
View raw message