[ 12%] Building CXX object aux/broker/tests/CMakeFiles/broker-test.dir/cpp/backend.cc.o
[ 12%] Building CXX object aux/broker/tests/CMakeFiles/broker-test.dir/cpp/core.cc.o
In file included from /usr/local/src/zeek-3.1.4/aux/broker/tests/cpp/core.cc:7:
In file included from /usr/local/src/zeek-3.1.4/aux/broker/3rdparty/caf/libcaf_test/caf/test/io_dsl.hpp:26:
/usr/local/src/zeek-3.1.4/aux/broker/3rdparty/caf/libcaf_test/caf/test/dsl.hpp:454:11: error: no viable overloaded ‘=’
dest_ = whom.ptr();
/usr/local/src/zeek-3.1.4/aux/broker/3rdparty/caf/libcaf_core/caf/intrusive_ptr.hpp:120:18: note: candidate function not viable: no known conversion from 'caf::blocking_actor *' to
'caf::intrusive_ptr<caf::actor_control_block>::pointer' (aka 'caf::actor_control_block *') for 1st argument
intrusive_ptr& operator=(pointer ptr) noexcept {
^
/usr/local/src/zeek-3.1.4/aux/broker/3rdparty/caf/libcaf_core/caf/intrusive_ptr.hpp:125:18: note: candidate function not viable: no known conversion from 'caf::blocking_actor *' to
'caf::intrusive_ptr<caf::actor_control_block>' for 1st argument
intrusive_ptr& operator=(intrusive_ptr other) noexcept {
^
1 error generated.
*** Error code 1
Stop.
make[3]: stopped in /usr/local/src/zeek-3.1.4/build
*** Error code 1
Stop.
make[2]: stopped in /usr/local/src/zeek-3.1.4/build
*** Error code 1
Stop.
make[1]: stopped in /usr/local/src/zeek-3.1.4/build
*** Error code 1
Stop.
make: stopped in /usr/local/src/zeek-3.1.4
With Zeek 3.1.3, this problem doesn’t exist.
Zeek comes with Broker v1.3.3, which bundles CAF 0.17.4. This release has a known bug with Clang 10 [1], which was fixed in CAF 0.17.5.
This seems to only affect the unit tests. So you could try to disable Broker’s unit tests (via setting BROKER_DISABLE_TESTS in CMake or passing --disable-broker-tests to Zeek’s configure script). If it still fails, you could get a CAF 0.17.5 and build Zeek against that (by passing --with-caf=PATH to the configure script) as last resort.
Sorry for this late response ... Dominik, it is working.
Many thanks.
Thanks for the extra context!
Zeek comes with Broker v1.3.3, which bundles CAF 0.17.4. This release has a known bug with Clang 10 [1], which was fixed in CAF 0.17.5.
This seems to only affect the unit tests. So you could try to disable Broker’s unit tests (via setting BROKER_DISABLE_TESTS in CMake or passing --disable-broker-tests to Zeek’s configure script). If it still fails, you could get a CAF 0.17.5 and build Zeek against that (by passing --with-caf=PATH to the configure script) as last resort.