Skip to content

zmq: build failure on gcc 13 #20972

Description

@oskarirauta
In file included from /usr/src/openwrt/staging_dir/toolchain-x86_64_gcc-13.1.0_musl/x86_64-openwrt-linux-musl/include/c++/13.1.0/ext/alloc_traits.h:34,
                 from /usr/src/openwrt/staging_dir/toolchain-x86_64_gcc-13.1.0_musl/x86_64-openwrt-linux-musl/include/c++/13.1.0/bits/stl_tree.h:67,
                 from /usr/src/openwrt/staging_dir/toolchain-x86_64_gcc-13.1.0_musl/x86_64-openwrt-linux-musl/include/c++/13.1.0/map:62,
                 from /usr/src/openwrt/build_dir/target-x86_64_musl/zeromq-nc/zeromq-4.3.4/src/metadata.hpp:33,
                 from /usr/src/openwrt/build_dir/target-x86_64_musl/zeromq-nc/zeromq-4.3.4/src/msg.hpp:40,
                 from /usr/src/openwrt/build_dir/target-x86_64_musl/zeromq-nc/zeromq-4.3.4/src/curve_client.cpp:35:
/usr/src/openwrt/staging_dir/toolchain-x86_64_gcc-13.1.0_musl/x86_64-openwrt-linux-musl/include/c++/13.1.0/bits/alloc_traits.h: In instantiation of 'struct std::__allocator_traits_base::__rebind<zmq::secure_allocator_t<unsigned char>, unsigned char, void>':
/usr/src/openwrt/staging_dir/toolchain-x86_64_gcc-13.1.0_musl/x86_64-openwrt-linux-musl/include/c++/13.1.0/bits/alloc_traits.h:94:11:   required by substitution of 'template<class _Alloc, class _Up> using std::__alloc_rebind = typename std::__allocator_traits_base::__rebind<_Alloc, _Up>::type [with _Alloc = zmq::secure_allocator_t<unsigned char>; _Up = unsigned char]'
/usr/src/openwrt/staging_dir/toolchain-x86_64_gcc-13.1.0_musl/x86_64-openwrt-linux-musl/include/c++/13.1.0/bits/alloc_traits.h:228:8:   required by substitution of 'template<class _Alloc> template<class _Tp> using std::allocator_traits< <template-parameter-1-1> >::rebind_alloc = std::__alloc_rebind<_Alloc, _Tp> [with _Tp = unsigned char; _Alloc = zmq::secure_allocator_t<unsigned char>]'
/usr/src/openwrt/staging_dir/toolchain-x86_64_gcc-13.1.0_musl/x86_64-openwrt-linux-musl/include/c++/13.1.0/ext/alloc_traits.h:126:65:   required from 'struct __gnu_cxx::__alloc_traits<zmq::secure_allocator_t<unsigned char>, unsigned char>::rebind<unsigned char>'
/usr/src/openwrt/staging_dir/toolchain-x86_64_gcc-13.1.0_musl/x86_64-openwrt-linux-musl/include/c++/13.1.0/bits/stl_vector.h:88:21:   required from 'struct std::_Vector_base<unsigned char, zmq::secure_allocator_t<unsigned char> >'
/usr/src/openwrt/staging_dir/toolchain-x86_64_gcc-13.1.0_musl/x86_64-openwrt-linux-musl/include/c++/13.1.0/bits/stl_vector.h:423:11:   required from 'class std::vector<unsigned char, zmq::secure_allocator_t<unsigned char> >'
/usr/src/openwrt/build_dir/target-x86_64_musl/zeromq-nc/zeromq-4.3.4/src/curve_client_tools.hpp:64:76:   required from here
/usr/src/openwrt/staging_dir/toolchain-x86_64_gcc-13.1.0_musl/x86_64-openwrt-linux-musl/include/c++/13.1.0/bits/alloc_traits.h:70:31: error: static assertion failed: allocator_traits<A>::rebind_alloc<A::value_type> must be A
   70 |                         _Tp>::value,
      |                               ^~~~~
/usr/src/openwrt/staging_dir/toolchain-x86_64_gcc-13.1.0_musl/x86_64-openwrt-linux-musl/include/c++/13.1.0/bits/alloc_traits.h:70:31: note: 'std::integral_constant<bool, false>::value' evaluates to false
cc1plus: note: unrecognized command-line option '-Wno-tautological-constant-compare' may have been intended to silence earlier diagnostics
ninja: build stopped: subcommand failed.
make[3]: *** [Makefile:128: /usr/src/openwrt/build_dir/target-x86_64_musl/zeromq-nc/zeromq-4.3.4/.built] Error 1
make[3]: Leaving directory '/usr/src/openwrt/feeds/packages/libs/zmq'
time: package/feeds/packages/zmq/nc/compile#5.42#0.74#0.00
    ERROR: package/feeds/packages/zmq failed to build (build variant: nc).
make[2]: *** [package/Makefile:116: package/feeds/packages/zmq/compile] Error 1
make[2]: Leaving directory '/usr/src/openwrt'
make[1]: *** [package/Makefile:110: /usr/src/openwrt/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/usr/src/openwrt'
make: *** [/usr/src/openwrt/include/toplevel.mk:231: world] Error 2
dev@media:/usr/src/openwrt# make -j1 V=s
^Cmake[2]: *** [include/scan.mk:102: /usr/src/openwrt/tmp/info/.files-packageinfo.stamp] Interrupt
make[1]: *** [/usr/src/openwrt/include/toplevel.mk:80: prepare-tmpinfo] Interrupt
make: *** [/usr/src/openwrt/include/toplevel.mk:229: world] Interrupt```

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions