{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/20836","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/20836/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/20836/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/20836/events","html_url":"https://github.com/rust-lang/rust/issues/20836","id":53927767,"number":20836,"title":"rustc should be usable as-is from the build directory","user":{"login":"SimonSapin","id":291359,"avatar_url":"https://avatars.githubusercontent.com/u/291359?v=3","gravatar_id":"","url":"https://api.github.com/users/SimonSapin","html_url":"https://github.com/SimonSapin","followers_url":"https://api.github.com/users/SimonSapin/followers","following_url":"https://api.github.com/users/SimonSapin/following{/other_user}","gists_url":"https://api.github.com/users/SimonSapin/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonSapin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonSapin/subscriptions","organizations_url":"https://api.github.com/users/SimonSapin/orgs","repos_url":"https://api.github.com/users/SimonSapin/repos","events_url":"https://api.github.com/users/SimonSapin/events{/privacy}","received_events_url":"https://api.github.com/users/SimonSapin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/rust/labels/A-infrastructure","name":"A-infrastructure","color":"d7e102"},{"url":"https://api.github.com/repos/rust-lang/rust/labels/I-papercut","name":"I-papercut","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-09T23:19:00Z","updated_at":"2015-01-18T05:25:40Z","closed_at":null,"body":"Steps to reproduce:\r\n\r\n* Clone this git repository\r\n* Run `./configure && make`\r\n* Run `x86_64-unknown-linux-gnu/stage2/bin/rustc --help`\r\n\r\nExpected results: the help message. rustc can be used in place to compile stuff.\r\n\r\nActual result:\r\n\r\n```\r\nx86_64-unknown-linux-gnu/stage2/bin/rustc: symbol lookup error: x86_64-unknown-linux-gnu/stage2/bin/rustc: undefined symbol: _ZN2rt10lang_start20h8e79fc6788a362d0mJzE\r\n```\r\n\r\nThe instructions in `README.md` also include `make install` which would fix this issue, but:\r\n\r\n* `make install` defaults to writing to a directory that typically requires root access\r\n* I might already have a (potentially different) version of Rust installed system-wide.\r\n\r\nI’m told I can pass `--enable-rpath` to `./configure`, but that’s exactly the kind of secret sauce that I shouldn’t need to know.\r\n\r\nPossible solutions:\r\n\r\n* Make `--enable-rpath` the default for source builds (binary builds distributed on rust-lang.org don’t have to use that default)\r\n* Make `bin/rustc` a wrapper script that sets the correct environment variables (e.g. `LD_LIBRARY_PATH` on Linux). This might also help with #19263.\r\n\r\nCC @brson"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/70397126","html_url":"https://github.com/rust-lang/rust/issues/20836#issuecomment-70397126","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/20836","id":70397126,"user":{"login":"tdaede","id":1308314,"avatar_url":"https://avatars.githubusercontent.com/u/1308314?v=3","gravatar_id":"","url":"https://api.github.com/users/tdaede","html_url":"https://github.com/tdaede","followers_url":"https://api.github.com/users/tdaede/followers","following_url":"https://api.github.com/users/tdaede/following{/other_user}","gists_url":"https://api.github.com/users/tdaede/gists{/gist_id}","starred_url":"https://api.github.com/users/tdaede/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdaede/subscriptions","organizations_url":"https://api.github.com/users/tdaede/orgs","repos_url":"https://api.github.com/users/tdaede/repos","events_url":"https://api.github.com/users/tdaede/events{/privacy}","received_events_url":"https://api.github.com/users/tdaede/received_events","type":"User","site_admin":false},"created_at":"2015-01-18T05:25:40Z","updated_at":"2015-01-18T05:25:40Z","body":"Why does this error give an undefined symbol error rather than a \"cannot load shared library\" type of error, which would be the case if it couldn't find the libraries? In bug #21344, when I deleted the system libraries in /lib, it a missing .so error.\r\n"}}