-
Notifications
You must be signed in to change notification settings - Fork 2.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
Abseil CMake build fails on Apple M1 (ARM64) #955
Comments
Looks like the default language version is not what I'd expect it to be:
And from
Huh. |
Note setting |
This may be working as intended. I'm not sure. I don't understand the output of #955 (comment). And it would be nice if Abseil Just Worked w/ the naive |
I don't know if it is feasible to both get this to work with a naive If you are a programmer, due to nature of Abseil, understanding which C++ dialect is being used is pretty fundamental and needs to be a conscious choice. The C++ dialect needs to be consistently set between the libraries being compiled/linked together (unless you really know what you are doing). If the person building Abseil isn't making a conscious choice of C++ dialect, it seems to me that using the default is the only reasonable choice, since the best guess is that everything else is also being built with the default. If you are just a user who needs to install Abseil, you might not know what a C++ dialect is. In that case, we really just want to naive I don't know how to reconcile these issues. |
I think you're probably right about relying on the default. I think a reasonable solution may be to just document how to build and install this on macos. The doc can say that on macOS the user needs to select the C++ language standard to use for reasons, and they can compile with something like
|
Describe the bug
A CMake build of Abseil on my Mac mini M1 fails
Steps to reproduce the bug
IMPORTANT On an Apple M1 machine
cmake -S . - B cmake-out
cmake --build cmake-out
(add-- VERBOSE=1
to see the build command)What version of Abseil are you using?
HEAD=a9831f1cbf93fb18dd951453635f488037454ce9
What operating system and version are you using
What compiler and version are you using?
What build system are you using?
Additional context
This is on a Mac mini M1
The text was updated successfully, but these errors were encountered: