{"action":"closed","issue":{"url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/issues/462","repository_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs","labels_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/issues/462/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/issues/462/comments","events_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/issues/462/events","html_url":"https://github.com/rust-lang-nursery/rustup.rs/issues/462","id":154843466,"number":462,"title":"Targeting x86_64-apple-darwin on Linux yields linking errors","user":{"login":"netgusto","id":4974818,"avatar_url":"https://avatars.githubusercontent.com/u/4974818?v=3","gravatar_id":"","url":"https://api.github.com/users/netgusto","html_url":"https://github.com/netgusto","followers_url":"https://api.github.com/users/netgusto/followers","following_url":"https://api.github.com/users/netgusto/following{/other_user}","gists_url":"https://api.github.com/users/netgusto/gists{/gist_id}","starred_url":"https://api.github.com/users/netgusto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netgusto/subscriptions","organizations_url":"https://api.github.com/users/netgusto/orgs","repos_url":"https://api.github.com/users/netgusto/repos","events_url":"https://api.github.com/users/netgusto/events{/privacy}","received_events_url":"https://api.github.com/users/netgusto/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-14T09:15:33Z","updated_at":"2016-06-23T21:36:01Z","closed_at":"2016-06-23T21:36:01Z","body":"Targeting x86_64-apple-darwin on Linux yields linking errors.\r\n\r\n```\r\nsource.0.o: file not recognized: File format not recognized\r\ncollect2: error: ld returned 1 exit status\r\n```\r\n\r\n**To reproduce :**\r\n\r\nFrom this Docker container: https://gist.github.com/netgusto/77a8faaa8bf348468c7e6193cba529b6\r\n\r\n```bash\r\n$ cd /source\r\n$ rustup target add x86_64-apple-darwin\r\n$ cargo init --bin\r\n$ cargo build --target=x86_64-apple-darwin\r\n\r\n   Compiling source v0.1.0 (file:///source)\r\nerror: linking with `cc` failed: exit code: 1\r\nnote: \"cc\" \"-m64\" \"-L\" \"/root/.multirust/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib\" \"/source/target/x86_64-apple-darwin/debug/source.0.o\" \"-o\" \"/source/target/x86_64-apple-darwin/debug/source\" \"-Wl,-dead_strip\" \"-nodefaultlibs\" \"-L\" \"/source/target/x86_64-apple-darwin/debug\" \"-L\" \"/source/target/x86_64-apple-darwin/debug/deps\" \"-L\" \"/root/.multirust/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib\" \"/root/.multirust/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/libstd-4fda350b.rlib\" \"/root/.multirust/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/libcollections-4fda350b.rlib\" \"/root/.multirust/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/librustc_unicode-4fda350b.rlib\" \"/root/.multirust/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/librand-4fda350b.rlib\" \"/root/.multirust/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/liballoc-4fda350b.rlib\" \"/root/.multirust/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/liballoc_jemalloc-4fda350b.rlib\" \"/root/.multirust/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/liblibc-4fda350b.rlib\" \"/root/.multirust/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/libcore-4fda350b.rlib\" \"-l\" \"System\" \"-l\" \"pthread\" \"-l\" \"c\" \"-l\" \"m\" \"-l\" \"compiler-rt\"\r\nnote: /source/target/x86_64-apple-darwin/debug/source.0.o: file not recognized: File format not recognized\r\ncollect2: error: ld returned 1 exit status\r\n\r\nerror: aborting due to previous error\r\n\r\nCould not compile `source`.\r\n```\r\n\r\nEnvironment:\r\n```\r\n$ uname -a\r\nLinux bd1bb678d87a 4.4.9-moby #1 SMP Tue May 10 10:36:54 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux\r\n$ rustc --version\r\nrustc 1.8.0 (db2939409 2016-04-11)\r\n$ rustup --version\r\nrustup 0.1.12 (c6e430a 2016-05-12)\r\n```"}}
{"actor":{"display_login":"brson"}}