Crystal: LLVM - Assertion failed at `--release` build

Created on 10 Aug 2017  路  5Comments  路  Source: crystal-lang/crystal

So my command I want to execute and the followed error message:

daniel@daniel-fbFED23sd:~/projects/kemal$ crystal build src/server.cr --release
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: 15601 Aborted                 (core dumped) "$INSTALL_DIR/embedded/bin/crystal" "$@"

Infos:

  • I installed crystal newly onto my system 1 hour ago, and installed all required libaries as it says in the wiki.
  • crystal run src/server.cr works fine
  • I am running Ubuntu 17.04
bug duplicate

Most helpful comment

As a temporary workaround until this is resolved you can just add --no-debug together with --release.

All 5 comments

Can you provide the minimal source code that triggers this error?

Duplicate of #4719

As a temporary workaround until this is resolved you can just add --no-debug together with --release.

My source @bew

require "kemal"

get "/" do
    "Hello World!"
end

Kemal.run

@straight-shoota Workaround works find, didn't found the other issued 馃槥

@oltmannsdaniel Please close this issue, since it's a duplicate.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

straight-shoota picture straight-shoota  路  91Comments

asterite picture asterite  路  139Comments

farleyknight picture farleyknight  路  64Comments

asterite picture asterite  路  78Comments

HCLarsen picture HCLarsen  路  162Comments