-
Notifications
You must be signed in to change notification settings - Fork 87
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
Build failure MSVC 14 (x86) on Boost 1.68.0 #42
Comments
hmm, i don't have an msvc2015 32bit devenv at hand atm, but could you test:
? |
The same error (out.log). Note that I used the following patch, consistent with the other uses of
|
I've got the same problems with msvc 2015 x86. The problem is that msvc 2015 x86 doesn't support alignment of 8 for function parameters passed on the stack. (AFAIK they're only guaranteed to be aligned at 4-bytes and there's no way to specify parameter-alignment.) |
hmm, i've tested msvc 2017 ia32, which builds fine :/ |
I can also confirm that msvc 2017 x86 (and of course also x64) supports alignment for function parameters.
IMHO removing the alignment request for msvc <= 2015 (x86) would be the best. Just to be complete. msvc 2017 supports alignment for function parameter up to alignas(64) for both x86 and x64. |
i've fixed a few issues of aligned function parameters, but i cannot see in the error message, which function fails to instantiate due to parameter alignment :/ removing alignment hints is not an option here, as it's but does it help to force the use of boost.atomic? |
Yes, switching to boost.atomic (and adding boost namespace to all the memory_order_... solves the problem! |
We had this problem as well using As @tobias-loew did, we've added Are there any hidden caveats to doing that? Thanks |
I found this problem in vs2013, the really reason maybe in files:prefix.hpp and tagged_ptr_ptrcompression.hpp we can change to #if defined(BOOST_ARCH_X86_64) || defined (aarch64) before the include fixes the compiler error for us |
Hi,
After upgrading to Boost 1.68.0, builds using lockfree fail on x86; x64 works.
Compiler version:
On trying to compile the test cases, I get this error (complete log attached):
Could you please have a look on how to fix this issue?
Complete log
The text was updated successfully, but these errors were encountered: