-
Notifications
You must be signed in to change notification settings - Fork 254
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
grpcio-sys libabsl_bad_optional_access.a: file too small to be an archive #606
Comments
This error usually due to arch conflict. That is building the library as arm64/x86_64 architect while link it to x86_64/arm64. |
@BusyJay how can i fix it? I tried to build under Rosetta and without it, put |
You may try to use a different terminal/shell that is built for aarch64. |
Unfortunately it didn't help : ( |
@BusyJay any other ideas? I would expect that in any terminal (not under the rosette) on M1 there should not be such assembly problems |
I'm afraid no. The solution I know is making sure all the toolchains like terminal/shell/cmake/compilers including C/C++/Rust are based on the same arch. |
Describe the bug
When I build my project with
grpcio-sys
I get the error:To Reproduce
Just build
grpcio-sys
System information
MacOs Ventura(13.1), M1, rustc 1.66.0, grpcio v0.10.2
I tried to put
arch -arm64
before Cargo, but it didn't help.The text was updated successfully, but these errors were encountered: