You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Wes McKinney (JIRA)" <ji...@apache.org> on 2019/02/08 03:10:00 UTC

[jira] [Resolved] (ARROW-4500) [C++] librt and pthread hacks can cause linking problems

     [ https://issues.apache.org/jira/browse/ARROW-4500?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wes McKinney resolved ARROW-4500.
---------------------------------
    Resolution: Fixed

Issue resolved by pull request 3583
[https://github.com/apache/arrow/pull/3583]

> [C++] librt and pthread hacks can cause linking problems
> --------------------------------------------------------
>
>                 Key: ARROW-4500
>                 URL: https://issues.apache.org/jira/browse/ARROW-4500
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++, C++ - Plasma
>            Reporter: Wes McKinney
>            Assignee: Wes McKinney
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 0.13.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> There are a few places (e.g. {{plasma_store_server}} and {{arrow-stream-to-file}}) where the work I did in https://github.com/apache/arrow/commit/b4278641a6a56c56d2007469b0eb840d52cc007d#diff-6725b893dfc969abac4f4ee39a3a317f is conflicting. 
> I got these linking failures on Ubuntu 18.10 using the conda-forge gcc 7.3.0 toolchain
> {code}
> FAILED: debug/arrow-stream-to-file 
> : && /usr/bin/ccache /home/wesm/miniconda/envs/arrow-3.7/bin/x86_64-conda_cos6-linux-gnu-c++  -Wno-noexcept-type -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -ggdb -O0  -Wall -Wconversion -Wno-sign-conversion -Werror -msse4.2 -fno-omit-frame-pointer -g  -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags   -rdynamic src/arrow/ipc/CMakeFiles/arrow-stream-to-file.dir/stream-to-file.cc.o  -o debug/arrow-stream-to-file  -Wl,-rpath,/home/wesm/cpp-toolchain/lib debug/libarrow.a /home/wesm/cpp-toolchain/lib/libboost_filesystem.so /home/wesm/cpp-toolchain/lib/libboost_system.so -lpthread -ldl /home/wesm/cpp-toolchain/lib/libdouble-conversion.a /home/wesm/cpp-toolchain/lib/libbrotlidec-static.a /home/wesm/cpp-toolchain/lib/libbrotlienc-static.a /home/wesm/cpp-toolchain/lib/libbrotlicommon-static.a /home/wesm/cpp-toolchain/lib/libbz2.a /home/wesm/cpp-toolchain/lib/liblz4.a /home/wesm/cpp-toolchain/lib/libsnappy.a /home/wesm/cpp-toolchain/lib/libz.so /home/wesm/cpp-toolchain/lib/libzstd.a /home/wesm/cpp-toolchain/lib/libglog.a /home/wesm/cpp-toolchain/lib/libgflags.a /home/wesm/cpp-toolchain/lib/libboost_regex.so -lrt jemalloc_ep-prefix/src/jemalloc_ep/dist//lib/libjemalloc_pic.a -pthread && :
> /home/wesm/miniconda/envs/arrow-3.7/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: jemalloc_ep-prefix/src/jemalloc_ep/dist//lib/libjemalloc_pic.a(nstime.pic.o): undefined reference to symbol 'clock_gettime@@GLIBC_2.2.5'
> /home/wesm/miniconda/envs/arrow-3.7/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: /home/wesm/miniconda/envs/arrow-3.7/bin/../x86_64-conda_cos6-linux-gnu/sysroot/usr/lib/../lib/librt.so: error adding symbols: DSO missing from command line
> collect2: error: ld returned 1 exit status
> {code}
> Working on a patch



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)