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

2.1.0: error: no matching function for call to 'min' #10466

Closed
yurivict opened this issue Jun 21, 2024 · 0 comments · Fixed by #10480
Closed

2.1.0: error: no matching function for call to 'min' #10466

yurivict opened this issue Jun 21, 2024 · 0 comments · Fixed by #10480

Comments

@yurivict
Copy link

2.1.0 fails:

/usr/ports/misc/xgboost/work/xgboost-2.1.0/src/c_api/coll_c_api.cc:78:67: error: no matching function for call to 'min'
   78 |   std::chrono::seconds wait_for{collective::HasTimeout(timeout) ? std::min(kDft, timeout.count())
      |                                                                   ^~~~~~~~
/usr/include/c++/v1/__algorithm/min.h:35:1: note: candidate template ignored: deduced conflicting types for parameter '_Tp' ('std::int64_t' (aka 'long') vs. 'rep' (aka 'long long'))
   35 | min(_LIBCPP_LIFETIMEBOUND const _Tp& __a, _LIBCPP_LIFETIMEBOUND const _Tp& __b) {
      | ^
/usr/include/c++/v1/__algorithm/min.h:43:1: note: candidate template ignored: could not match 'initializer_list<_Tp>' against 'std::int64_t' (aka 'long')
   43 | min(initializer_list<_Tp> __t, _Compare __comp) {
      | ^

Clang-18
FreeBSD 14.1

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

Successfully merging a pull request may close this issue.

2 participants