-
Notifications
You must be signed in to change notification settings - Fork 15.6k
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
Compile fails on MacOS Big Sur 11.2.1 (MacBook Pro mid-2015) #8300
Comments
Could you try changing this line: https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/port_def.inc#L599 Try changing that to:
If that works we can make that change in the code-base. |
Worked like a charm. Attached is the make output. Thanks! |
However... now I get a make check error. Please see attached. Should I open a different issue for this?
|
Hmm, have you passed options for extra warnings/errors to the compiler? When I build on Big Sur I do not get these errors/warnings. Our CI tests also build on macOS regularly and don't get these compile errors. |
Nothing self-passed at all. One thing likely different is that I'm using gcc10 compiler from macports, not Apple's. Regardless, the above "make check" error didn't affect my installation - all works just fine. And definitely no errors on "make". All good from my end. Thanks |
seems to be fixed, reopen if not |
I still experience this issue when building protobuf 3.17.1 (via conan) on mac os with gcc11 from homebrew |
Not sure what conan is. What we support is head in this repo. if that still fails with a clean checkout (it didn't for me), let me know. |
Hi, Tried to install from src following C++ installation instruction and received the following error during make (attaching make output here):
protobuf make error.txt
:
google/protobuf/generated_message_util.cc:70:9: error: 'init_priority' attribute is not supported on this platform 70 | fixed_address_empty_string{}; // NOLINT google/protobuf/generated_message_util.cc:90:56: error: 'init_priority' attribute is not supported on this platform 90 | PROTOBUF_ATTRIBUTE_INIT_PRIORITY static std::true_type init_empty_string =
Any help would be appreciated. Thx
The text was updated successfully, but these errors were encountered: