-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
compilation fails #19
Comments
Oro! Welcome to Crystal! Did you try googling "llc: : Invalid MODULE_CODE_GLOBALVAR record"? I found a bunch of results saying that you probably have many LLVM versions installed so two llvm command are executed with different versions (crystal uses first llc, then clang). So the problem is not related to crystal. What's the output of the following commands? llc -version Anyway, make sure that on the command line when you execute any llvm executable they are using version 3.1. |
llc -version
clang --version
i ll try to switch 3.1 in ubuntu |
So, 2.9 vs 3.0. Make sure both versions give you 3.1. I don't know how to do it in Ubuntu... (I'm on a Mac right now) |
./bin/crystal 1.cr
./bin/crystal 1.cr -run
this is works.
The text was updated successfully, but these errors were encountered: