{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/52362","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/52362/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/52362/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/52362/events","html_url":"https://github.com/rust-lang/rust/issues/52362","id":341207751,"node_id":"MDU6SXNzdWUzNDEyMDc3NTE=","number":52362,"title":"error: linker `rust-lld` not found","user":{"login":"shishtpal","id":6944804,"node_id":"MDQ6VXNlcjY5NDQ4MDQ=","avatar_url":"https://avatars3.githubusercontent.com/u/6944804?v=4","gravatar_id":"","url":"https://api.github.com/users/shishtpal","html_url":"https://github.com/shishtpal","followers_url":"https://api.github.com/users/shishtpal/followers","following_url":"https://api.github.com/users/shishtpal/following{/other_user}","gists_url":"https://api.github.com/users/shishtpal/gists{/gist_id}","starred_url":"https://api.github.com/users/shishtpal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shishtpal/subscriptions","organizations_url":"https://api.github.com/users/shishtpal/orgs","repos_url":"https://api.github.com/users/shishtpal/repos","events_url":"https://api.github.com/users/shishtpal/events{/privacy}","received_events_url":"https://api.github.com/users/shishtpal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-07-14T04:23:27Z","updated_at":"2018-08-02T13:45:56Z","closed_at":null,"author_association":"NONE","body":"I installed Rust on my Raspberry pi3 but when i tried hello-world example from this page.\r\nhttps://rustwasm.github.io/book/hello-world.html\r\nit shows this error\r\n\r\n```\r\npi@raspberrypi:~/RustTuts/hello-world $ \r\ncargo +nightly build --target wasm32-unknown-unknown --release --verbose\r\n   \r\nCompiling hello-world v0.1.0 (file:///home/pi/RustTuts/hello-world)\r\n     \r\nRunning `rustc --crate-name hello_world src/lib.rs --crate-type cdylib --emit=dep-info,link -C opt-level=3 -C metadata=c2b67d4c4ad89cb4 --out-dir /home/pi/RustTuts/hello-world/target/wasm32-unknown-unknown/release/deps --target wasm32-unknown-unknown -L dependency=/home/pi/RustTuts/hello-world/target/wasm32-unknown-unknown/release/deps -L dependency=/home/pi/RustTuts/hello-world/target/release/deps`\r\n\r\nerror: linker `rust-lld` not found                                       ] 0/1: hello-world\r\n  |\r\n  = note: No such file or directory (os error 2)\r\n\r\nerror: aborting due to previous error\r\n\r\nerror: Could not compile `hello-world`.\r\n\r\nCaused by:\r\n  process didn't exit successfully: `rustc --crate-name hello_world src/lib.rs --crate-type cdylib --emit=dep-info,link -C opt-level=3 -C metadata=c2b67d4c4ad89cb4 --out-dir /home/pi/RustTuts/hello-world/target/wasm32-unknown-unknown/release/deps --target wasm32-unknown-unknown -L dependency=/home/pi/RustTuts/hello-world/target/wasm32-unknown-unknown/release/deps -L dependency=/home/pi/RustTuts/hello-world/target/release/deps` (exit code: 101)\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/409931502","html_url":"https://github.com/rust-lang/rust/issues/52362#issuecomment-409931502","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/52362","id":409931502,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTkzMTUwMg==","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},"created_at":"2018-08-02T13:45:56Z","updated_at":"2018-08-02T13:45:56Z","author_association":"MEMBER","body":"@mati865 \r\n\r\n> If somebody knows if it's fine to enable it for ARMs builds it's @japaric\r\n\r\nactually that would be @alexcrichton. If it were for me I would enable LLD everywhere it can be built but I don't know how that would affect CI time.\r\n\r\nPR #48125 says:\r\n\r\n> Like Emscripten the LLD target is currently only enabled for Tier 1 platforms,\r\nnotably OSX/Windows/Linux, and will need to be installed manually for compiling\r\nto wasm on other platforms.\r\n\r\nSo you would have to install LLD on ARM Linux if want to compile to wasm. After #51936 you would have to pass `-C linker=lld` to rustc to use system LLD, or we would have to add logic to rustc to make it fallback to system LLD if rust-lld is not available in the sysroot. However, system LLD may not work if it's \"too old\" (e.g. installed via package manager) because, as of #51966, the wasm target expects LLD ~7.0."}}
{"actor":{"display_login":"japaric"}}