{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/51947","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/51947/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/51947/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/51947/events","html_url":"https://github.com/rust-lang/rust/issues/51947","id":337233296,"node_id":"MDU6SXNzdWUzMzcyMzMyOTY=","number":51947,"title":"LLVM ERROR: Unexpected anonymous function when writing summary","user":{"login":"japaric","id":5018213,"node_id":"MDQ6VXNlcjUwMTgyMTM=","avatar_url":"https://avatars3.githubusercontent.com/u/5018213?v=4","gravatar_id":"","url":"https://api.github.com/users/japaric","html_url":"https://github.com/japaric","followers_url":"https://api.github.com/users/japaric/followers","following_url":"https://api.github.com/users/japaric/following{/other_user}","gists_url":"https://api.github.com/users/japaric/gists{/gist_id}","starred_url":"https://api.github.com/users/japaric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/japaric/subscriptions","organizations_url":"https://api.github.com/users/japaric/orgs","repos_url":"https://api.github.com/users/japaric/repos","events_url":"https://api.github.com/users/japaric/events{/privacy}","received_events_url":"https://api.github.com/users/japaric/received_events","type":"User","site_admin":false},"labels":[{"id":108333,"node_id":"MDU6TGFiZWwxMDgzMzM=","url":"https://api.github.com/repos/rust-lang/rust/labels/A-LLVM","name":"A-LLVM","color":"d7e102","default":false},{"id":880020421,"node_id":"MDU6TGFiZWw4ODAwMjA0MjE=","url":"https://api.github.com/repos/rust-lang/rust/labels/WG-embedded","name":"WG-embedded","color":"c2e0c6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-06-30T18:16:32Z","updated_at":"2018-11-01T17:57:06Z","closed_at":null,"author_association":"MEMBER","body":"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.\r\n\r\n### STR\r\n\r\n```\r\n$ cp -r $(rustc --print sysroot)/lib/rustlib/src/rust/src/ src && cd $_\r\n\r\n$ cd libcompiler_builtins\r\n\r\n$ cat >>Cargo.toml <<'EOF'\r\n[profile.release]\r\ndebug = true\r\nEOF\r\n\r\n$ cargo build --target thumbv7m-none-eabi --release\r\nLLVM ERROR: Unexpected anonymous function when writing summary\r\n```\r\n\r\n### Metadata\r\n\r\n```\r\n$ rustc -V\r\nrustc 1.28.0-nightly (e3bf634e0 2018-06-28)\r\n```\r\n\r\nNeeds bisecting\r\n\r\ncc @alexcrichton "},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/435128542","html_url":"https://github.com/rust-lang/rust/issues/51947#issuecomment-435128542","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/51947","id":435128542,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTEyODU0Mg==","user":{"login":"nikic","id":216080,"node_id":"MDQ6VXNlcjIxNjA4MA==","avatar_url":"https://avatars3.githubusercontent.com/u/216080?v=4","gravatar_id":"","url":"https://api.github.com/users/nikic","html_url":"https://github.com/nikic","followers_url":"https://api.github.com/users/nikic/followers","following_url":"https://api.github.com/users/nikic/following{/other_user}","gists_url":"https://api.github.com/users/nikic/gists{/gist_id}","starred_url":"https://api.github.com/users/nikic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikic/subscriptions","organizations_url":"https://api.github.com/users/nikic/orgs","repos_url":"https://api.github.com/users/nikic/repos","events_url":"https://api.github.com/users/nikic/events{/privacy}","received_events_url":"https://api.github.com/users/nikic/received_events","type":"User","site_admin":false},"created_at":"2018-11-01T17:57:06Z","updated_at":"2018-11-01T17:57:06Z","author_association":"CONTRIBUTOR","body":"Here is a reproducer without the compiler_builtins/thumb dependency:\r\n\r\n```rust\r\n#![feature(linkage)]\r\n  \r\n#[linkage = \"weak\"]\r\npub fn fn1(a: u32, b: u32, c: u32) -> u32 {\r\n    a + b + c\r\n}\r\n\r\n#[linkage = \"weak\"]\r\npub fn fn2(a: u32, b: u32, c: u32) -> u32 {\r\n    a + b + c\r\n}\r\n```\r\n\r\nCompiled with `--crate-type=rlib -O` this produces the anon function error."}}
{"actor":{"display_login":"nikic"}}