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

[libshortfin] Build fixes for gcc 12.3.0 and 13.2.0. #221

Merged
merged 3 commits into from
Sep 26, 2024

Conversation

ScottTodd
Copy link
Member

Fixes #215

Comment on lines 191 to 194
protected:
Queue(Options options);

private:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we want to keep this constructor private, we could also rework the anonymous namespace used for QueueCreator, which is already tagged friend struct QueueCreator.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found a different fix: https://stackoverflow.com/a/63398702

Apparently friend struct QueueCreator was an "elaborated type specifier", and that is not needed here since the name is not ambiguous. gcc is happier with just friend QueueCreator.

Copy link
Collaborator

@marbre marbre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally, thanks for fixing!

@ScottTodd ScottTodd enabled auto-merge (squash) September 26, 2024 17:46
@ScottTodd ScottTodd merged commit c17df6a into nod-ai:main Sep 26, 2024
7 of 8 checks passed
@ScottTodd ScottTodd deleted the libshortfin-gcc branch September 26, 2024 17:48
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 this pull request may close these issues.

Issue building libshortfin with GCC
2 participants