<br><br><div class="gmail_quote">On Sun, Apr 1, 2012 at 6:20 AM, David van der Spoel <span dir="ltr">&lt;<a href="mailto:spoel@xray.bmc.uu.se">spoel@xray.bmc.uu.se</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">On 2012-04-01 05:50, Shirts, Michael (mrs5pt) wrote:<br>
&gt; Hi, all-<br>
&gt;<br>
&gt; I&#39;m very recently (with 4.6 updates in the last couple of weeks) having<br>
&gt; issues with building gromacs with threads on OS X.  When I try to compile<br>
&gt; with shared libraries, I get:<br>
&gt;<br>
&gt; ld: warning: in /usr/local/lib/libgomp.dylib, file was built for i386 which<br>
&gt; is not the architecture being linked (x86_64)<br>
&gt;<br>
&gt; When I build without shared libraries, it compiles, but crashes when run<br>
&gt; with -nt more than 1.<br>
&gt;<br>
&gt; Currently using OS X 10.6.8, gcc 4.1.2 to compile.<br>
&gt;<br>
&gt; Everything works fine with 4.5.5, and with earlier versions of 4.6.<br>
&gt;<br>
&gt; Anyone else having similar problems, or know what changes could have caused<br>
&gt; this?<br>
<br>
</div>There is a redmine for this (900).<br></blockquote><div><br></div><div>Michael&#39;s issue is a different because it is gcc 4.1.2 and because it is not a segfault but the linker errorr.</div><div>I&#39;m surprised that you get a linker error. gcc 4.1 doesn&#39;t support OpenMP and if run cmake with gcc 4.1 on Linux I get:</div>

<div>Could NOT find OpenMP (missing: OpenMP_C_FLAGS OpenMP_CXX_FLAGS)</div><div><br></div><div>If you rerun cmake (without a cache), do you still not get any error during cmake?</div><div><br></div><div>BTW: We probably should automatic disable OpenMP if the flags can&#39;t be found (e.g. for clang and gcc &lt;4.2)</div>

<div><br></div><div>Roland</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Your simplest solution is cmake -DGMX_OPENMP:BOOL=OFF<br>
<div class="im"><br>
&gt;<br>
&gt; Thanks!<br>
&gt; ~~~~~~~~~~~~<br>
&gt; Michael Shirts<br>
&gt; Assistant Professor<br>
&gt; Department of Chemical Engineering<br>
&gt; University of Virginia<br>
&gt; <a href="mailto:michael.shirts@virginia.edu">michael.shirts@virginia.edu</a><br>
&gt; <a href="tel:%28434%29-243-1821" value="+14342431821">(434)-243-1821</a><br>
&gt;<br>
<br>
<br>
--<br>
</div>David van der Spoel, Ph.D., Professor of Biology<br>
Dept. of Cell &amp; Molec. Biol., Uppsala University.<br>
Box 596, 75124 Uppsala, Sweden. Phone:  <a href="tel:%2B46184714205" value="+46184714205">+46184714205</a>.<br>
<a href="mailto:spoel@xray.bmc.uu.se">spoel@xray.bmc.uu.se</a>    <a href="http://folding.bmc.uu.se" target="_blank">http://folding.bmc.uu.se</a><br>
<div class="HOEnZb"><div class="h5">--<br>
gmx-developers mailing list<br>
<a href="mailto:gmx-developers@gromacs.org">gmx-developers@gromacs.org</a><br>
<a href="http://lists.gromacs.org/mailman/listinfo/gmx-developers" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-developers</a><br>
Please don&#39;t post (un)subscribe requests to the list. Use the<br>
www interface or send it to <a href="mailto:gmx-developers-request@gromacs.org">gmx-developers-request@gromacs.org</a>.<br>
<br>
<br>
<br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>ORNL/UT Center for Molecular Biophysics <a href="http://cmb.ornl.gov">cmb.ornl.gov</a><br>865-241-1537, ORNL PO BOX 2008 MS6309<br>