-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Build from source crashing on Mac (M1) #19925
Comments
The production build doesn't crash on M1, so something has gone wrong with packaging on your machine (possibly, our instructions are lacking) To debug, you can try running the binary from gdb and inspecting the stack trace to see where it's dying. |
Sure will do, meanwhile when I tried "yarn start" there was an error on the console, but the UI started up. |
aha, that looks similar to atom/node-keytar#406 (comment) |
Yes, it is, though I read somewhere that "yarn run build:native" will detect the platform and build accordingly; but it seems that the automatic behaviour is just detecting the "darwin" and assuming the chipset to be x86_64. Someone, please guide me how to hint the same to try compiling for arm64e for the native modules it could be better off.. |
@dbkr might be best placed to answer that, although I think this might be more a conversation for #element-dev |
Yes, it should auto detect: I've just confirmed by starting from fresh and running,
You can force the architecture as per the readme file, but I think we'd need to see exactly what you're running and what logs you're getting to be any more help. |
I suspect we may need to know details like which Xcode version you have installed, etc. Do you perhaps have some non-Apple toolchain on your path as the default complier or linker? That is likely to confuse things. |
@jryans :) just started using mac 2 weeks back, and even xcode was installed from the apple store - no idea about checking these things. xcodebuild -version Xcode 13.1 |
Thanks guyz, it was my ignorance. Somehow package.json was from an old release, once updated and followed the documented process the arm64 binary is built |
Steps to reproduce
Build instructions went smooth and the .dmg was created. It could be installed, but on starting it crashes.
Outcome
Not sure if it is due to the build:native building and linking for x86_64 under darwin. My mac PowerBook is having M1 arm64e chipset.
Operating system
macOS
Application version
No response
How did you install the app?
No response
Homeserver
No response
Will you send logs?
No
The text was updated successfully, but these errors were encountered: