[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost-build
Subject:    [Boost-build] Problem with pragma intrinsic(_InterlockedCompareExchange)
From:       Adam Beneschan <adambeneschan () gmail ! com>
Date:       2014-08-19 4:44:55
Message-ID: CAEnxzrCQeCp6MAQGy6MnHwg=FpBh7AWOrRyF=8sRPahYk+48pw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I'm not an old hand at building Boost (I did install 1.55 on a different
machine), so sorry if this is a trivial question.

I'm trying to build 1.56 on a Windows 8 system, using mingw and gcc.

bootstrap.bat mingw
b2 toolset=gcc --build-type=complete stage

This results in a number of occurrences of this message:

./boost/thread/win32/thread_primitives.hpp:180:0: warning: ignoring #pragma
intrinsic  [-Wunknown-pragmas]
 #pragma intrinsic(_InterlockedCompareExchange)

I can't link any program that needs -lboost_thread; it complains about
undefined references to _InterlockedCompareExchange.

Is this just a matter of adding __stdcall to the declaration of
_InterlockedCompareExchange in thread_primitives.hpp, or is a different fix
needed?

Assuming I either fix the source myself or get a patch, how would I rebuild
without rebuilding all of Boost from scratch?  Sorry if this seems like a
dumb question, but so far I've just followed instructions without really
knowing anything about b2, and I'm hoping not to have to do another
four-and-a-half-hour build.

Thanks,
Adam

[Attachment #5 (text/html)]

<div dir="ltr">I&#39;m not an old hand at building Boost (I did install 1.55 on a \
different machine), so sorry if this is a trivial \
question.<div><br></div><div>I&#39;m trying to build 1.56 on a Windows 8 system, \
using mingw and gcc.</div> <div><br></div><div>bootstrap.bat mingw</div><div>b2 \
toolset=gcc --build-type=complete stage</div><div><br></div><div>This results in a \
number of occurrences of this \
message:</div><div><br></div><div><div>./boost/thread/win32/thread_primitives.hpp:180:0: \
warning: ignoring #pragma intrinsic   [-Wunknown-pragmas]</div> <div>  #pragma \
intrinsic(_InterlockedCompareExchange)</div></div><div><br></div><div>I can&#39;t \
link any program that needs -lboost_thread; it complains about undefined references \
to _InterlockedCompareExchange.</div><div> <br></div><div>Is this just a matter of \
adding __stdcall to the declaration of _InterlockedCompareExchange in \
thread_primitives.hpp, or is a different fix \
needed?</div><div><br></div><div>Assuming I either fix the source myself or get a \
patch, how would I rebuild without rebuilding all of Boost from scratch?   Sorry if \
this seems like a dumb question, but so far I&#39;ve just followed instructions \
without really knowing anything about b2, and I&#39;m hoping not to have to do \
another four-and-a-half-hour build.</div> \
<div><br></div><div>Thanks,</div><div>Adam</div></div>



_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic