{"action":"created","issue":{"url":"https://api.github.com/repos/dhemery/DHE-Modules/issues/12","repository_url":"https://api.github.com/repos/dhemery/DHE-Modules","labels_url":"https://api.github.com/repos/dhemery/DHE-Modules/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/dhemery/DHE-Modules/issues/12/comments","events_url":"https://api.github.com/repos/dhemery/DHE-Modules/issues/12/events","html_url":"https://github.com/dhemery/DHE-Modules/issues/12","id":386450334,"node_id":"MDU6SXNzdWUzODY0NTAzMzQ=","number":12,"title":"build fail on old GCC","user":{"login":"davephillips","id":7815938,"node_id":"MDQ6VXNlcjc4MTU5Mzg=","avatar_url":"https://avatars3.githubusercontent.com/u/7815938?v=4","gravatar_id":"","url":"https://api.github.com/users/davephillips","html_url":"https://github.com/davephillips","followers_url":"https://api.github.com/users/davephillips/followers","following_url":"https://api.github.com/users/davephillips/following{/other_user}","gists_url":"https://api.github.com/users/davephillips/gists{/gist_id}","starred_url":"https://api.github.com/users/davephillips/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davephillips/subscriptions","organizations_url":"https://api.github.com/users/davephillips/orgs","repos_url":"https://api.github.com/users/davephillips/repos","events_url":"https://api.github.com/users/davephillips/events{/privacy}","received_events_url":"https://api.github.com/users/davephillips/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-01T11:34:12Z","updated_at":"2018-12-01T16:11:06Z","closed_at":null,"author_association":"NONE","body":"Fedora 23 Linux\r\nRack 0.6.2c (from source)\r\nGCC 5.3.1\r\n\r\nHi Dale ! Trying to build the latest pull throws an error about casting:\r\n\r\ng++  -Wsuggest-override -std=c++11 -I./include -DSLUG=DHE-Modules -fPIC -I../../include -I../../dep/include -DVERSION=0.6.4 -MMD -MP -g -O3 -march=athlon-fx -ffast-math -fno-finite-math-only -Wall -Wextra -Wno-unused-parameter -DARCH_LIN -c -o build/src/juster.cpp.o src/juster.cpp\r\nIn file included from /usr/include/c++/5.3.1/x86_64-redhat-linux/bits/c++allocator.h:33:0,\r\n                 from /usr/include/c++/5.3.1/bits/allocator.h:46,\r\n                 from /usr/include/c++/5.3.1/string:41,\r\n                 from ../../include/util/common.hpp:10,\r\n                 from ../../include/rack.hpp:4,\r\n                 from ./include/dhe-modules.h:3,\r\n                 from src/juster.cpp:1:\r\n/usr/include/c++/5.3.1/ext/new_allocator.h: In instantiation of ‘struct __gnu_cxx::new_allocator<const DHE::JusterChannel>’:\r\n/usr/include/c++/5.3.1/bits/allocator.h:92:11:   required from ‘class std::allocator<const DHE::JusterChannel>’\r\n/usr/include/c++/5.3.1/bits/stl_vector.h:79:14:   required from ‘struct std::_Vector_base<const DHE::JusterChannel, std::allocator<const DHE::JusterChannel> >::_Vector_impl’\r\n/usr/include/c++/5.3.1/bits/stl_vector.h:164:20:   required from ‘struct std::_Vector_base<const DHE::JusterChannel, std::allocator<const DHE::JusterChannel> >’\r\n/usr/include/c++/5.3.1/bits/stl_vector.h:214:11:   required from ‘class std::vector<const DHE::JusterChannel>’\r\nsrc/juster.cpp:118:69:   required from here\r\n/usr/include/c++/5.3.1/ext/new_allocator.h:93:7: error: ‘const _Tp* __gnu_cxx::new_allocator<_Tp>::address(__gnu_cxx::new_allocator<_Tp>::const_reference) const [with _Tp = const DHE::JusterChannel; __gnu_cxx::new_allocator<_Tp>::const_pointer = const DHE::JusterChannel*; __gnu_cxx::new_allocator<_Tp>::const_reference = const DHE::JusterChannel&]’ cannot be overloaded\r\n       address(const_reference __x) const _GLIBCXX_NOEXCEPT\r\n       ^\r\n/usr/include/c++/5.3.1/ext/new_allocator.h:89:7: error: with ‘_Tp* __gnu_cxx::new_allocator<_Tp>::address(__gnu_cxx::new_allocator<_Tp>::reference) const [with _Tp = const DHE::JusterChannel; __gnu_cxx::new_allocator<_Tp>::pointer = const DHE::JusterChannel*; __gnu_cxx::new_allocator<_Tp>::reference = const DHE::JusterChannel&]’\r\n       address(reference __x) const _GLIBCXX_NOEXCEPT\r\n       ^\r\n/usr/include/c++/5.3.1/ext/new_allocator.h: In instantiation of ‘void __gnu_cxx::new_allocator<_Tp>::deallocate(__gnu_cxx::new_allocator<_Tp>::pointer, __gnu_cxx::new_allocator<_Tp>::size_type) [with _Tp = const DHE::JusterChannel; __gnu_cxx::new_allocator<_Tp>::pointer = const DHE::JusterChannel*; __gnu_cxx::new_allocator<_Tp>::size_type = long unsigned int]’:\r\n/usr/include/c++/5.3.1/bits/alloc_traits.h:517:9:   required from ‘static void std::allocator_traits<std::allocator<_CharT> >::deallocate(std::allocator_traits<std::allocator<_CharT> >::allocator_type&, std::allocator_traits<std::allocator<_CharT> >::pointer, std::allocator_traits<std::allocator<_CharT> >::size_type) [with _Tp = const DHE::JusterChannel; std::allocator_traits<std::allocator<_CharT> >::allocator_type = std::allocator<const DHE::JusterChannel>; std::allocator_traits<std::allocator<_CharT> >::pointer = const DHE::JusterChannel*; std::allocator_traits<std::allocator<_CharT> >::size_type = long unsigned int]’\r\n/usr/include/c++/5.3.1/bits/stl_vector.h:178:19:   required from ‘void std::_Vector_base<_Tp, _Alloc>::_M_deallocate(std::_Vector_base<_Tp, _Alloc>::pointer, std::size_t) [with _Tp = const DHE::JusterChannel; _Alloc = std::allocator<const DHE::JusterChannel>; std::_Vector_base<_Tp, _Alloc>::pointer = const DHE::JusterChannel*; std::size_t = long unsigned int]’\r\n/usr/include/c++/5.3.1/bits/stl_vector.h:160:22:   required from ‘std::_Vector_base<_Tp, _Alloc>::~_Vector_base() [with _Tp = const DHE::JusterChannel; _Alloc = std::allocator<const DHE::JusterChannel>]’\r\n/usr/include/c++/5.3.1/bits/stl_vector.h:375:18:   required from ‘std::vector<_Tp, _Alloc>::vector(std::initializer_list<_Tp>, const allocator_type&) [with _Tp = const DHE::JusterChannel; _Alloc = std::allocator<const DHE::JusterChannel>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<const DHE::JusterChannel>]’\r\nsrc/juster.cpp:118:69:   required from here\r\n/usr/include/c++/5.3.1/ext/new_allocator.h:110:26: error: invalid conversion from ‘const void*’ to ‘void*’ [-fpermissive]\r\n       { ::operator delete(__p); }\r\n                          ^\r\nIn file included from /usr/include/c++/5.3.1/ext/new_allocator.h:33:0,\r\n                 from /usr/include/c++/5.3.1/x86_64-redhat-linux/bits/c++allocator.h:33,\r\n                 from /usr/include/c++/5.3.1/bits/allocator.h:46,\r\n                 from /usr/include/c++/5.3.1/string:41,\r\n                 from ../../include/util/common.hpp:10,\r\n                 from ../../include/rack.hpp:4,\r\n                 from ./include/dhe-modules.h:3,\r\n                 from src/juster.cpp:1:\r\n/usr/include/c++/5.3.1/new:115:6: note:   initializing argument 1 of ‘void operator delete(void*)’\r\n void operator delete(void*) _GLIBCXX_USE_NOEXCEPT\r\n      ^\r\nIn file included from /usr/include/c++/5.3.1/vector:62:0,\r\n                 from ../../include/util/common.hpp:11,\r\n                 from ../../include/rack.hpp:4,\r\n                 from ./include/dhe-modules.h:3,\r\n                 from src/juster.cpp:1:\r\n/usr/include/c++/5.3.1/bits/stl_construct.h: In instantiation of ‘void std::_Construct(_T1*, _Args&& ...) [with _T1 = const DHE::JusterChannel; _Args = {const DHE::JusterChannel&}]’:\r\n/usr/include/c++/5.3.1/bits/stl_uninitialized.h:75:18:   required from ‘static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = const DHE::JusterChannel*; _ForwardIterator = const DHE::JusterChannel*; bool _TrivialValueTypes = false]’\r\n/usr/include/c++/5.3.1/bits/stl_uninitialized.h:126:15:   required from ‘_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = const DHE::JusterChannel*; _ForwardIterator = const DHE::JusterChannel*]’\r\n/usr/include/c++/5.3.1/bits/stl_uninitialized.h:281:37:   required from ‘_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp>&) [with _InputIterator = const DHE::JusterChannel*; _ForwardIterator = const DHE::JusterChannel*; _Tp = const DHE::JusterChannel]’\r\n/usr/include/c++/5.3.1/bits/stl_vector.h:1290:33:   required from ‘void std::vector<_Tp, _Alloc>::_M_range_initialize(_ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = const DHE::JusterChannel*; _Tp = const DHE::JusterChannel; _Alloc = std::allocator<const DHE::JusterChannel>]’\r\n/usr/include/c++/5.3.1/bits/stl_vector.h:377:21:   required from ‘std::vector<_Tp, _Alloc>::vector(std::initializer_list<_Tp>, const allocator_type&) [with _Tp = const DHE::JusterChannel; _Alloc = std::allocator<const DHE::JusterChannel>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<const DHE::JusterChannel>]’\r\nsrc/juster.cpp:118:69:   required from here\r\n/usr/include/c++/5.3.1/bits/stl_construct.h:75:7: error: invalid static_cast from type ‘const DHE::JusterChannel*’ to type ‘void*’\r\n     { ::new(static_cast<void*>(__p)) _T1(std::forward<_Args>(__args)...); }\r\n       ^\r\n../../compile.mk:64: recipe for target 'build/src/juster.cpp.o' failed\r\nmake: *** [build/src/juster.cpp.o] Error 1\r\n"},"comment":{"url":"https://api.github.com/repos/dhemery/DHE-Modules/issues/comments/443437010","html_url":"https://github.com/dhemery/DHE-Modules/issues/12#issuecomment-443437010","issue_url":"https://api.github.com/repos/dhemery/DHE-Modules/issues/12","id":443437010,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzQzNzAxMA==","user":{"login":"dhemery","id":120657,"node_id":"MDQ6VXNlcjEyMDY1Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/120657?v=4","gravatar_id":"","url":"https://api.github.com/users/dhemery","html_url":"https://github.com/dhemery","followers_url":"https://api.github.com/users/dhemery/followers","following_url":"https://api.github.com/users/dhemery/following{/other_user}","gists_url":"https://api.github.com/users/dhemery/gists{/gist_id}","starred_url":"https://api.github.com/users/dhemery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhemery/subscriptions","organizations_url":"https://api.github.com/users/dhemery/orgs","repos_url":"https://api.github.com/users/dhemery/repos","events_url":"https://api.github.com/users/dhemery/events{/privacy}","received_events_url":"https://api.github.com/users/dhemery/received_events","type":"User","site_admin":false},"created_at":"2018-12-01T16:11:06Z","updated_at":"2018-12-01T16:11:06Z","author_association":"OWNER","body":"Thanks. I’ll look into it. A nice reminder that I should have built on Linux before merging to master."}}
{"actor":{"display_login":"dhemery"}}