Boost C++ Libraries: Ticket #10625: Compilation with nvcc produces error: unknown asm constraint modifier ',' https://svn.boost.org/trac10/ticket/10625 <p> Compilation produces a lot of errors and warning: Example: .../atomic/detail/gcc-x86.hpp(1286): error: unknown asm constraint modifier ',' </p> <p> <strong>Version of boost:</strong> 1.55 </p> <p> <strong>Code:</strong> </p> <pre class="wiki"> //std #include &lt;iostream&gt; #include &lt;exception&gt; //boost #include "boost/thread.hpp" int main(int argc,char **argv) { return 0; } </pre><p> <em>Compiler parametes:</em> </p> <p> nvcc test.cu -o test -O3 -arch=sm_30 -I. -I/usr/local/cuda/include -I/usr/local/boost/include -L/usr/local/cuda/lib64 -L/usr/local/boost/lib/ </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10625 Trac 1.4.3 Mikhail Farkov <mihail.fakov@…> Tue, 07 Oct 2014 07:09:12 GMT attachment set https://svn.boost.org/trac10/ticket/10625 https://svn.boost.org/trac10/ticket/10625 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">nvcc_out.txt</span> </li> </ul> Ticket Andrey Semashev Sat, 20 Dec 2014 13:39:37 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/10625#comment:1 https://svn.boost.org/trac10/ticket/10625#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Boost.Atomic has been largely rewritten since 1.55, but I added some workarounds to the code that is similar to 1.55 (see <a class="ext-link" href="https://github.com/boostorg/atomic/commit/fcff86225ec6494f45868cb1a5a95f5ed3275764"><span class="icon">​</span>https://github.com/boostorg/atomic/commit/fcff86225ec6494f45868cb1a5a95f5ed3275764</a>). I don't have nvcc to test, so I'm not sure the new code compiles and works with it. I'm closing the ticket for now - feel free to reopen it if the latest code still doesn't work. </p> Ticket