Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-1308

[C++] ld tries to link 'arrow_static' even when -DARROW_BUILD_STATIC=off

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.5.0
    • Fix Version/s: 0.6.0
    • Component/s: C++
    • Labels:
      None
    • Environment:
      I'm building within GNU Guix on 64-bit Linux. I'm using CMake 3.7.2.

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              wesmckinn Wes McKinney
              Reporter:
              lfam Leo
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: