Skip to content

LLVM LexicalScopes build exception when building with --release flag #4719

Closed
@fridgerator

Description

@fridgerator

I was able to build fine in OSX, however Ubuntu 16.04 is failing with this error:

remote: 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(Scope)->describes(MF->getFunction())' failed.`

Originally reported by @crisward here

Replicated by @hak8or and @matiasgarciaisaia. @matiasgarciaisaia mentioned that building with --no-debug works as a temporary workaround.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions