-
Notifications
You must be signed in to change notification settings - Fork 15.7k
ProtoBuf2.5.0 Mac M1 cpu make failed #8836
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
help! me too |
This is a fairly old release. Does this issue persist on 3.17.x ? |
My project needs this version |
Unfortunately, supporting all old releases on new hardware and new toolchains is not a thing we likely to spend resources on. |
|
./google/protobuf/stubs/atomicops_internals_macosx.h:157:52: error: unknown type name 'Atomic64'; did you mean 'Atomic32'? Does anyone have an idea? |
@xuexuelove |
Hi @DapengShi I am able to resolve the issue with your comment. Thank you very much.
#elif defined(__arm64__)
#define GOOGLE_PROTOBUF_ARCH_ARM 1
#define GOOGLE_PROTOBUF_ARCH_64_BIT 1 Add the above code before the following line: #else
#error Host architecture was not detected as supported by protobuf
#endif ![]() |
Hello @DapengShi I can install it on the Mac M1 chip with your changes. Thanks a lot. |
It works. Thanks~ |
What version of protobuf and what language are you using?
Version: v2.5.0
Language: C++
What operating system (Linux, Windows, ...) and version?
macOS Big Sur 11.5 (20G71)
What runtime / compiler are you using (e.g., python version or gcc version)
Apple clang version 12.0.5 (clang-1205.0.22.11)
What did you do?
Steps to reproduce the behavior:
./configure
sudo make && make install
What did you see instead?
fatal error: too many errors emitted, stopping now [-ferror-limit=]
9 warnings and 20 errors generated.
make[2]: *** [atomicops_internals_x86_gcc.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).
Anything else we should know about your project / environment
The text was updated successfully, but these errors were encountered: