[ 
https://issues.apache.org/jira/browse/ARROW-913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15999542#comment-15999542
 ] 

Uwe L. Korn commented on ARROW-913:
-----------------------------------

At the moment, the behaviour is as wanted:

{noformat}
% ldd pyarrow/_config.so
        linux-vdso.so.1 =>  (0x00007ffeae9d4000)
        libarrow_python.so.0 => 
/home/uwe/Development/dist/lib/libarrow_python.so.0 (0x00007f701bb04000)
        libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 
(0x00007f701b76b000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f701b3a2000)
        libarrow.so.0 => /home/uwe/Development/dist/lib/libarrow.so.0 
(0x00007f701b07a000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 
(0x00007f701ae5c000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f701ab53000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 
(0x00007f701a93d000)
        /lib64/ld-linux-x86-64.so.2 (0x0000559a0a35d000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f701a738000)
        libboost_system.so.1.58.0 => 
/usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0 (0x00007f701a534000)
        libboost_filesystem.so.1.58.0 => 
/usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.58.0 (0x00007f701a31c000)
{noformat}

Only {{pyarrow/_jemalloc.so}} links to {{libjemalloc.so.1}}:

{noformat}
% ldd pyarrow/_jemalloc.so
        linux-vdso.so.1 =>  (0x00007ffc60366000)
        libarrow_jemalloc.so.0 => 
/home/uwe/Development/dist/lib/libarrow_jemalloc.so.0 (0x00007f3c1fb1b000)
        libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 
(0x00007f3c1f782000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3c1f3b9000)
        libarrow.so.0 => /home/uwe/Development/dist/lib/libarrow.so.0 
(0x00007f3c1f091000)
        libjemalloc.so.1 => /usr/lib/x86_64-linux-gnu/libjemalloc.so.1 
(0x00007f3c1ee59000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 
(0x00007f3c1ec43000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f3c1e93a000)
        /lib64/ld-linux-x86-64.so.2 (0x0000563eb8799000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f3c1e735000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 
(0x00007f3c1e518000)
        libboost_system.so.1.58.0 => 
/usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0 (0x00007f3c1e314000)
        libboost_filesystem.so.1.58.0 => 
/usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.58.0 (0x00007f3c1e0fb000)
{noformat}

> [Python] Only link jemalloc to the Cython extension where it's needed
> ---------------------------------------------------------------------
>
>                 Key: ARROW-913
>                 URL: https://issues.apache.org/jira/browse/ARROW-913
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: Python
>            Reporter: Wes McKinney
>
> see https://github.com/apache/arrow/blob/master/python/CMakeLists.txt#L319
> If the user does not have jemalloc installed, it would be better to defer the 
> library load failure until they try to use the jemalloc-based memory 
> allocator. See e.g.
> https://issues.apache.org/jira/browse/ARROW-909



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to