<br><br><div class="gmail_quote">On Sun, Apr 1, 2012 at 9:09 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 15:05, Roland Schulz wrote:<br>
&gt;<br>
&gt;<br>
&gt; On Sun, Apr 1, 2012 at 6:20 AM, David van der Spoel<br>
</div><div><div class="h5">&gt; &lt;<a href="mailto:spoel@xray.bmc.uu.se">spoel@xray.bmc.uu.se</a> &lt;mailto:<a href="mailto:spoel@xray.bmc.uu.se">spoel@xray.bmc.uu.se</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     On 2012-04-01 05:50, Shirts, Michael (mrs5pt) wrote:<br>
&gt;      &gt; Hi, all-<br>
&gt;      &gt;<br>
&gt;      &gt; I&#39;m very recently (with 4.6 updates in the last couple of weeks)<br>
&gt;     having<br>
&gt;      &gt; issues with building gromacs with threads on OS X.  When I try to<br>
&gt;     compile<br>
&gt;      &gt; with shared libraries, I get:<br>
&gt;      &gt;<br>
&gt;      &gt; ld: warning: in /usr/local/lib/libgomp.dylib, file was built for<br>
&gt;     i386 which<br>
&gt;      &gt; is not the architecture being linked (x86_64)<br>
&gt;      &gt;<br>
&gt;      &gt; When I build without shared libraries, it compiles, but crashes<br>
&gt;     when run<br>
&gt;      &gt; with -nt more than 1.<br>
&gt;      &gt;<br>
&gt;      &gt; Currently using OS X 10.6.8, gcc 4.1.2 to compile.<br>
&gt;      &gt;<br>
&gt;      &gt; Everything works fine with 4.5.5, and with earlier versions of 4.6.<br>
&gt;      &gt;<br>
&gt;      &gt; Anyone else having similar problems, or know what changes could<br>
&gt;     have caused<br>
&gt;      &gt; this?<br>
&gt;<br>
&gt;     There is a redmine for this (900).<br>
&gt;<br>
&gt;<br>
&gt; Michael&#39;s issue is a different because it is gcc 4.1.2 and because it is<br>
&gt; not a segfault but the linker errorr.<br>
&gt; I&#39;m surprised that you get a linker error. gcc 4.1 doesn&#39;t support<br>
&gt; OpenMP and if run cmake with gcc 4.1 on Linux I get:<br>
&gt; Could NOT find OpenMP (missing: OpenMP_C_FLAGS OpenMP_CXX_FLAGS)<br>
<br>
</div></div>He does mention a crash with -nt &gt; 1, and it is only recently, he also<br>
links to libgomp, so it must be the same error.<br></blockquote><div><br></div><div>True. I overlooked that part. Yes that part is the same. I&#39;m still puzzled why cmake doesn&#39;t detect that gcc 4.1 doesn&#39;t have OpenMP. </div>

<div>@Michael: Or was your compiler version a typo and you are also using gcc 4.2?</div><div><br></div><div>Roland</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div class="im"><br>
&gt;<br>
&gt; If you rerun cmake (without a cache), do you still not get any error<br>
&gt; during cmake?<br>
&gt;<br>
&gt; BTW: We probably should automatic disable OpenMP if the flags can&#39;t be<br>
&gt; found (e.g. for clang and gcc &lt;4.2)<br>
<br>
</div>At least on Macs for now.<br>
<div class="im"><br>
&gt;<br>
&gt; Roland<br>
&gt;<br>
&gt;<br>
&gt;     Your simplest solution is cmake -DGMX_OPENMP:BOOL=OFF<br>
&gt;<br>
&gt;      &gt;<br>
&gt;      &gt; Thanks!<br>
&gt;      &gt; ~~~~~~~~~~~~<br>
&gt;      &gt; Michael Shirts<br>
&gt;      &gt; Assistant Professor<br>
&gt;      &gt; Department of Chemical Engineering<br>
&gt;      &gt; University of Virginia<br>
</div>&gt;      &gt; <a href="mailto:michael.shirts@virginia.edu">michael.shirts@virginia.edu</a> &lt;mailto:<a href="mailto:michael.shirts@virginia.edu">michael.shirts@virginia.edu</a>&gt;<br>
&gt;      &gt; <a href="tel:%28434%29-243-1821" value="+14342431821">(434)-243-1821</a> &lt;tel:%28434%29-243-1821&gt;<br>
<div class="im">&gt;      &gt;<br>
&gt;<br>
&gt;<br>
&gt;     --<br>
&gt;     David van der Spoel, Ph.D., Professor of Biology<br>
&gt;     Dept. of Cell &amp; Molec. Biol., Uppsala University.<br>
&gt;     Box 596, 75124 Uppsala, Sweden. Phone: <a href="tel:%2B46184714205" value="+46184714205">+46184714205</a><br>
</div>&gt;     &lt;tel:%2B46184714205&gt;.<br>
&gt;     <a href="mailto:spoel@xray.bmc.uu.se">spoel@xray.bmc.uu.se</a> &lt;mailto:<a href="mailto:spoel@xray.bmc.uu.se">spoel@xray.bmc.uu.se</a>&gt;<br>
<div class="im">&gt;     <a href="http://folding.bmc.uu.se" target="_blank">http://folding.bmc.uu.se</a><br>
&gt;     --<br>
&gt;     gmx-developers mailing list<br>
</div>&gt;     <a href="mailto:gmx-developers@gromacs.org">gmx-developers@gromacs.org</a> &lt;mailto:<a href="mailto:gmx-developers@gromacs.org">gmx-developers@gromacs.org</a>&gt;<br>
<div class="im">&gt;     <a href="http://lists.gromacs.org/mailman/listinfo/gmx-developers" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-developers</a><br>
&gt;     Please don&#39;t post (un)subscribe requests to the list. Use the<br>
&gt;     www interface or send it to <a href="mailto:gmx-developers-request@gromacs.org">gmx-developers-request@gromacs.org</a><br>
</div>&gt;     &lt;mailto:<a href="mailto:gmx-developers-request@gromacs.org">gmx-developers-request@gromacs.org</a>&gt;.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
<span class="HOEnZb"><font color="#888888">&gt;<br>
&gt; --<br>
&gt; ORNL/UT Center for Molecular Biophysics <a href="http://cmb.ornl.gov" target="_blank">cmb.ornl.gov</a> &lt;<a href="http://cmb.ornl.gov" target="_blank">http://cmb.ornl.gov</a>&gt;<br>
</font></span><div class="im HOEnZb">&gt; <a href="tel:865-241-1537" value="+18652411537">865-241-1537</a>, ORNL PO BOX 2008 MS6309<br>
&gt;<br>
&gt;<br>
<br>
<br>
</div><div class="HOEnZb"><div class="h5">--<br>
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>
--<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>