Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails on gcc 7.2.1 (CentOs 7 devtoolset 7) #874

Closed
0xxon opened this issue Mar 20, 2020 · 10 comments
Closed

Build fails on gcc 7.2.1 (CentOs 7 devtoolset 7) #874

0xxon opened this issue Mar 20, 2020 · 10 comments
Assignees

Comments

@0xxon
Copy link
Member

@0xxon 0xxon commented Mar 20, 2020

This is a compiler that should be supported by us - according to our documentation.

This build was against the current master version.

Error output:

[  243s] [  7%] Building CXX object aux/broker/caf/libcaf_core/CMakeFiles/libcaf_core_static.dir/src/actor_system_config.cpp.o
[  247s] In file included from /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/detail/parser/read_uri.hpp:24:0,
[  247s]                  from /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/detail/parser/read_ini.hpp:31,
[  247s]                  from /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/src/actor_system_config.cpp:32:
[  247s] /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/detail/parser/read_ipv6_address.hpp: In instantiation of 'caf::detail::parser::read_ipv6_address(State&, Consumer&&)::<lambda()> [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::detail::parser::read_uri(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::uri_builder&]::<unnamed struct>&]':
[  247s] /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/detail/parser/read_ipv6_address.hpp:196:7:   required from 'struct caf::detail::parser::read_ipv6_address(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::detail::parser::read_uri(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::uri_builder&]::<unnamed struct>&]::<lambda()>'
[  247s] /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/detail/parser/read_ipv6_address.hpp:190:41:   required from 'void caf::detail::parser::read_ipv6_address(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::detail::parser::read_uri(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::uri_builder&]::<unnamed struct>&]'
[  247s] /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/detail/parser/read_uri.hpp:169:5:   required from 'void caf::detail::parser::read_uri(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::uri_builder&]'
[  247s] /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/detail/parser/read_ini.hpp:171:5:   required from 'void caf::detail::parser::read_ini_uri(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::detail::ini_category_consumer&]'
[  247s] /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/detail/parser/read_ini.hpp:192:5:   required from 'void caf::detail::parser::read_ini_value(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::detail::ini_category_consumer&]'
[  247s] /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/detail/parser/read_ini.hpp:243:5:   required from 'void caf::detail::parser::read_ini_section(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::detail::ini_category_consumer]'
[  247s] /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/detail/parser/read_ini.hpp:314:5:   required from 'void caf::detail::parser::read_ini(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::detail::ini_consumer&]'
[  247s] /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/src/actor_system_config.cpp:507:41:   required from here
[  247s] /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/detail/parser/read_ipv6_address.hpp:192:32: error: uninitialized variable 'bytes' in 'constexpr' function
[  247s]        ipv6_address::array_type bytes;
[  247s]                                 ^~~~~
[  247s] In file included from /opt/rh/devtoolset-7/root/usr/include/c++/7/tuple:39:0,
[  247s]                  from /opt/rh/devtoolset-7/root/usr/include/c++/7/bits/unique_ptr.h:37,
[  247s]                  from /opt/rh/devtoolset-7/root/usr/include/c++/7/memory:80,
[  247s]                  from /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/actor_system_config.hpp:23,
[  247s]                  from /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/src/actor_system_config.cpp:19:
[  247s] /opt/rh/devtoolset-7/root/usr/include/c++/7/array:94:12: note: 'using array_type = struct std::array<unsigned char, 16> {aka struct std::array<unsigned char, 16>}' has no user-provided default constructor
[  247s]      struct array
[  247s]             ^~~~~
[  247s] /opt/rh/devtoolset-7/root/usr/include/c++/7/array:110:56: note: and the implicitly-defined constructor does not initialize 'unsigned char std::array<unsigned char, 16>::_M_elems [16]'
[  247s]        typename _AT_Type::_Type                         _M_elems;
[  247s]                                                         ^~~~~~~~
[  247s] In file included from /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/detail/parser/read_uri.hpp:24:0,
[  247s]                  from /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/detail/parser/read_ini.hpp:31,
[  247s]                  from /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/src/actor_system_config.cpp:32:
[  247s] /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/detail/parser/read_ipv6_address.hpp: In instantiation of 'caf::detail::parser::read_ipv6_address(State&, Consumer&&)::<lambda()> [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::detail::parser::read_uri(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::uri_builder&]::<unnamed struct>&]':
[  247s] /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/detail/parser/read_ipv6_address.hpp:219:28:   required from 'struct caf::detail::parser::read_ipv6_address(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::detail::parser::read_uri(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::uri_builder&]::<unnamed struct>&]::<lambda()>'
[  247s] /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/detail/parser/read_ipv6_address.hpp:216:8:   required from 'void caf::detail::parser::read_ipv6_address(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::detail::parser::read_uri(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::uri_builder&]::<unnamed struct>&]'
[  247s] /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/detail/parser/read_uri.hpp:169:5:   required from 'void caf::detail::parser::read_uri(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::uri_builder&]'
[  247s] /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/detail/parser/read_ini.hpp:171:5:   required from 'void caf::detail::parser::read_ini_uri(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::detail::ini_category_consumer&]'
[  247s] /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/detail/parser/read_ini.hpp:192:5:   required from 'void caf::detail::parser::read_ini_value(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::detail::ini_category_consumer&]'
[  247s] /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/detail/parser/read_ini.hpp:243:5:   required from 'void caf::detail::parser::read_ini_section(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::detail::ini_category_consumer]'
[  247s] /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/detail/parser/read_ini.hpp:314:5:   required from 'void caf::detail::parser::read_ini(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::detail::ini_consumer&]'
[  247s] /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/src/actor_system_config.cpp:507:41:   required from here
[  247s] /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/detail/parser/read_ipv6_address.hpp:218:32: error: uninitialized variable 'bytes' in 'constexpr' function
[  247s]        ipv4_address::array_type bytes;
[  247s]                                 ^~~~~
[  247s] In file included from /opt/rh/devtoolset-7/root/usr/include/c++/7/tuple:39:0,
[  247s]                  from /opt/rh/devtoolset-7/root/usr/include/c++/7/bits/unique_ptr.h:37,
[  247s]                  from /opt/rh/devtoolset-7/root/usr/include/c++/7/memory:80,
[  247s]                  from /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/actor_system_config.hpp:23,
[  247s]                  from /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/src/actor_system_config.cpp:19:
[  247s] /opt/rh/devtoolset-7/root/usr/include/c++/7/array:94:12: note: 'using array_type = struct std::array<unsigned char, 4> {aka struct std::array<unsigned char, 4>}' has no user-provided default constructor
[  247s]      struct array
[  247s]             ^~~~~
[  247s] /opt/rh/devtoolset-7/root/usr/include/c++/7/array:110:56: note: and the implicitly-defined constructor does not initialize 'unsigned char std::array<unsigned char, 4>::_M_elems [4]'
[  247s]        typename _AT_Type::_Type                         _M_elems;
[  247s]                                                         ^~~~~~~~
[  248s] In file included from /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/optional.hpp:31:0,
[  248s]                  from /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/attachable.hpp:26,
[  248s]                  from /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/abstract_actor.hpp:32,
[  248s]                  from /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/actor_addr.hpp:27,
[  248s]                  from /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/actor_factory.hpp:24,
[  248s]                  from /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/actor_system_config.hpp:29,
[  248s]                  from /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/src/actor_system_config.cpp:19:
[  248s] /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/detail/scope_guard.hpp:61:18: error: 'caf::detail::scope_guard<Fun> caf::detail::make_scope_guard(Fun) [with Fun = caf::detail::parser::read_ipv6_address(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::detail::parser::read_uri(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::uri_builder&]::<unnamed struct>&]::<lambda()>]', declared using local type 'caf::detail::parser::read_ipv6_address(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::detail::parser::read_uri(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::uri_builder&]::<unnamed struct>&]::<lambda()>', is used but never defined [-fpermissive]
[  248s]  scope_guard<Fun> make_scope_guard(Fun f) {
[  248s]                   ^~~~~~~~~~~~~~~~
[  248s] In file included from /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/detail/parser/read_uri.hpp:24:0,
[  248s]                  from /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/detail/parser/read_ini.hpp:31,
[  248s]                  from /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/src/actor_system_config.cpp:32:
[  248s] /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/detail/parser/read_ipv6_address.hpp:169:37: error: 'caf::detail::parser::read_ipv6_address_piece_consumer<F> caf::detail::parser::make_read_ipv6_address_piece_consumer(F) [with F = caf::detail::parser::read_ipv6_address(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::detail::parser::read_uri(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::uri_builder&]::<unnamed struct>&]::<lambda(uint8_t*, size_t)>]', declared using local type 'caf::detail::parser::read_ipv6_address(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::detail::parser::read_uri(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::uri_builder&]::<unnamed struct>&]::<lambda(uint8_t*, size_t)>', is used but never defined [-fpermissive]
[  248s]  read_ipv6_address_piece_consumer<F> make_read_ipv6_address_piece_consumer(F f) {
[  248s]                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[  248s] /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/detail/parser/read_ipv6_address.hpp:169:37: error: 'caf::detail::parser::read_ipv6_address_piece_consumer<F> caf::detail::parser::make_read_ipv6_address_piece_consumer(F) [with F = caf::detail::parser::read_ipv6_address(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::detail::parser::read_uri(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::uri_builder&]::<unnamed struct>&]::<lambda(uint8_t*, size_t)>]', declared using local type 'caf::detail::parser::read_ipv6_address(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::detail::parser::read_uri(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::uri_builder&]::<unnamed struct>&]::<lambda(uint8_t*, size_t)>', is used but never defined [-fpermissive]
[  249s] In file included from /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/optional.hpp:31:0,
[  249s]                  from /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/attachable.hpp:26,
[  249s]                  from /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/abstract_actor.hpp:32,
[  249s]                  from /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/actor_addr.hpp:27,
[  249s]                  from /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/actor_factory.hpp:24,
[  249s]                  from /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/actor_system_config.hpp:29,
[  249s]                  from /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/src/actor_system_config.cpp:19:
[  249s] /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/detail/scope_guard.hpp:43:3: warning: 'caf::detail::scope_guard<Fun>::~scope_guard() noexcept [with Fun = caf::detail::parser::read_ipv6_address(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::detail::parser::read_uri(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::uri_builder&]::<unnamed struct>&]::<lambda()>]' used but never defined
[  249s]    ~scope_guard() {
[  249s]    ^
[  249s] In file included from /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/detail/parser/read_uri.hpp:24:0,
[  249s]                  from /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/detail/parser/read_ini.hpp:31,
[  249s]                  from /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/src/actor_system_config.cpp:32:
[  249s] /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/detail/parser/read_ipv6_address.hpp:60:6: warning: 'void caf::detail::parser::read_ipv6_h16(State&, Consumer&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::detail::parser::read_ipv6_address_piece_consumer<caf::detail::parser::read_ipv6_address(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::detail::parser::read_uri(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::uri_builder&]::<unnamed struct>&]::<lambda(uint8_t*, size_t)> >]' used but never defined
[  249s]  void read_ipv6_h16(State& ps, Consumer& consumer) {
[  249s]       ^~~~~~~~~~~~~
[  249s] /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/detail/parser/read_ipv6_address.hpp:86:6: warning: 'void caf::detail::parser::read_ipv6_h16_or_l32(State&, Consumer&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::detail::parser::read_ipv6_address_piece_consumer<caf::detail::parser::read_ipv6_address(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::detail::parser::read_uri(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::uri_builder&]::<unnamed struct>&]::<lambda(uint8_t*, size_t)> >]' used but never defined
[  249s]  void read_ipv6_h16_or_l32(State& ps, Consumer& consumer) {
[  249s]       ^~~~~~~~~~~~~~~~~~~~
[  249s] /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/detail/parser/read_ipv6_address.hpp:60:6: warning: 'void caf::detail::parser::read_ipv6_h16(State&, Consumer&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::detail::parser::read_ipv6_address_piece_consumer<caf::detail::parser::read_ipv6_address(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::detail::parser::read_uri(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::uri_builder&]::<unnamed struct>&]::<lambda(uint8_t*, size_t)> >]' used but never defined
[  249s]  void read_ipv6_h16(State& ps, Consumer& consumer) {
[  249s]       ^~~~~~~~~~~~~
[  249s] /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/detail/parser/read_ipv6_address.hpp:86:6: warning: 'void caf::detail::parser::read_ipv6_h16_or_l32(State&, Consumer&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::detail::parser::read_ipv6_address_piece_consumer<caf::detail::parser::read_ipv6_address(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::detail::parser::read_uri(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::uri_builder&]::<unnamed struct>&]::<lambda(uint8_t*, size_t)> >]' used but never defined
[  249s]  void read_ipv6_h16_or_l32(State& ps, Consumer& consumer) {
[  249s]       ^~~~~~~~~~~~~~~~~~~~
[  249s] /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/detail/parser/read_ipv6_address.hpp:169:37: warning: 'caf::detail::parser::read_ipv6_address_piece_consumer<F> caf::detail::parser::make_read_ipv6_address_piece_consumer(F) [with F = caf::detail::parser::read_ipv6_address(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::detail::parser::read_uri(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::uri_builder&]::<unnamed struct>&]::<lambda(uint8_t*, size_t)>]' used but never defined
[  249s]  read_ipv6_address_piece_consumer<F> make_read_ipv6_address_piece_consumer(F f) {
[  249s]                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[  249s] /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/detail/parser/read_ipv6_address.hpp:169:37: warning: 'caf::detail::parser::read_ipv6_address_piece_consumer<F> caf::detail::parser::make_read_ipv6_address_piece_consumer(F) [with F = caf::detail::parser::read_ipv6_address(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::detail::parser::read_uri(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::uri_builder&]::<unnamed struct>&]::<lambda(uint8_t*, size_t)>]' used but never defined
[  249s] In file included from /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/optional.hpp:31:0,
[  249s]                  from /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/attachable.hpp:26,
[  249s]                  from /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/abstract_actor.hpp:32,
[  249s]                  from /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/actor_addr.hpp:27,
[  249s]                  from /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/actor_factory.hpp:24,
[  249s]                  from /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/actor_system_config.hpp:29,
[  249s]                  from /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/src/actor_system_config.cpp:19:
[  249s] /home/abuild/rpmbuild/BUILD/zeek-nightly/aux/broker/caf/libcaf_core/caf/detail/scope_guard.hpp:61:18: warning: 'caf::detail::scope_guard<Fun> caf::detail::make_scope_guard(Fun) [with Fun = caf::detail::parser::read_ipv6_address(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::detail::parser::read_uri(State&, Consumer&&) [with State = caf::parser_state<caf::{anonymous}::ini_iter, caf::{anonymous}::ini_sentinel>; Consumer = caf::uri_builder&]::<unnamed struct>&]::<lambda()>]' used but never defined
[  249s]  scope_guard<Fun> make_scope_guard(Fun f) {
[  249s]                   ^~~~~~~~~~~~~~~~
[  249s] make[3]: *** [aux/broker/caf/libcaf_core/CMakeFiles/libcaf_core_static.dir/build.make:447: aux/broker/caf/libca[  236.435816] serial8250: too much work for irq4
[  249s] f_core/CMakeFiles/libcaf_core_static.dir/src/actor_system_config.cpp.o] Error 1
[  249s] make[3]: Leaving directory '/home/abuild/rpmbuild/BUILD/zeek-nightly/build'
[  249s] make[2]: *** [CMakeFiles/Makefile2:1320: aux/broker/caf/libcaf_core/CMakeFiles/libcaf_core_static.dir/all] Error 2
[  249s] make[2]: Leaving directory '/home/abuild/rpmbuild/BUILD/zeek-nightly/build'
[  249s] make[1]: *** [Makefile:150: all] Error 2
[  249s] make[1]: Leaving directory '/home/abuild/rpmbuild/BUILD/zeek-nightly/build'
[  249s] make: *** [Makefile:15: all] Error 2
[  249s] error: Bad exit status from /var/tmp/rpm-tmp.nEp9it (%build)
@0xxon

This comment has been minimized.

Copy link
Member Author

@0xxon 0xxon commented Mar 20, 2020

Ping @Neverlord

@0xxon

This comment has been minimized.

Copy link
Member Author

@0xxon 0xxon commented Mar 20, 2020

As a side-note - Clang 4.0.1 (which according to our documentation also should be ok) seems to fail the cxx17_works cmake test.

@Neverlord Neverlord self-assigned this Mar 20, 2020
@Neverlord

This comment has been minimized.

Copy link
Member

@Neverlord Neverlord commented Mar 21, 2020

I can't reproduce the compiler error on a fresh CentOS with devtoolkit7:

$ cat /etc/centos-release
CentOS Linux release 7.7.1908 (Core)

$ ./configure --build-type=debug
Build Directory : build
Source Directory: /root/zeek
-- The C compiler identification is GNU 7.3.1
-- The CXX compiler identification is GNU 7.3.1
-- Check for working C compiler: /opt/rh/devtoolset-7/root/usr/bin/cc
-- Check for working C compiler: /opt/rh/devtoolset-7/root/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /opt/rh/devtoolset-7/root/usr/bin/c++
-- Check for working CXX compiler: /opt/rh/devtoolset-7/root/usr/bin/c++ -- works

It says 7.3.1, though. The compiler error you've ran into makes no sense, btw. I double-checked the code and there's no constexpr function anywhere in the call chain. Likely just a bug in GCC 7.2.

Since this bug gets fixed when updating the system, I wouldn’t implement a workaround for an outdated compiler. Unless supporting GCC 7.2 is important for some other reason.

As far as I remember, we don’t have a fixed policy yet. The question is: is the goal to provide support for all major OS distributions, or do we narrow down on individual compiler versions? I think the former is the better option, as it allows to constantly phase out outdated compilers and not compromise on code quality as well as catching up with new C++ features and library additions.

@0xxon

This comment has been minimized.

Copy link
Member Author

@0xxon 0xxon commented Mar 23, 2020

Well, the OpenSUSE build service sadly only has an old version of devtoolkit installed for CentOS 7 - and it is outside of my powers to update this.

This basically means that we are not having packages for CentOS 7. Which can be OK as a decision.

@0xxon

This comment has been minimized.

Copy link
Member Author

@0xxon 0xxon commented Mar 24, 2020

To add to this - how complicated do you think it would be to fix this. If it is not too hard - and is only this one - it would be kind of neat to have this fixed (...and get CentOS builds as a reward).

@Neverlord

This comment has been minimized.

Copy link
Member

@Neverlord Neverlord commented Mar 25, 2020

how complicated do you think it would be to fix this.

Hard to tell. I'll see if I can get my hands on a GCC 7.2 to reproduce this and poke around to see if there's a reasonable fix.

@Neverlord

This comment has been minimized.

Copy link
Member

@Neverlord Neverlord commented Mar 26, 2020

@0xxon I could get a CentOS with 7.2 running and it worked for me locally. How is the setup to get the open build service running? Is it only building the master branch of Zeek?

@0xxon

This comment has been minimized.

Copy link
Member Author

@0xxon 0xxon commented Mar 26, 2020

Oh, great, thanks a lot :)

Let me just test it. There are different versions for the different packages of Zeek - one of them just builds master, yes.

@0xxon

This comment has been minimized.

Copy link
Member Author

@0xxon 0xxon commented Mar 26, 2020

(I am, by the way, trying to get a newer compiler for CentOS installed on OBS - let's see if that works out).

@0xxon

This comment has been minimized.

Copy link
Member Author

@0xxon 0xxon commented Mar 31, 2020

Just to circle around to this - yes, this does work.

I will still try to get OBS to make newer compilers available and will report back if that happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants
You can’t perform that action at this time.