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

tests fail to compile: error: no viable overloaded '=' #10468

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

tests fail to compile: error: no viable overloaded '=' #10468

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

Comments

@yurivict
Copy link

In file included from /usr/ports/misc/xgboost/work/xgboost-2.1.0/tests/cpp/collective/test_allgather.cc:20:
/usr/ports/misc/xgboost/work/xgboost-2.1.0/tests/cpp/collective/test_worker.h:108:21: error: no viable overloaded '='
  108 |   config["timeout"] = timeout.count();
      |   ~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~
/usr/ports/misc/xgboost/work/xgboost-2.1.0/include/xgboost/json.h:403:9: note: candidate function not viable: no known conversion from 'rep' (aka 'long long') to 'JsonNumber' for 1st argument
  403 |   Json& operator=(JsonNumber number) {
      |         ^         ~~~~~~~~~~~~~~~~~
/usr/ports/misc/xgboost/work/xgboost-2.1.0/include/xgboost/json.h:409:9: note: candidate function not viable: no known conversion from 'rep' (aka 'long long') to 'JsonInteger' for 1st argument
  409 |   Json& operator=(JsonInteger integer) {
      |         ^         ~~~~~~~~~~~~~~~~~~~
/usr/ports/misc/xgboost/work/xgboost-2.1.0/include/xgboost/json.h:415:9: note: candidate function not viable: no known conversion from 'rep' (aka 'long long') to 'JsonArray' for 1st argument
  415 |   Json& operator=(JsonArray&& array) {
      |         ^         ~~~~~~~~~~~~~~~~~
/usr/ports/misc/xgboost/work/xgboost-2.1.0/include/xgboost/json.h:424:9: note: candidate template ignored: could not match 'JsonTypedArray<T, kind>' against 'rep' (aka 'long long')
  424 |   Json& operator=(JsonTypedArray<T, kind>&& array) {
      |         ^
@trivialfis
Copy link
Member

Hi, are you running on a 64bit machine or a 32bit machine?

@yurivict
Copy link
Author

64bit.

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

Successfully merging a pull request may close this issue.

2 participants