-
-
Notifications
You must be signed in to change notification settings - Fork 124
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
Examples on Apple M1 need an additional resolution in esy. #160
Comments
Can you make a PR that adds this to the resolutions of dream/example/2-middleware/esy.json Lines 11 to 13 in 52d4da2
From your message, I suppose this will fix the example for you, and choosing this example for the PR will also get the change tested in CI, since that example is part of Dream's quick start script that gets run in CI. If everything works, I'll do the busywork of adding this resolution to all the other examples. @ManasJayanth is it correct to use the resolution this way? I assume that |
thank you for creating this @pm-mck I tried adding the line to my esy.json in 2-middleware but I am getting the following error while running 'npx esy'
|
@sagarjs This looks like an esy error (rather than Dream), and likely esy/esy#1062. Can you post the full esy build log to esy/esy#1062, including the part where it shows the |
@sagarjs Please also include the esy version and the OS info, like at the top of the esy issue. Hopefully we can get this figured out quickly. |
@aantron sure, i am using ocaml@4.12.0 though; should I still post the error in that issue? |
@sagarjs Can you try removing the "ocaml": "4.12.x"
},
"devDependencies": {
- "@opam/ocaml-lsp-server": "*",
- "@opam/ocamlfind-secondary": "*"
+ "@opam/ocaml-lsp-server": "*"
},
"resolutions": {
+ "esy-openssl": "esy-packages/esy-openssl#619ae2d46ca981ec26ab3287487ad98b157a01d1",
"@opam/conf-libev": "esy-packages/libev:package.json#0b5eb6685b688649045aceac55dc559f6f21b829"
}, |
@ManasJayanth thanks! |
Without the override, openssl 1g released is pulled in on my M1 mac (which doesn't have arm64 support). So, I'd say the override is important. I wonder what |
@ManasJayanth Thanks!
|
I did not try without ocamlfind, but I’m glad to hear it’s not necessary. I’ll try it without now. the error involving “make all”, I encountered too, and hinted at it in discord. I didn’t know how to debug. So I found a workaround by using an explicit previous minor version. But since we’re not supposed to use it directly, I’ll test it without. My workaround was to pin ocamlfind/secondary to 1.8.1. Otherwise, we run into that weird make-all error. See my repo for a working example https://github.com/dangdennis/priority-box Intel MacBook. |
Removed ocamlfind and the vscode extension still works! |
@ManasJayanth
|
I wonder if 1g works there because rosetta emulation - do you turn on intel emulation on while working on Dream (or in general)? |
i have been running the examples without using the rosetta terminal EDIT: |
ok, did a clean re-install of opam (arch64) |
@sagarjs To confirm, you have it working with only adding the |
I forgot to mention that I also had to remove I just performed the following on my M1:
I think this was a successful test. I'll cut a PR in a few moments. |
Thanks to @pm-mck for applying the changes in the PR #163. And thanks to @pm-mck, @sagarjs, @ManasJayanth, and @dangdennis for figuring this issue out! |
As of today, I found that running the examples in esy on an Apple M1 machine requires this resolution:
documented on the esy-openssl project page:
https://github.com/esy-packages/esy-openssl
If you don't do this, the esy build emits a few clang errors which will be difficult for a newcomer to handle.
Should this be added to the examples README or documented / provided in some other manner? Happy to open a pr but don't want to put it in the wrong place.
The text was updated successfully, but these errors were encountered: