You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
binaryen has started to require CMAKE_OSX_DEPLOYMENT_TARGET of 10.14 #4299
When we started using std::variant we inadvertently started requiring a 10.14 macOS deployment target.
This went unnoticed on the emscripten-releases builder because there we use out own version of libc++.
However for other users, such as those who want to build from source using emsdk, this is a new requirement and emsdk
currently pins CMAKE_OSX_DEPLOYMENT_TARGET to 10.11:
However for other users, such as those who want to install using emsdk, this is a new requirement and emsdk
currently pins CMAKE_OSX_DEPLOYMENT_TARGET to 10.11:
I think this should be "those who want to build using emsdk". Those who just install are using the Chromium builds and are unaffected.
However for other users, such as those who want to install using emsdk, this is a new requirement and emsdk
currently pins CMAKE_OSX_DEPLOYMENT_TARGET to 10.11:
I think this should be "those who want to build using emsdk". Those who just install are using the Chromium builds and are unaffected.
If we land #4300 then part of the fix for this issue will be to lower CMAKE_OSX_DEPLOYMENT_TARGET back to 10.11 (which is what emsdk currently needs/wants).
Thanks for the update, and sorry I haven't gotten to this. I don't think it's possible to run the bots on such an old version of MacOS, but I agree that we shouldn't update deployment targets without agreement (and one thing that went wrong here was that I didn't realize the emsdk build couldn't match the waterfall build).
Now that we don't need to support 10.11.. can we revert back to using system libc++ (like the emsdk does). Seems like it would make the waterfall build simpler and easier to replicate if we didn't need to build libc++ first!
i.e. not building our own libc++ would actually bring the two builders back into parity which would address @juj's concern (the emscripten-releases waterfall would not be able to feature creep).
We could. Right now emscripten-releases actually targets 10.12, which goes back to the first time the build was checked in, so I don't really know exactly why we had that version in particular. If we want to require 10.14, according to https://gs.statcounter.com/macos-version-market-share/desktop/worldwide that would cover just about 90% of all installs. So if you figure developers are a bit more likely to be up-to-date than the average user, that probably gets about everyone?
I don't think it's possible to run the bots on such an old version of MacOS
There is no need to install an old macOS to target old OS versions. That is what CMAKE_OSX_DEPLOYMENT_TARGET is for. For example, we also use modern macOS 11 or 12 to build, but pass CMAKE_OSX_DEPLOYMENT_TARGET=10.14 to require that the build is targeting that version as minimum.
i.e. not building our own libc++ would actually bring the two builders back into parity
Sorry, I meant I don't know of a good way to test on the bots (i.e. make a test that fails when we build with the wrong deployment target).
But since we already explicitly specify the deployment target in the build script, and as of yesterday the Chromium emscripten-releases build is in sync with emsdk (and there's a comment to remind us that we should keep them in sync), we are at least in the position where a change to that would be caught by review. So I think we are in pretty good shape now.
Activity
2.0.33
sbc100 commentedon Nov 1, 2021
One option is to temporarily revert the use of std::variant in binaryen? @tlively would that be reasonable?
Set CMAKE_OSX_DEPLOYMENT_TARGET
dschuff commentedon Nov 1, 2021
I think this should be "those who want to build using emsdk". Those who just install are using the Chromium builds and are unaffected.
sbc100 commentedon Nov 1, 2021
Thanks, clarified.
kripken commentedon Nov 1, 2021
A variation (edit: no pun intended) on that could be to replace the current
std::variantwith a userspace replacement with similar syntax.dschuff commentedon Nov 1, 2021
We also might be able to work around it: https://stackoverflow.com/questions/52521388/stdvariantget-does-not-compile-with-apple-llvm-10-0
sbc100 commentedon Nov 1, 2021
Nice! That looks like it could work.
2.0.33
2.0.33 (#922)
tlively commentedon Nov 1, 2021
Yikes! It looks like
std::visitis also affected: https://stackoverflow.com/questions/52310835/xcode-10-call-to-unavailable-function-stdvisit/53868971.Using
std::get_ifexclusively should work ok technically, but do we have a way to automatically enforce that?sbc100 commentedon Nov 1, 2021
This should enforce it: #4300
sbc100 commentedon Nov 1, 2021
Once we set it to something lower..
sbc100 commentedon Nov 1, 2021
If we land #4300 then part of the fix for this issue will be to lower CMAKE_OSX_DEPLOYMENT_TARGET back to 10.11 (which is what emsdk currently needs/wants).
Set CMAKE_OSX_DEPLOYMENT_TARGET (#4300)
15 remaining items
dschuff commentedon Mar 22, 2022
Thanks for the update, and sorry I haven't gotten to this. I don't think it's possible to run the bots on such an old version of MacOS, but I agree that we shouldn't update deployment targets without agreement (and one thing that went wrong here was that I didn't realize the emsdk build couldn't match the waterfall build).
sbc100 commentedon Mar 22, 2022
Now that we don't need to support 10.11.. can we revert back to using system libc++ (like the emsdk does). Seems like it would make the waterfall build simpler and easier to replicate if we didn't need to build libc++ first!
sbc100 commentedon Mar 22, 2022
i.e. not building our own libc++ would actually bring the two builders back into parity which would address @juj's concern (the emscripten-releases waterfall would not be able to feature creep).
dschuff commentedon Mar 22, 2022
We could. Right now emscripten-releases actually targets 10.12, which goes back to the first time the build was checked in, so I don't really know exactly why we had that version in particular. If we want to require 10.14, according to https://gs.statcounter.com/macos-version-market-share/desktop/worldwide that would cover just about 90% of all installs. So if you figure developers are a bit more likely to be up-to-date than the average user, that probably gets about everyone?
sbc100 commentedon Mar 22, 2022
Lets go for 10.14 to stay in sync with unity and emsdk and binaryen itself (when building without custom libc++)
juj commentedon Mar 22, 2022
There is no need to install an old macOS to target old OS versions. That is what
CMAKE_OSX_DEPLOYMENT_TARGETis for. For example, we also use modern macOS 11 or 12 to build, but passCMAKE_OSX_DEPLOYMENT_TARGET=10.14to require that the build is targeting that version as minimum.That would be great!
Fix macOS build (#996)
dschuff commentedon Mar 24, 2022
Sorry, I meant I don't know of a good way to test on the bots (i.e. make a test that fails when we build with the wrong deployment target).
But since we already explicitly specify the deployment target in the build script, and as of yesterday the Chromium emscripten-releases build is in sync with emsdk (and there's a comment to remind us that we should keep them in sync), we are at least in the position where a change to that would be caught by review. So I think we are in pretty good shape now.
2.0.33 (#922)
Fix macOS build (#996)
Re-enable test_binaryen_from_source on mac. NFC
Re-enable test_binaryen_from_source on mac. NFC (#1659)
2.0.33 (emscripten-core#922)
Fix macOS build (emscripten-core#996)