Conversation
|
Confirmed. This fixes compilation under GCC11. Please merge! |
|
I also had this issue, and this solved it. |
|
I have encountered this very same problem and can only second this. This fixes compilation problem for GCC 11.1.0. |
Contributor
|
@xmrig plz merge thx |
|
Successfully compiled. Please merge. |
This was referenced Jan 16, 2022
archlinux-github
pushed a commit
to archlinux/aur
that referenced
this pull request
Jul 28, 2022
This has been submitted upstream, see xmrig/xmrig-cuda#120.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On ArchLinux with CUDA 11.4 and GCC11, one gets the following error message when compile xmrig-cuda:
Clearly
size_tis not defined, and including<cstddef>solves this. I know that with GCC4/5 that cstddef was pulled out of a lot of headers, making it necessary to explicitly include it. Maybe with GCC11 this also happened; the GNU release notes don't list this though.