-
Notifications
You must be signed in to change notification settings - Fork 235
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
error: Could not compile curl-sys
due to stack overflow, OS X 10.9
#234
Comments
Thanks for the report! Would you be able to get a stack trace out of rustc? My guess is that it's related to this very long list of method chains but even that shouldn't blow the stack in theory. Could you also try breaking that in half and seeing if it fixes the issue for you? |
You're right, reducing the number of chained calls by at least 24 stops the error (e.g. Lines 74 to 98 in ede3241
(I've included two extra frames to show the overlap) The complete output is at https://pastebin.com/s3ZVA2Ez |
Ok thanks for the stack trace! It looks like this may be rust-lang/rust#55471 upstream, but if you'd like to send a PR in the meantime to break the number of method calls please feel free! |
As I noted in https://github.com/alexcrichton/git2-rs/issues/180, I've since found out I could simply disable the default features of Thanks for the super-quick answer and the pointer to the upstream issue! |
Ok! In that case I'm going to close this issue, and hopefully we'll resolve upstream issue soon too! |
I'm getting an error while building curl-sys >= 0.4.9 (more specifically it seems to be introduced in #225):
Happens both with rustc 1.31.0-nightly (cae6efc37 2018-10-27) and stable rustc 1.30.0 (da5f414c2 2018-10-24)
I took a shot in the dark and tried (after
cargo clean
):-- that worked.
This is on a very old OS X 10.9.5.
The text was updated successfully, but these errors were encountered: