[
https://issues.apache.org/jira/browse/ARROW-8193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Antoine Pitrou resolved ARROW-8193.
-----------------------------------
Fix Version/s: 0.17.0
Resolution: Fixed
Issue resolved by pull request 6706
[https://github.com/apache/arrow/pull/6706]
> [C++] arrow-future-test fails to compile on gcc 4.8
> ---------------------------------------------------
>
> Key: ARROW-8193
> URL: https://issues.apache.org/jira/browse/ARROW-8193
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++
> Reporter: Wes McKinney
> Assignee: Wes McKinney
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.17.0
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> {code}
> In file included from /usr/include/c++/4.8/memory:64:0,
> from /home/wesm/code/arrow/cpp/src/arrow/util/future.h:22,
> from
> /home/wesm/code/arrow/cpp/src/arrow/util/future_test.cc:18:
> /usr/include/c++/4.8/bits/stl_construct.h: In instantiation of ‘void
> std::_Construct(_T1*, _Args&& ...) [with _T1 = arrow::MoveOnlyDataType; _Args
> = {const arrow::MoveOnlyDataType&}]’:
> /usr/include/c++/4.8/bits/stl_uninitialized.h:75:53: required from ‘static
> _ForwardIterator
> std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator,
> _InputIterator, _ForwardIterator) [with _InputIterator =
> __gnu_cxx::__normal_iterator<const arrow::MoveOnlyDataType*,
> std::vector<arrow::MoveOnlyDataType, std::allocator<arrow::MoveOnlyDataType>
> > >; _ForwardIterator = arrow::MoveOnlyDataType*; bool _TrivialValueTypes =
> false]’
> /usr/include/c++/4.8/bits/stl_uninitialized.h:117:41: required from
> ‘_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator,
> _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator<const
> arrow::MoveOnlyDataType*, std::vector<arrow::MoveOnlyDataType,
> std::allocator<arrow::MoveOnlyDataType> > >; _ForwardIterator =
> arrow::MoveOnlyDataType*]’
> /usr/include/c++/4.8/bits/stl_uninitialized.h:258:63: required from
> ‘_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator,
> _ForwardIterator, std::allocator<_Tp>&) [with _InputIterator =
> __gnu_cxx::__normal_iterator<const arrow::MoveOnlyDataType*,
> std::vector<arrow::MoveOnlyDataType, std::allocator<arrow::MoveOnlyDataType>
> > >; _ForwardIterator = arrow::MoveOnlyDataType*; _Tp =
> arrow::MoveOnlyDataType]’
> /usr/include/c++/4.8/bits/stl_vector.h:316:32: required from
> ‘std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp
> = arrow::MoveOnlyDataType; _Alloc = std::allocator<arrow::MoveOnlyDataType>]’
> /home/wesm/code/arrow/cpp/src/arrow/result.h:417:5: required from ‘void
> arrow::Result<T>::ConstructValue(U&&) [with U =
> std::vector<arrow::MoveOnlyDataType, std::allocator<arrow::MoveOnlyDataType>
> >&; T = std::vector<arrow::MoveOnlyDataType,
> std::allocator<arrow::MoveOnlyDataType> >]’
> /home/wesm/code/arrow/cpp/src/arrow/result.h:167:42: required from
> ‘arrow::Result<T>::Result(U&&) [with U = std::vector<arrow::MoveOnlyDataType,
> std::allocator<arrow::MoveOnlyDataType> >&; E = void; T =
> std::vector<arrow::MoveOnlyDataType, std::allocator<arrow::MoveOnlyDataType>
> >]’
> /home/wesm/code/arrow/cpp/src/arrow/util/iterator.h:159:12: required from
> ‘arrow::Result<std::vector<FutureType> > arrow::Iterator<T>::ToVector() [with
> T = arrow::MoveOnlyDataType]’
> /home/wesm/code/arrow/cpp/src/arrow/testing/gtest_util.h:419:3: required
> from ‘std::vector<FutureType> arrow::IteratorToVector(arrow::Iterator<T>)
> [with T = arrow::MoveOnlyDataType]’
> /home/wesm/code/arrow/cpp/src/arrow/util/future_test.cc:610:61: required
> from ‘void arrow::FutureTestBase<T>::TestBasicAsCompleted() [with T =
> arrow::MoveOnlyDataType]’
> /home/wesm/code/arrow/cpp/src/arrow/util/future_test.cc:708:52: required
> from ‘void
> arrow::FutureIteratorTest_BasicAsCompleted_Test<gtest_TypeParam_>::TestBody()
> [with gtest_TypeParam_ = arrow::MoveOnlyDataType]’
> /home/wesm/code/arrow/cpp/src/arrow/type.h:756:20: required from here
> /usr/include/c++/4.8/bits/stl_construct.h:75:7: error: use of deleted
> function ‘arrow::MoveOnlyDataType::MoveOnlyDataType(const
> arrow::MoveOnlyDataType&)’
> { ::new(static_cast<void*>(__p)) _T1(std::forward<_Args>(__args)...); }
> ^
> /home/wesm/code/arrow/cpp/src/arrow/util/future_test.cc:70:3: error: declared
> here
> MoveOnlyDataType(const MoveOnlyDataType& other) = delete;
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)