Michael A. Smith created AVRO-2230:
--------------------------------------

             Summary: ./build.sh test fails in c++
                 Key: AVRO-2230
                 URL: https://issues.apache.org/jira/browse/AVRO-2230
             Project: Avro
          Issue Type: Bug
            Reporter: Michael A. Smith


In a clean docker build, the c++ build fails with the following error.
{noformat}
-- Boost version: 1.55.0
-- Found the following Boost libraries:
-- filesystem
-- system
-- program_options
-- iostreams
Enabled snappy codec
-- Configuring done
-- Generating done
-- Build files have been written to: /home/michaels/avro/lang/c++/build
-- Boost version: 1.55.0
-- Found the following Boost libraries:
-- filesystem
-- system
-- program_options
-- iostreams
Enabled snappy codec
-- Configuring done
-- Generating done
-- Build files have been written to: /home/michaels/avro/lang/c++/build
[ 1%] Building CXX object CMakeFiles/avrocpp_s.dir/impl/json/JsonDom.cc.o
In file included from /home/michaels/avro/lang/c++/impl/json/JsonDom.cc:19:0:
/home/michaels/avro/lang/c++/impl/json/JsonDom.hh: In instantiation of ‘void 
std::__cxx1998::vector<_Tp, _Alloc>::_M_insert_aux(std::__cxx1998::vector<_Tp, 
_Alloc>::iterator, const _Tp&) [with _Tp = avro::json::Entity; _Alloc = 
std::allocator<avro::json::Entity>; std::__cxx1998::vector<_Tp, 
_Alloc>::iterator = __gnu_cxx::__normal_iterator<avro::json::Entity*, 
std::__cxx1998::vector<avro::json::Entity, std::allocator<avro::json::Entity> > 
>; typename std::__cxx1998::_Vector_base<_Tp, _Alloc>::pointer = 
avro::json::Entity*]’:
/usr/include/c++/4.9/bits/stl_vector.h:925:28: required from ‘void 
std::__cxx1998::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = 
avro::json::Entity; _Alloc = std::allocator<avro::json::Entity>; 
std::__cxx1998::vector<_Tp, _Alloc>::value_type = avro::json::Entity]’
/usr/include/c++/4.9/debug/vector:407:22: required from ‘void 
std::__debug::vector<_Tp, _Allocator>::push_back(const _Tp&) [with _Tp = 
avro::json::Entity; _Allocator = std::allocator<avro::json::Entity>]’
/home/michaels/avro/lang/c++/impl/json/JsonDom.cc:72:43: required from here
/home/michaels/avro/lang/c++/impl/json/JsonDom.hh:64:17: error: non-static 
const member ‘const size_t avro::json::Entity::line_’, can’t use default 
assignment operator
class AVRO_DECL Entity {
^
In file included from /usr/include/c++/4.9/vector:69:0,
from /home/michaels/avro/lang/c++/impl/json/JsonDom.hh:26,
from /home/michaels/avro/lang/c++/impl/json/JsonDom.cc:19:
/usr/include/c++/4.9/bits/vector.tcc:343:16: note: synthesized method 
‘avro::json::Entity& avro::json::Entity::operator=(const avro::json::Entity&)’ 
first required here
*__position = __x_copy;
^
CMakeFiles/avrocpp_s.dir/build.make:514: recipe for target 
'CMakeFiles/avrocpp_s.dir/impl/json/JsonDom.cc.o' failed
make[2]: *** [CMakeFiles/avrocpp_s.dir/impl/json/JsonDom.cc.o] Error 1
CMakeFiles/Makefile2:425: recipe for target 'CMakeFiles/avrocpp_s.dir/all' 
failed
make[1]: *** [CMakeFiles/avrocpp_s.dir/all] Error 2
Makefile:147: recipe for target 'all' failed
make: *** [all] Error 2
{noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to