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

[C++] Link failure due to googletest shared library on Alpine Linux

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.14.0
    • Component/s: C++

      Description

      See

      [314/538] Linking CXX shared library debug/libarrow_testing.so.14.0.0
      FAILED: debug/libarrow_testing.so.14.0.0 
      : && /usr/bin/ccache /usr/bin/g++ -fPIC -Wno-noexcept-type  -fdiagnostics-color=always -ggdb -O0  -Wall -Wno-conversion -Wno-sign-conversion -Wno-unused-variable -Werror -msse4.2  -g   -shared -Wl,-soname,libarrow_testing.so.14 -o debug/libarrow_testing.so.14.0.0 src/arrow/CMakeFiles/arrow_testing_objlib.dir/io/test-common.cc.o src/arrow/CMakeFiles/arrow_testing_objlib.dir/ipc/test-common.cc.o src/arrow/CMakeFiles/arrow_testing_objlib.dir/filesystem/test-util.cc.o src/arrow/CMakeFiles/arrow_testing_objlib.dir/testing/gtest_util.cc.o src/arrow/CMakeFiles/arrow_testing_objlib.dir/testing/random.cc.o  -Wl,-rpath,/build/cpp/debug:/build/cpp/googletest_ep-prefix/src/googletest_ep/lib: debug/libarrow.so.14.0.0 googletest_ep-prefix/src/googletest_ep/lib/libgtestd.so double-conversion_ep/src/double-conversion_ep/lib/libdouble-conversion.a /usr/lib/libcrypto.so brotli_ep/src/brotli_ep-install/lib/libbrotlienc-static.a brotli_ep/src/brotli_ep-install/lib/libbrotlidec-static.a brotli_ep/src/brotli_ep-install/lib/libbrotlicommon-static.a glog_ep-prefix/src/glog_ep/lib/libglog.a -ldl jemalloc_ep-prefix/src/jemalloc_ep/dist//lib/libjemalloc_pic.a -lrt && :
      g++: error: googletest_ep-prefix/src/googletest_ep/lib/libgtestd.so: No such file or directory
      [327/538] Building CXX object src/arrow/CMakeFiles/arrow-array-test.dir/array-test.cc.o
      ninja: build stopped: subcommand failed.
      

      There is erroneous logic in ThirdpartyToolchain.cmake – I am fixing.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                wesm Wes McKinney
                Reporter:
                wesm Wes McKinney
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m