elbywan/moongoon

M1 issue

Closed this issue · 4 comments

Hi,

When I attempt to include moongoon on an M1 Mac running 11.5.2 I get the attached error.
error.txt

Same code runs fine on Ubuntu. I've tried reinstalling gmp through Brew and am running the latest version.

Same code without Moongoon compiles with no issue.

Thanks!

Marc

Hey @marcstein,

When I attempt to include moongoon on an M1 Mac running 11.5.2 I get the attached error.

Sorry, I will be unable to reproduce since I don't have access to an M1 mac myself.

But since the issue is not specific to Moongoon as it comes from BigInt usage of libgmp, you could ask directly in the crystal forum or gitter. I think there are some people that were successful in running crystal with an M1 mac already.

Hi,

Just an idea to throw in. To me it looks like you have Intel and M1 messed up. The chances are your Crystal binary is for x86 and brew is arm64. Either try to dig in or set the stack from scratch.

General guidance for all-M1-in is available here - https://maxfierke.com/blog/posts/so-you-want-to-compile-crystal-on-arm64-macos