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 2017/08/02 03:01:00 UTC

[jira] [Resolved] (ARROW-1308) [C++] ld tries to link 'arrow_static' even when -DARROW_BUILD_STATIC=off

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

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

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

> [C++] ld tries to link 'arrow_static' even when -DARROW_BUILD_STATIC=off
> ------------------------------------------------------------------------
>
>                 Key: ARROW-1308
>                 URL: https://issues.apache.org/jira/browse/ARROW-1308
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++
>    Affects Versions: 0.5.0
>         Environment: I'm building within GNU Guix on 64-bit Linux. I'm using CMake 3.7.2.
>            Reporter: Leo
>            Assignee: Wes McKinney
>             Fix For: 0.6.0
>
>
> I'm passing these flags to CMake:
> "-DCMAKE_BUILD_TYPE=Release"
> "-DARROW_WITH_ZSTD=off"
> "-DARROW_WITH_LZ4=off"
> "-DARROW_BUILD_TESTS=off"
> "-DARROW_BUILD_STATIC=off"
> Based on that, I expect arrow to build only shared libraries. However, the build process fails when ld tries to link against 'arrow_static':
> {quote}
> /gnu/store/4iw4r2majarqlm19adaikqw126jxqf2p-gcc-5.4.0/bin/c++    -O3 -DNDEBUG -Wall -std=c++11 -msse3  -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG   CMakeFiles/file-to-stream.dir/file-to-stream.cc.o  -o ../../../release/file-to-stream -rdynamic -larrow_static -lpthread /gnu/store/viqagcaanr044k1x1mx9kkbg0z5i8ii4-boost-1.63.0/lib/libboost_filesystem.so /gnu/store/viqagcaanr044k1x1mx9kkbg0z5i8ii4-boost-1.63.0/lib/libboost_system.so -ldl
> ld: cannot find -larrow_static
> {quote}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)