-
Notifications
You must be signed in to change notification settings - Fork 13.3k
C call Rust can not get arguments #118355
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
Comments
Perhaps we can treat this as a bug if you provide a way to reproduce the problem. Can you provide enough code to observe the problem? |
this error is caused by cross compile glibc and musl. |
If you link against musl, you have to use the aarch64-unknown-linux-musl target. |
I know this, but some problems here: #118400 , so I tried to use glibc, most of the programs work. I finally succeed to change to musl today. |
closed |
I have a C program call Rust program by function execve("./rust_test", argv, env).
When I read argv in Rust main function by std::env::args(),
I get this message:
the target: cross compile aarch64-unknown-linux-gnu
The text was updated successfully, but these errors were encountered: