{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/53813","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/53813/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/53813/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/53813/events","html_url":"https://github.com/rust-lang/rust/issues/53813","id":355414800,"node_id":"MDU6SXNzdWUzNTU0MTQ4MDA=","number":53813,"title":"rust-lld fails with \"dyld: Library not loaded: @rpath/libLLVM.dylib\" on 1.30.0-nightly (02cb8f2a4 2018-08-29)","user":{"login":"parasyte","id":456942,"node_id":"MDQ6VXNlcjQ1Njk0Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/456942?v=4","gravatar_id":"","url":"https://api.github.com/users/parasyte","html_url":"https://github.com/parasyte","followers_url":"https://api.github.com/users/parasyte/followers","following_url":"https://api.github.com/users/parasyte/following{/other_user}","gists_url":"https://api.github.com/users/parasyte/gists{/gist_id}","starred_url":"https://api.github.com/users/parasyte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parasyte/subscriptions","organizations_url":"https://api.github.com/users/parasyte/orgs","repos_url":"https://api.github.com/users/parasyte/repos","events_url":"https://api.github.com/users/parasyte/events{/privacy}","received_events_url":"https://api.github.com/users/parasyte/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-30T03:55:44Z","updated_at":"2018-08-30T15:03:06Z","closed_at":null,"author_association":"NONE","body":"Short description: I am building for a `no_std` environment using `cargo-xbuild`, and the embedded `lld` as my linker of choice. The linker fails to load since it depends on a dynamic library that doesn't actually exist.\r\n\r\n```\r\n$ rustc --version\r\nrustc 1.30.0-nightly (02cb8f2a4 2018-08-29)\r\n\r\n$ rustc --print sysroot\r\n/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin\r\n\r\n$ /Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/bin/rust-lld --help\r\ndyld: Library not loaded: @rpath/libLLVM.dylib\r\n  Referenced from: /Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/bin/rust-lld\r\n  Reason: image not found\r\nAbort trap: 6\r\n\r\n$ otool -L /Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/bin/rust-lld\r\n/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/bin/rust-lld:\r\n\t@rpath/libLLVM.dylib (compatibility version 1.0.0, current version 7.0.0)\r\n\t/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 400.9.0)\r\n\t/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.50.4)\r\n```\r\n\r\nRolling back to `nightly-2018-08-27-x86_64-apple-darwin` works\r\n\r\n```\r\n$ rustup override set nightly-2018-08-27-x86_64-apple-darwin\r\ninfo: using existing install for 'nightly-2018-08-27-x86_64-apple-darwin'\r\ninfo: override toolchain for '/Users/parasyte/projects/technek' set to 'nightly-2018-08-27-x86_64-apple-darwin'\r\n\r\n  nightly-2018-08-27-x86_64-apple-darwin unchanged - rustc 1.30.0-nightly (721913067 2018-08-26)\r\n\r\n$ rustc --version\r\nrustc 1.30.0-nightly (721913067 2018-08-26)\r\n\r\n$ rustc --print sysroot\r\n/Users/parasyte/.rustup/toolchains/nightly-2018-08-27-x86_64-apple-darwin\r\n\r\n$ /Users/parasyte/.rustup/toolchains/nightly-2018-08-27-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/bin/rust-lld --help\r\nlld is a generic driver.\r\nInvoke ld.lld (Unix), ld64.lld (macOS), lld-link (Windows), wasm-lld (WebAssembly) instead\r\n\r\n$ otool -L /Users/parasyte/.rustup/toolchains/nightly-2018-08-27-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/bin/rust-lld\r\n/Users/parasyte/.rustup/toolchains/nightly-2018-08-27-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/bin/rust-lld:\r\n\t/usr/lib/libxml2.2.dylib (compatibility version 10.0.0, current version 10.9.0)\r\n\t/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.50.4)\r\n\t/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 400.9.0)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/417352212","html_url":"https://github.com/rust-lang/rust/issues/53813#issuecomment-417352212","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/53813","id":417352212,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzM1MjIxMg==","user":{"login":"GabrielMajeri","id":3010346,"node_id":"MDQ6VXNlcjMwMTAzNDY=","avatar_url":"https://avatars2.githubusercontent.com/u/3010346?v=4","gravatar_id":"","url":"https://api.github.com/users/GabrielMajeri","html_url":"https://github.com/GabrielMajeri","followers_url":"https://api.github.com/users/GabrielMajeri/followers","following_url":"https://api.github.com/users/GabrielMajeri/following{/other_user}","gists_url":"https://api.github.com/users/GabrielMajeri/gists{/gist_id}","starred_url":"https://api.github.com/users/GabrielMajeri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GabrielMajeri/subscriptions","organizations_url":"https://api.github.com/users/GabrielMajeri/orgs","repos_url":"https://api.github.com/users/GabrielMajeri/repos","events_url":"https://api.github.com/users/GabrielMajeri/events{/privacy}","received_events_url":"https://api.github.com/users/GabrielMajeri/received_events","type":"User","site_admin":false},"created_at":"2018-08-30T15:03:06Z","updated_at":"2018-08-30T15:03:06Z","author_association":"CONTRIBUTOR","body":"I believe this issue is caused by 3cf6f0db1ab61ed33c585b156a0d5c41279f0810: \"Link LLVM tools dynamically...\".\r\n\r\nIt only enables dynamic linking `libllvm` on Linux and Mac OS, and since no Windows users complained so far I can only assume it's the probable cause."}}
{"actor":{"display_login":"GabrielMajeri"}}