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

Rok Mihevc commented on ARROW-1308:
-----------------------------------

This issue has been migrated to [issue 
#17304|https://github.com/apache/arrow/issues/17304] on GitHub. Please see the 
[migration documentation|https://github.com/apache/arrow/issues/14542] for 
further details.

> [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
>            Priority: Major
>             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
(v8.20.10#820010)

Reply via email to