Skip to content
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: missing --crate-name argument #110

Open
PureWhiteWu opened this issue Jun 24, 2024 · 4 comments
Open

error: missing --crate-name argument #110

PureWhiteWu opened this issue Jun 24, 2024 · 4 comments

Comments

@PureWhiteWu
Copy link

Encounter the error as title describes when calling:

cargo call-stack --bin my_bin --target x86_64-unknown-linux-gnu

The output is:

error: process didn't exit successfully: `/home/purewhite/.cargo/bin/cargo-call-stack /home/purewhite/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/rustc -vV` (exit status: 1)
--- stderr
error: missing `--crate-name` argument

Does anyone have some ideas about this?

@bauen1
Copy link

bauen1 commented Jul 12, 2024

Appears to have been caused by rust-lang/cargo@8a7ba8f where the initial rustc -vV invocation is now also passed through the wrapper specified by cargo-call-stack.

I made a very rough fix on https://github.com/bauen1/cargo-call-stack/tree/fix-missing-crate-name .

Ideally I'd like to not use the wrapper at all, e.g. something similar to mvertescher@7c38395 , and integrate this tool directly into the build, so the analyzed code is actually the code that will run.

@ANseunghyeon
Copy link

I'm having the same problem, did you manage to solve it?

I would really appreciate it if you could let me know how you solved it.

I've tried several tools that draw callgraphs to analyze prompt-fuzz projects, but most of them don't work.

I ask in a last hope. Thank you.

@PureWhiteWu
Copy link
Author

Sorry, I didn't solve this problem.

@ANseunghyeon
Copy link

Thank you for your quick response. I'll have to look for more tools to draw the call graph 😂😂 Thank you.

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

3 participants