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
It looks like you are trying to mix emscripten version 3.1.64-git with binaryen from 3.1.62. Because that is new option that was added to binaryen recently mixing versions like that won't work.
It looks like you are trying to mix emscripten version 3.1.64-git with binaryen from 3.1.62. Because that is new option that was added to binaryen recently mixing versions like that won't work.
No, 3.1.62 is the version I reverted to and which works for me. I was using version 3.1.63. And, indeed, which emcc returns /opt/homebrew/bin/emcc which redirects to ../Cellar/emscripten/3.1.63/bin/emcc. So, no idea why emcc -v mentions 3.1.64-git, but as far as I can tell everything is from version 3.1.63. Also, note that InstalledDir mentions /opt/homebrew/Cellar/emscripten/3.1.63/libexec/llvm/bin.
Ah, I see what happened here. I tagged slightly the wrong version in the emscripten repo for 3.1.63.
I accidentally tagged #22228 which updated the changelog instead of #22200 which was actually used to make the official 3.1.63 release.
This means folks downstream like homebrew got slightly the wrong emscripten version. Normally this would not matter but in this case the intervening revisions started using a brand new binaryen flag. Bag luck I guess.. but good that we caught it.
@kripken what do you think we should do here? I could force push the tag to update it? But I'm not sure how that might effect.
Hmm, updating the tag now might be too late for homebrew, if they've already built from the old tag (unless they want to rebuild, but I have no idea if they do such things, or would be interested to even if they do).
But also updating the tag seems low-risk, and might fix other people, so I'd support updating the tag. You can just delete it remotely and then push it again (no need for a force-push, which at least feels riskier to me as I never remember what is being pushed by the git command - sometimes it pushes branches too).
If we agree to do that then let's file a homebrew issue after we update the tag.
Side issue, when we do that, it might make sense to suggest some kind of testing on the homebrew side (testing an optimized build could have caught this).
Hi @sbc100, may I ask when we can expect 3.1.64 to be released so that Homebrew can also release a new update? Right now, it's breaking our continuous integration (which installs Emscripten from Homebrew) and, apparently, I am not the only one in this situation.
We can try to do one next week, but @agarny can you use the previous version until then?
I am using 3.1.62 on my development machine (not thanks to Homebrew since they don't provide an easy way to switch to an older version of a formula), but not in my CI. I guess I could use the same "hack" on GitHub Actions where my CI is done, but that would be messy. Anyway, I am happy to wait until next week. Thanks in advance...
There was a problem with the 3.1.63 release of emscripten which was incorrectly tagged as 7b466b4. This mean that distributions other than emsdk itself included the wrong version of emscripten, which depended on a more recent version of binaryen.
The fix is to update to 3.1.64 which doesn't have this problem.
There was a problem with the 3.1.63 release of emscripten which was incorrectly tagged as 7b466b4. This mean that distributions other than emsdk itself included the wrong version of emscripten, which depended on a more recent version of binaryen.
The fix is to update to 3.1.64 which doesn't have this problem.
I was confused because emcc -v does output 3.1.64 as the installed version, and because the workaround mentioned here did not fully work for me. I guess this particular 3.1.64 build is broken then?
Emscripten is not generally supported/tested with stable versions of llvm or binaryen. i.e. you need to use a custom/pinned version of binaryen, not version 118 itself.
Activity
agarny commentedon Jul 16, 2024
FWIW, I reverted to emscripten 3.1.62 and, sure enough, it's all working fine for me once again.
sbc100 commentedon Jul 16, 2024
It looks like you are trying to mix emscripten version 3.1.64-git with binaryen from 3.1.62. Because that is new option that was added to binaryen recently mixing versions like that won't work.
agarny commentedon Jul 16, 2024
No, 3.1.62 is the version I reverted to and which works for me. I was using version 3.1.63. And, indeed,
which emccreturns/opt/homebrew/bin/emccwhich redirects to../Cellar/emscripten/3.1.63/bin/emcc. So, no idea whyemcc -vmentions 3.1.64-git, but as far as I can tell everything is from version 3.1.63. Also, note thatInstalledDirmentions/opt/homebrew/Cellar/emscripten/3.1.63/libexec/llvm/bin.sbc100 commentedon Jul 16, 2024
Ah, I see what happened here. I tagged slightly the wrong version in the emscripten repo for 3.1.63.
I accidentally tagged #22228 which updated the changelog instead of #22200 which was actually used to make the official 3.1.63 release.
This means folks downstream like homebrew got slightly the wrong emscripten version. Normally this would not matter but in this case the intervening revisions started using a brand new binaryen flag. Bag luck I guess.. but good that we caught it.
@kripken what do you think we should do here? I could force push the tag to update it? But I'm not sure how that might effect.
kripken commentedon Jul 16, 2024
Hmm, updating the tag now might be too late for homebrew, if they've already built from the old tag (unless they want to rebuild, but I have no idea if they do such things, or would be interested to even if they do).
But also updating the tag seems low-risk, and might fix other people, so I'd support updating the tag. You can just delete it remotely and then push it again (no need for a force-push, which at least feels riskier to me as I never remember what is being pushed by the git command - sometimes it pushes branches too).
If we agree to do that then let's file a homebrew issue after we update the tag.
Side issue, when we do that, it might make sense to suggest some kind of testing on the homebrew side (testing an optimized build could have caught this).
emscripten 3.1.63
sbc100 commentedon Jul 16, 2024
I added a comment to the downstream release commit: Homebrew/homebrew-core@ee9351f
agarny commentedon Jul 18, 2024
Hi @sbc100, may I ask when we can expect 3.1.64 to be released so that Homebrew can also release a new update? Right now, it's breaking our continuous integration (which installs Emscripten from Homebrew) and, apparently, I am not the only one in this situation.
sbc100 commentedon Jul 19, 2024
I'm on vacation for the next 10 days I'm afraid. I think @kripken or @dschuff should be able to make a release before then.
kripken commentedon Jul 19, 2024
We can try to do one next week, but @agarny can you use the previous version until then?
agarny commentedon Jul 19, 2024
I am using 3.1.62 on my development machine (not thanks to Homebrew since they don't provide an easy way to switch to an older version of a formula), but not in my CI. I guess I could use the same "hack" on GitHub Actions where my CI is done, but that would be messy. Anyway, I am happy to wait until next week. Thanks in advance...
csjh commentedon Jul 20, 2024
For anyone else looking for a workaround, commenting out line 436 in
<emscripten>/tools/link.pyseems to workJohnSmith-132 commentedon Jul 20, 2024
Beast. Thanks, that immediately got the build up and running.
kripken commentedon Jul 22, 2024
@agarny I released 3.1.64 now which should resolve this. (At least once homebrew updates to that.)
agarny commentedon Jul 24, 2024
Thanks a lot @kripken, I can confirm that everything is back to normal for me now.
vittorioromeo commentedon Aug 14, 2024
I am still getting this error with my installation of Emscripten on MSYS2/CLANG64:
I used @csjh's workaround in #22249 (comment), but now I am getting another error:
These are my flags:
Am I doing something wrong?
sbc100 commentedon Aug 14, 2024
There was a problem with the 3.1.63 release of emscripten which was incorrectly tagged as 7b466b4. This mean that distributions other than emsdk itself included the wrong version of emscripten, which depended on a more recent version of binaryen.
The fix is to update to 3.1.64 which doesn't have this problem.
vittorioromeo commentedon Aug 15, 2024
I was confused because
emcc -vdoes output3.1.64as the installed version, and because the workaround mentioned here did not fully work for me. I guess this particular3.1.64build is broken then?patham9 commentedon Aug 15, 2024
@sbc100 Unfortunately the issue still occurs with 3.1.64, and somehow this bugged version made it into Homebrew.
sbc100 commentedon Aug 15, 2024
What does
wasm-opt --versionsay for your 3.1.64 install?Does homebrew include binaryen as a separate package? If so how does it represent the tight version coupling?
arximboldi commentedon Sep 3, 2024
Also struggling with this issue with Nix (using
nixpkgs-unstablewith 3.1.64 andbinaryen118).sbc100 commentedon Sep 3, 2024
Emscripten is not generally supported/tested with stable versions of llvm or binaryen. i.e. you need to use a custom/pinned version of binaryen, not version 118 itself.
See #11362 and #22408