-
Notifications
You must be signed in to change notification settings - Fork 189
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
mac build failure - Unable to determine alignment of C++ type long long - no error text #138
Comments
@matt-cross You are the one who added the CMake magical generation of node sizes in |
…or types with spaces, and also address std lib implementations that wrap value types in some containers in a conatiner type of the same size.
I tried to reproduce this on my Mac and I cannot reproduce the issue. I am using:
From the error it looks like a shell quoting issue. According to CMake docs for add_compile_definition() it should escape the value automatically for the build system; it's not clear to me what could be causing it to fail to escape this in your environment. I am proposing a workaround that passes in type names without spaces on the compiler command line and then has corresponding In testing this, I also found that the std library implementation on MacOS (perhaps just in clang) wraps some container value types in a structure that is not the node type yet has the same size - see https://github.com/llvm/llvm-project/blob/main/libcxx/include/map#L810-L831 . This was causing this code to detect a node type of 0, I added something to handle this issue as well. |
…with spaces, and also address std lib implementations that wrap value types in some containers in a conatiner type of the same size. (#139) Co-authored-by: Matt Cross <mcross@irobot.com>
Merged, let me know if that helps. |
Hi,
While building foonathan memory on mac64 with clang++ compiler , I get fatal error from cmake :
Could you help me on this. Thanks in advance.
The text was updated successfully, but these errors were encountered: