Crystal: Can't build 'release' binary

Created on 13 Aug 2017  路  4Comments  路  Source: crystal-lang/crystal

To reproduce:

  • install crystal on a fresh Ubuntu install (I use 16.04) according to the official recipe At this point it's Crystal 0.23.1 [e2a1389] (2017-07-13) LLVM 3.8.1
  • echo 'puts "Hello World!"' >hw.cr
  • crystal build --release hw.cr
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.
/usr/bin/crystal: line 102: 13365 Aborted                 (core dumped) "$INSTALL_DIR/embedded/bin/crystal" "$@"

I would love to try crystal. I am sure there must be something missing in the toolchain somehow. I've browsed around similar issues here, and there is obviously a problem, but I haven't encountered a fix.

duplicate

Most helpful comment

@RX14 You can build with --release --no-debug.

All 4 comments

Duplicate of #4719, please search before making an issue.

I hadn't seen that one, that is pretty identical to this issue. So there is no resolution or fix for this??

Not currently, no. There's a workaround: don't build with release, and use --no-debug.

@RX14 You can build with --release --no-debug.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RX14 picture RX14  路  3Comments

asterite picture asterite  路  3Comments

will picture will  路  3Comments

cjgajard picture cjgajard  路  3Comments

oprypin picture oprypin  路  3Comments