Skip to content
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

Emacs crashes when .so loaded on M1 #119

Closed
telotortium opened this issue Jan 28, 2022 · 4 comments
Closed

Emacs crashes when .so loaded on M1 #119

telotortium opened this issue Jan 28, 2022 · 4 comments

Comments

@telotortium
Copy link

There seems to be no release version for M1 macOS, so I attempted to compile the library using cargo build --release --features emacs. However, when I copy it to the location of parinfer-rust-library (basename parinfer-rust-darwin.so) from parinfer-rust-mode and run M-x parinfer-rust-mode, Emacs segfaults, presumably as it's loading the .so.

Encountered at commit 211f72e (current master) .

Tagging @nwjsmith because he submitted #95 to enable the support in the first place (although maybe not for Emacs).

M-x emacs-version: GNU Emacs 29.0.50 (build 1, aarch64-apple-darwin21.2.0, NS appkit-2113.20 Version 12.1 (Build 21C52)) of 2022-01-12

@telotortium
Copy link
Author

telotortium commented Jan 28, 2022

I have nativecomp, which requires gcc, but Rust uses LLVM, maybe that's the issue? On the other hand, on my Intel x86_64 Mac, I'm able to load the released library from Github, even though I use nativecomp there too.

@telotortium
Copy link
Author

This happened because I tried to use the cargo and rustc installed by Macports. Once I used Rustup to install a toolchain, I was able to build a copy that worked in Emacs.

@jesse-c
Copy link

jesse-c commented Sep 21, 2022

I'm having a similar issue. Which toolchain did you use from within rustup? I'm currently on stable-aarch64-apple-darwin.

@telotortium
Copy link
Author

@jesse-c I think I used that toolchain too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants