{"action":"created","issue":{"url":"https://api.github.com/repos/gnzlbg/cargo-asm/issues/25","repository_url":"https://api.github.com/repos/gnzlbg/cargo-asm","labels_url":"https://api.github.com/repos/gnzlbg/cargo-asm/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/gnzlbg/cargo-asm/issues/25/comments","events_url":"https://api.github.com/repos/gnzlbg/cargo-asm/issues/25/events","html_url":"https://github.com/gnzlbg/cargo-asm/issues/25","id":342915426,"node_id":"MDU6SXNzdWUzNDI5MTU0MjY=","number":25,"title":"Cargo build fails due to LLVM bug for rustc 1.27.1","user":{"login":"petr-tik","id":14153264,"node_id":"MDQ6VXNlcjE0MTUzMjY0","avatar_url":"https://avatars3.githubusercontent.com/u/14153264?v=4","gravatar_id":"","url":"https://api.github.com/users/petr-tik","html_url":"https://github.com/petr-tik","followers_url":"https://api.github.com/users/petr-tik/followers","following_url":"https://api.github.com/users/petr-tik/following{/other_user}","gists_url":"https://api.github.com/users/petr-tik/gists{/gist_id}","starred_url":"https://api.github.com/users/petr-tik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petr-tik/subscriptions","organizations_url":"https://api.github.com/users/petr-tik/orgs","repos_url":"https://api.github.com/users/petr-tik/repos","events_url":"https://api.github.com/users/petr-tik/events{/privacy}","received_events_url":"https://api.github.com/users/petr-tik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-19T22:48:07Z","updated_at":"2018-07-19T22:52:34Z","closed_at":null,"author_association":"NONE","body":"# Intro and thanks!\r\nFirst of all, thanks for a great extension - you and the rest of the community is one of the reasons I enjoy using rust! I read about cargo asm on reddit and am looking forward to using and hopefully helping stabilise it.\r\n\r\n## Problem description\r\nI installed cargo-asm tonight to look at the asm output for my [open-source project](https://github.com/petr-tik/dark_rusty_pool) \r\n\r\n```bash\r\n$$$$ cargo asm -h\r\ncargo-asm 0.1.16\r\n```\r\n\r\nMy project builds using vanilla rustc 1.27.1\r\n\r\n```bash\r\n$$$$ cargo build --release\r\n   Compiling fnv v1.0.6\r\n   Compiling order_book v0.1.0 (file:///home/petr_tik/Coding/order_book)\r\n    Finished release [optimized + debuginfo] target(s) in 9.20s\r\n```\r\n\r\nbut the build breaks when I run cargo asm \r\n\r\n## Stacktrace\r\n\r\n```bash\r\n$$$$ cargo asm \r\n\r\n[ERROR]: cargo build failed!\r\n\r\nstderr:\r\n\r\n   Compiling fnv v1.0.6\r\n     Running `rustc --crate-name fnv /home/petr_tik/.cargo/registry/src/github.com-1ecc6299db9ec823/fnv-1.0.6/lib.rs --color always --crate-type lib --emit=dep-info,link -C opt-level=3 -C debuginfo=2 -C metadata=5881d5b4694d1337 -C extra-filename=-5881d5b4694d1337 --out-dir /home/petr_tik/Coding/order_book/target/release/deps -L dependency=/home/petr_tik/Coding/order_book/target/release/deps --cap-lints allow --emit asm -C llvm-args=-x86-asm-syntax=intel`\r\n   Compiling order_book v0.1.0 (file:///home/petr_tik/Coding/order_book)\r\n     Running `rustc --crate-name order_book src/main.rs --color always --crate-type bin --emit=dep-info,link -C opt-level=3 -C lto -C debuginfo=2 -C metadata=12b7d539aa0f5d9d -C extra-filename=-12b7d539aa0f5d9d --out-dir /home/petr_tik/Coding/order_book/target/release/deps -L dependency=/home/petr_tik/Coding/order_book/target/release/deps --extern fnv=/home/petr_tik/Coding/order_book/target/release/deps/libfnv-5881d5b4694d1337.rlib --emit asm -C llvm-args=-x86-asm-syntax=intel`\r\nDICompileUnit not listed in llvm.dbg.cu\r\n!30643 = distinct !DICompileUnit(language: DW_LANG_Rust, file: !1328, producer: \"clang LLVM (rustc version 1.27.1 (5f2b325f6 2018-07-07))\", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !1662, globals: !30644)\r\nLLVM ERROR: Broken module found, compilation aborted!\r\nerror: Could not compile `order_book`.\r\n\r\nCaused by:\r\n  process didn't exit successfully: `rustc --crate-name order_book src/main.rs --color always --crate-type bin --emit=dep-info,link -C opt-level=3 -C lto -C debuginfo=2 -C metadata=12b7d539aa0f5d9d -C extra-filename=-12b7d539aa0f5d9d --out-dir /home/petr_tik/Coding/order_book/target/release/deps -L dependency=/home/petr_tik/Coding/order_book/target/release/deps --extern fnv=/home/petr_tik/Coding/order_book/target/release/deps/libfnv-5881d5b4694d1337.rlib --emit asm -C llvm-args=-x86-asm-syntax=intel` (exit code: 1)\r\n\r\n\r\n\r\nthread 'main' panicked at 'cargo build failed: ()', libcore/result.rs:945:5\r\nnote: Run with `RUST_BACKTRACE=1` for a backtrace.\r\n```\r\n\r\n## Ideas/inference to related issues\r\n\r\nseems related to #6 \r\nhttps://github.com/rust-lang/rust/issues/52039\r\n\r\n## Steps to reproduce\r\n\r\n```bash\r\ngit clone https://github.com/petr-tik/dark_rusty_pool.git\r\ncd dark_rusty_pool\r\ncargo test\r\ncargo build --release\r\ncargo asm\r\n```\r\n\r\n## TODO\r\nPlease let me know what other information you need and/or how I can help"},"comment":{"url":"https://api.github.com/repos/gnzlbg/cargo-asm/issues/comments/406438317","html_url":"https://github.com/gnzlbg/cargo-asm/issues/25#issuecomment-406438317","issue_url":"https://api.github.com/repos/gnzlbg/cargo-asm/issues/25","id":406438317,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjQzODMxNw==","user":{"login":"gnzlbg","id":904614,"node_id":"MDQ6VXNlcjkwNDYxNA==","avatar_url":"https://avatars0.githubusercontent.com/u/904614?v=4","gravatar_id":"","url":"https://api.github.com/users/gnzlbg","html_url":"https://github.com/gnzlbg","followers_url":"https://api.github.com/users/gnzlbg/followers","following_url":"https://api.github.com/users/gnzlbg/following{/other_user}","gists_url":"https://api.github.com/users/gnzlbg/gists{/gist_id}","starred_url":"https://api.github.com/users/gnzlbg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnzlbg/subscriptions","organizations_url":"https://api.github.com/users/gnzlbg/orgs","repos_url":"https://api.github.com/users/gnzlbg/repos","events_url":"https://api.github.com/users/gnzlbg/events{/privacy}","received_events_url":"https://api.github.com/users/gnzlbg/received_events","type":"User","site_admin":false},"created_at":"2018-07-19T22:52:34Z","updated_at":"2018-07-19T22:52:34Z","author_association":"OWNER","body":"Hi! Thanks for the report. So I cannot reproduce with rust nightly :/\r\n\r\nCould you try:\r\n\r\n```\r\nRUSTFLAGS=\"--emit=asm\" cargo build --release\r\n```\r\n\r\nand report the output?\r\n"}}
{"actor":{"display_login":"gnzlbg"}}