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

[C++] Linker errors when building benchmarks

    XMLWordPrintableJSON

Details

    Description

      All C++ benchmarks now fail linking here:

      [10/162] Linking CXX executable release/arrow-io-file-benchmark
      FAILED: release/arrow-io-file-benchmark 
      : && /usr/bin/ccache /usr/bin/g++-7  -Wno-noexcept-type  -O3 -DNDEBUG  -Wall -msse4.2 -fdiagnostics-color=always -Wextra -Wunused-result -Wno-unused-parameter -Wno-implicit-fallthrough -Wconversion -D_GLIBCXX_USE_CXX11_ABI=1 -fno-omit-frame-pointer -g -O3 -DNDEBUG  -rdynamic src/arrow/io/CMakeFiles/arrow-io-file-benchmark.dir/file-benchmark.cc.o  -o release/arrow-io-file-benchmark  release/libarrow_benchmark_main.a gbenchmark_ep/src/gbenchmark_ep-install/lib/libbenchmark.a -lpthread && :
      src/arrow/io/CMakeFiles/arrow-io-file-benchmark.dir/file-benchmark.cc.o: In function `arrow::BenchmarkStreamingWrites(benchmark::State&, std::valarray<long>, arrow::io::OutputStream*, arrow::BackgroundReader*)':
      /home/antoine/arrow/cpp/build/../src/arrow/io/file-benchmark.cc:139: undefined reference to `arrow::Status::ToString[abi:cxx11]() const'
      /home/antoine/arrow/cpp/build/../src/arrow/io/file-benchmark.cc:63: undefined reference to `arrow::internal::FileWrite(int, unsigned char const*, long)'
      
      [ snip tons of similar errors ]
      

      My build script:

      ARROW_CXXFLAGS="$ARROW_CXXFLAGS -fno-omit-frame-pointer -g"
      
      mkdir -p build
      pushd build
      
      cmake .. -GNinja \
          -DCMAKE_BUILD_TYPE=Release \
          -DCMAKE_INSTALL_PREFIX=$ARROW_HOME \
          -DCMAKE_INSTALL_MESSAGE=LAZY \
          -DARROW_CXXFLAGS="$ARROW_CXXFLAGS" \
          -DARROW_BUILD_TESTS=off \
          -DARROW_BUILD_BENCHMARKS=on \
          -DARROW_CUDA=on \
          -DARROW_FLIGHT=on \
          -DARROW_PARQUET=on \
          -DARROW_PLASMA=off \
          -DARROW_PYTHON=on \
          -DARROW_USE_GLOG=off \
      
      nice cmake --build . --target install
      
      popd
      

      Attachments

        Issue Links

          Activity

            People

              apitrou Antoine Pitrou
              apitrou Antoine Pitrou
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 20m
                  20m