Hello.

This is on 14.0 through Poudriere (2024Q1 tree).

Build fails ending in:
/usr/local/libexec/ccache/c++  
-I/wrkdirs/usr/ports/devel/libcuckoo/work/libcuckoo-0.3.1/tests/Catch/single_include
 -I/wrkdirs/usr/ports/devel/libcuckoo/work/libcuckoo-0.3.1 -O2 -pipe 
-fstack-protector-strong -fno-strict-aliasing -O2 -pipe 
-fstack-protector-strong -fno-strict-aliasing   -DNDEBUG -pthread -MD -MT 
tests/unit-tests/CMakeFiles/unit_tests.dir/test_runner.cc.o -MF 
tests/unit-tests/CMakeFiles/unit_tests.dir/test_runner.cc.o.d -o 
tests/unit-tests/CMakeFiles/unit_tests.dir/test_runner.cc.o -c 
/wrkdirs/usr/ports/devel/libcuckoo/work/libcuckoo-0.3.1/tests/unit-tests/test_runner.cc
In file included from 
/wrkdirs/usr/ports/devel/libcuckoo/work/libcuckoo-0.3.1/tests/unit-tests/test_runner.cc:3:
In file included from 
/wrkdirs/usr/ports/devel/libcuckoo/work/libcuckoo-0.3.1/tests/Catch/single_include/catch.hpp:74:
In file included from /usr/include/c++/v1/sstream:273:
In file included from /usr/include/c++/v1/istream:170:
In file included from /usr/include/c++/v1/ostream:172:
In file included from /usr/include/c++/v1/__system_error/error_code.h:18:
In file included from /usr/include/c++/v1/__system_error/error_category.h:15:
In file included from /usr/include/c++/v1/string:622:
In file included from /usr/include/c++/v1/string_view:1059:
In file included from /usr/include/c++/v1/algorithm:1893:
In file included from /usr/include/c++/v1/__algorithm/ranges_sample.h:13:
In file included from /usr/include/c++/v1/__algorithm/sample.h:18:
/usr/include/c++/v1/__random/uniform_int_distribution.h:237:19: error: static assertion failed due to requirement '__libcpp_random_is_valid_urng<Catch::RandomNumberGenerator, void>::value': 237 | static_assert(__libcpp_random_is_valid_urng<_URNG>::value, "");
      |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/v1/__algorithm/shuffle.h:154:35: note: in instantiation of function 
template specialization 
'std::uniform_int_distribution<long>::operator()<Catch::RandomNumberGenerator>' 
requested here
  154 |             difference_type __i = __uid(__g, _Pp(0, __d));
      |                                   ^
/usr/include/c++/v1/__algorithm/shuffle.h:166:14: note: in instantiation of function template 
specialization 'std::__shuffle<std::_ClassicAlgPolicy, std::__wrap_iter<Catch::TestCase *>, 
std::__wrap_iter<Catch::TestCase *>, Catch::RandomNumberGenerator &>' requested here
  166 |   (void)std::__shuffle<_ClassicAlgPolicy>(
      |              ^
/wrkdirs/usr/ports/devel/libcuckoo/work/libcuckoo-0.3.1/tests/Catch/single_include/catch.hpp:6481:18:
 note: in instantiation of function template specialization 
'std::shuffle<std::__wrap_iter<Catch::TestCase *>, Catch::RandomNumberGenerator 
&>' requested here
 6481 |             std::shuffle( vector.begin(), vector.end(), rng );
      |                  ^
/wrkdirs/usr/ports/devel/libcuckoo/work/libcuckoo-0.3.1/tests/Catch/single_include/catch.hpp:6499:44:
 note: in instantiation of function template specialization 
'Catch::RandomNumberGenerator::shuffle<std::vector<Catch::TestCase>>' requested 
here
 6499 |                     RandomNumberGenerator::shuffle( sorted );
      |                                            ^
1 error generated.


Disabling TEST option solves, however.
So this is just to let you know; I'm happy without TEST.

 bye & Thanks
        av.

Reply via email to