Skip to content

LLVM ERROR: Unexpected anonymous function when writing summary #51947

Description

@japaric

When compiling the compiler_builtins crate for any of the thumb targets in release mode and with debuginfo enabled. Without debuginfo the build succeeds (we are testing this by building rust-std for the thumb targets). This doesn't affect the ARM Linux targets.

STR

$ cp -r $(rustc --print sysroot)/lib/rustlib/src/rust/src/ src && cd $_

$ cd libcompiler_builtins

$ cat >>Cargo.toml <<'EOF'
[profile.release]
debug = true
EOF

$ cargo build --target thumbv7m-none-eabi --release
LLVM ERROR: Unexpected anonymous function when writing summary

Metadata

$ rustc -V
rustc 1.28.0-nightly (e3bf634e0 2018-06-28)

Needs bisecting

cc @alexcrichton

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.WG-embeddedWorking group: Embedded systems

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions