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

Run, Build and Test generate warnings on M1 Macs "ld: warning: ignoring file [...], building for macOS-x86_64 but attempting to link with file built for unknown-arm64" #25

Open
bolandross opened this issue Oct 16, 2022 · 0 comments

Comments

@bolandross
Copy link

Running a .cr file from the command line works fine, but inside this TextMate bundle, I am receiving a bunch of warnings:

ld: warning: ignoring file I-nt32.o, building for macOS-x86_64 but attempting to link with file built for unknown-arm64
ld: warning: ignoring file A-rgumentE-rror.o, building for macOS-x86_64 but attempting to link with file built for unknown-arm64
ld: warning: ignoring file I-nt64.o, building for macOS-x86_64 but attempting to link with file built for unknown-arm64

...
etc. finally resulting in:

attempting to link with file built for unknown-arm64
Undefined symbols for architecture x86_64:
"_main", referenced from:
implicit entry/start for main executable
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error: execution of command failed with code: 1: cc "${@}" -o /Users/bolandross/.cache/crystal/crystal-run-main.tmp -rdynamic -L/opt/homebrew/Cellar/crystal/1.6.0/libexec/../../../../lib -lgc -L/opt/homebrew/Cellar/libevent/2.1.12/lib -levent -liconv

any ideas how to solve this?

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

1 participant