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

Unable to install/build 0.23.1 with crenv #4741

Closed
megatux opened this issue Jul 23, 2017 · 4 comments
Closed

Unable to install/build 0.23.1 with crenv #4741

megatux opened this issue Jul 23, 2017 · 4 comments

Comments

@megatux
Copy link
Contributor

megatux commented Jul 23, 2017

I use crenv to manage Crystal versions. So far I have this versions installed:
0.19.4
0.21.1
0.22.0
0.23.0
When trying to install the 0.23.1 version I got an error:

$ crenv install 0.23.1
Resolving Crystal download URL by Remote Cache ... ok
Downloading Crystal binary tarball ...
https://github.com/crystal-lang/crystal/releases/download/0.23.1/crystal-0.23.1-3-linux-x86_64.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   625    0   625    0     0    464      0 --:--:--  0:00:01 --:--:--   464
100 18.9M  100 18.9M    0     0   395k      0  0:00:49  0:00:49 --:--:--  386k
ok
Moving the Crystal directory ...ok
Checking if Shards already exists ... ng
Resolving Shards download URL ... ok
Downloading Shards tarball ...
https://github.com/crystal-lang/shards/archive/v0.7.1.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   127    0   127    0     0     97      0 --:--:--  0:00:01 --:--:--    97
100 29722    0 29722    0     0  10546      0 --:--:--  0:00:02 --:--:-- 64194
ok
Building Shards ... Error: Missing option: --link-flags

Retry building Shards ... crystal: /var/cache/omnibus/src/llvm/llvm-3.8.1.src/lib/CodeGen/LexicalScopes.cpp:160: llvm::LexicalScope* llvm::LexicalScopes::getOrCreateRegularScope(const llvm::DILocalScope*): Assertion `cast<DISubprogram>(Scope)->describes(MF->getFunction())' failed.
/home/megatux/.anyenv/envs/crenv/versions/0.23.1/bin/crystal: línea 102: 21409 Abortado                (`core' generado) "$INSTALL_DIR/embedded/bin/crystal" "$@"
shards build faild: /home/megatux/.anyenv/envs/crenv/cache/0.23.1/shards-0.7.1 at /home/megatux/.anyenv/envs/crenv/plugins/crystal-build/bin/../lib/CrystalBuild/Builder/Shards.pm line 33, <DATA> line 2.

Sorry about some words in Spanish. If that's a problem I can try to set a different locale.

crenv version is "crenv 1.1.0-3-g7d55d72".
OS: ElementaryOS Loki, 4.4.0-83-generic #106-Ubuntu SMP Mon Jun 26 17:54:43 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

@ghost
Copy link

ghost commented Jul 24, 2017

i have the same problem

Assertion `cast(Scope)->describes(MF->getFunction())' failed.

on debian (stable x86_64) with llvm 3.8/3.9

@bararchy
Copy link
Contributor

That's a general problem not related specifically to crenv , I get the same without crenv when trying to build on Arch Linux

@konovod
Copy link
Contributor

konovod commented Jul 24, 2017

I think this is a duplicate or at least related to #4719

@ysbaddaden
Copy link
Contributor

Closing as duplicate.

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

4 participants