Skip to content

invalid source layout results in (nearly) silent errors #288

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dohzya opened this issue Jul 29, 2014 · 1 comment
Closed

invalid source layout results in (nearly) silent errors #288

dohzya opened this issue Jul 29, 2014 · 1 comment

Comments

@dohzya
Copy link

dohzya commented Jul 29, 2014

I read the doc too fast and didn't see I had to put my sources in src/, so I put them at the root of my dir: it resulted on weird errors.

With nothing else in the directory, this Cargo.toml file resuts in a subcommand failed with signal: 11 error:

[package]

name = "test"

This one results in a subcommand failed with signal: 10 error:

[package]

name = "test"
version = "0.0.1"

For this last tests, I tried to add the [[bin]] section and a main.rs file, same error (subcommand failed with signal: 10):

[package]

name = "test"
version = "0.0.1"

[[bin]]
main = "main.rs"

Just in case:

% sw_vers -productVersion
10.9.4
% cargo --version
cargo-nightly 0.1.0-pre (3e5ba33 2014-07-29 00:14:32 +0000)
% rustc --version
rustc 0.12.0-pre-nightly (b2bd99860 2014-07-28 22:36:39 +0000)

ps: it works like a charm since I put main.rs into src/ and removed the [[bin]] section :-)

@huonw huonw changed the title cargo build is not robust enough invalid source layout results in (nearly) silent errors Jul 29, 2014
@alexcrichton
Copy link
Member

Closing, this is sadly a dupe of rust-lang/rust#15763 (also discovered in #261)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants