Skip to content

SST compile fix on MacOS#338

Merged
FinnWilkinson merged 4 commits intodevfrom
macos-sst-build-fix
Nov 2, 2023
Merged

SST compile fix on MacOS#338
FinnWilkinson merged 4 commits intodevfrom
macos-sst-build-fix

Conversation

@FinnWilkinson
Copy link
Copy Markdown
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
Comment thread CMakeLists.txt Outdated
tom91136
tom91136 previously approved these changes Oct 30, 2023
Copy link
Copy Markdown
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 ABenC377 and JosephMoore25 and removed request for rahahahat October 30, 2023 16:23
@FinnWilkinson FinnWilkinson mentioned this pull request Oct 30, 2023
@JosephMoore25
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

@dANW34V3R @JosephMoore25 TODO comment added. Please check

JosephMoore25
JosephMoore25 previously approved these changes Oct 31, 2023
Comment thread CMakeLists.txt Outdated
@JosephMoore25 JosephMoore25 self-requested a review November 1, 2023 11:50
@FinnWilkinson FinnWilkinson merged commit f0b9ede into dev Nov 2, 2023
@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