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

Compiling a crytsal for interpreter #53

Open
robacarp opened this issue Dec 5, 2022 · 1 comment
Open

Compiling a crytsal for interpreter #53

robacarp opened this issue Dec 5, 2022 · 1 comment

Comments

@robacarp
Copy link

robacarp commented Dec 5, 2022

I have no idea if this is the right repo for this bug report, or if it should go at https://github.com/crystal-lang/distribution-scripts Perhaps someone here can pull back the curtain enough for me to either solve the problem or at least find the right place to go for better help.

I'm on an M* mac, and I'm curious to try out the interpreter. So I pulled down the repo and make interpreter=1 to spin it off.

It fails, and this is the error message it emits:

ld: warning: ignoring file /Users/robert/.asdf/installs/crystal/1.6.2/embedded/lib/libffi.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64

Crystal is using the currently available crystal to compile itself -- the currently available crystal was installed with asdf-crystal, and it seems like the bundled libffi.a file is the wrong architecture for the M-series arm chip. What should my next step be?

@noraj
Copy link

noraj commented Feb 27, 2023

cf. crystal-lang/crystal#9285 the install script could use the bundled tarball (crystal-lang/crystal#9285 (comment)) to have the static libraries.

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

No branches or pull requests

2 participants