[ https://issues.apache.org/jira/browse/ARROW-4624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17661647#comment-17661647 ]
Rok Mihevc commented on ARROW-4624: ----------------------------------- This issue has been migrated to [issue #21161|https://github.com/apache/arrow/issues/21161] on GitHub. Please see the [migration documentation|https://github.com/apache/arrow/issues/14542] for further details. > [C++] Linker errors when building benchmarks > -------------------------------------------- > > Key: ARROW-4624 > URL: https://issues.apache.org/jira/browse/ARROW-4624 > Project: Apache Arrow > Issue Type: Bug > Components: Benchmarking, C++ > Reporter: Antoine Pitrou > Assignee: Antoine Pitrou > Priority: Critical > Labels: pull-request-available > Fix For: 0.13.0 > > Time Spent: 20m > Remaining Estimate: 0h > > All C++ benchmarks now fail linking here: > {code} > [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 ] > {code} > My build script: > {code} > 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 > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)