Description
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
Activity
tianhong-1 commentedon Jul 27, 2021
help! me too
fowles commentedon Jul 27, 2021
This is a fairly old release. Does this issue persist on 3.17.x ?
tianhong-1 commentedon Jul 27, 2021
My project needs this version
fowles commentedon Jul 27, 2021
Unfortunately, supporting all old releases on new hardware and new toolchains is not a thing we likely to spend resources on.
tianhong-1 commentedon Jul 27, 2021
tianhong-1 commentedon Jul 27, 2021
./google/protobuf/stubs/atomicops_internals_macosx.h:157:52: error: unknown type name 'Atomic64'; did you mean 'Atomic32'?
inline Atomic64 NoBarrier_AtomicIncrement(volatile Atomic64* ptr,
^~~~~~~~
Atomic32
Does anyone have an idea?
DapengShi commentedon Aug 4, 2021
@xuexuelove
I meet the same question. To resolve it, I have added
#elif defined(__arm64__) #define GOOGLE_PROTOBUF_ARCH_ARM 1 #define GOOGLE_PROTOBUF_ARCH_64_BIT 1
before
#else #error Host architecture was not detected as supported by protobuf
in src/google/protobuf/stubs/platform_macros.h for version 2.5.0
, then I made install successfully. Maybe you can try it.
rangareddy commentedon Jul 20, 2023
Hi @DapengShi
I am able to resolve the issue with your comment. Thank you very much.
vi src/google/protobuf/stubs/platform_macros.h
Add the above code before the following line:
Pradeepshivaram commentedon Apr 2, 2024
Hello @DapengShi
I can install it on the Mac M1 chip with your changes. Thanks a lot.
mrtisttt commentedon Sep 27, 2024
It works. Thanks~