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:
crystal run src/server.cr works fineCan 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.
Most helpful comment
As a temporary workaround until this is resolved you can just add
--no-debugtogether with--release.