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

SST compile fix on MacOS #338

Merged
merged 4 commits into from
Nov 2, 2023
Merged

SST compile fix on MacOS #338

merged 4 commits into from
Nov 2, 2023

Conversation

FinnWilkinson
Copy link
Contributor

On more recent versions of MacOS, and more specifically with more recent versions of Apple Clang, SST is unable to be compiled due to unary_function and binary_function types being depricated (since c++11) and now removed from Apple Clang v15. There is a compile flag which re-enabled these types and this has been added to CMakeLists.txt if the user is on MacOS.

These functions are only used in SST, and in more recent versions (i.e. SST v13) they have been replaced - so this issue may only be short term if SimEng's SST support is updated to version 13+

@FinnWilkinson FinnWilkinson added the build Issues with the buid process and its dependencies label Oct 26, 2023
@FinnWilkinson FinnWilkinson self-assigned this Oct 26, 2023
CMakeLists.txt Outdated Show resolved Hide resolved
tom91136
tom91136 previously approved these changes Oct 30, 2023
Copy link
Contributor

@dANW34V3R dANW34V3R left a comment

Choose a reason for hiding this comment

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

Is it worth adding a TODO to remove it later and some explanation of the how this has been updated for newer versions of SST that we don't support yet?

@FinnWilkinson FinnWilkinson requested review from JosephMoore25 and ABenC377 and removed request for rahahahat October 30, 2023 16:23
@FinnWilkinson FinnWilkinson mentioned this pull request Oct 30, 2023
@JosephMoore25
Copy link
Contributor

I agree with Dan. Looks like this is a temporary fix which can hopefully be removed once SST has been updated. Beyond that, looks good

ABenC377
ABenC377 previously approved these changes Oct 31, 2023
@FinnWilkinson FinnWilkinson dismissed stale reviews from ABenC377 and tom91136 via 306bb57 October 31, 2023 15:42
@FinnWilkinson
Copy link
Contributor Author

@dANW34V3R @JosephMoore25 TODO comment added. Please check

JosephMoore25
JosephMoore25 previously approved these changes Oct 31, 2023
CMakeLists.txt Outdated Show resolved Hide resolved
@JosephMoore25 JosephMoore25 self-requested a review November 1, 2023 11:50
@FinnWilkinson FinnWilkinson merged commit f0b9ede into dev Nov 2, 2023
1 check passed
@FinnWilkinson FinnWilkinson deleted the macos-sst-build-fix branch November 2, 2023 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues with the buid process and its dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants