Yuqi Gu created ARROW-6852:
------------------------------
Summary: [C++] memory-benchmark build failed on Arm64
Key: ARROW-6852
URL: https://issues.apache.org/jira/browse/ARROW-6852
Project: Apache Arrow
Issue Type: Improvement
Components: C++
Reporter: Yuqi Gu
Assignee: Yuqi Gu
After the new commit: ARROW-6381 was merged in master,
build would fail on Arm64 when DARROW_BUILD_BENCHMARKS is enabled:
{code:java}
/home/builder/arrow/cpp/src/arrow/io/memory_benchmark.cc:205:31: error:
'kMemoryPerCore' was not declared in this scope
const int64_t buffer_size = kMemoryPerCore;
^~~~~~~~~~~~~~
/home/builder/arrow/cpp/src/arrow/io/memory_benchmark.cc:207:19: error:
'Buffer' was not declared in this scope
std::shared_ptr<Buffer> src, dst;
^~~~~~
/home/builder/arrow/cpp/src/arrow/io/memory_benchmark.cc:207:19: note:
suggested alternative:
In file included from /home/builder/arrow/cpp/src/arrow/array.h:28:0,
from /home/builder/arrow/cpp/src/arrow/api.h:23,
from /home/builder/arrow/cpp/src/arrow/io/memory_benchmark.cc:20:
/home/builder/arrow/cpp/src/arrow/buffer.h:50:20: note: 'arrow::Buffer'
class ARROW_EXPORT Buffer {
^~~~~~
/home/builder/arrow/cpp/src/arrow/io/memory_benchmark.cc:207:25: error:
template argument 1 is invalid
std::shared_ptr<Buffer> src, dst;
...........
.........
.....
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)