You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Leo (JIRA)" <ji...@apache.org> on 2017/08/01 19:55:00 UTC

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

Leo created ARROW-1308:
--------------------------

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


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

{{/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}}



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