{"action":"opened","issue":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/2054","labels_url":"https://api.github.com/repos/rust-lang/cargo/issues/2054/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/cargo/issues/2054/comments","events_url":"https://api.github.com/repos/rust-lang/cargo/issues/2054/events","html_url":"https://github.com/rust-lang/cargo/issues/2054","id":111157490,"number":2054,"title":"execv: Argument list too long","user":{"login":"arcnmx","id":13426784,"avatar_url":"https://avatars.githubusercontent.com/u/13426784?v=3","gravatar_id":"","url":"https://api.github.com/users/arcnmx","html_url":"https://github.com/arcnmx","followers_url":"https://api.github.com/users/arcnmx/followers","following_url":"https://api.github.com/users/arcnmx/following{/other_user}","gists_url":"https://api.github.com/users/arcnmx/gists{/gist_id}","starred_url":"https://api.github.com/users/arcnmx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arcnmx/subscriptions","organizations_url":"https://api.github.com/users/arcnmx/orgs","repos_url":"https://api.github.com/users/arcnmx/repos","events_url":"https://api.github.com/users/arcnmx/events{/privacy}","received_events_url":"https://api.github.com/users/arcnmx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-13T11:06:21Z","updated_at":"2015-10-13T11:06:21Z","closed_at":null,"body":"Let's say we have a crate with an external native dependency. Its build script outputs `cargo:rustc-flags=-L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out`. Now let's say we have 40 crates in one project with tons of interdependencies that all end up depending on this one common crate.\r\n\r\n> rustc -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out -L native=/tmp/whatever/target/x86_64-unknown-linux-gnu/debug/build/stuffs-0ba7e3ceba953973/out\r\n\r\ngcc: error trying to exec '/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/collect2': execv: Argument list too long"}}