<br><br><div class="gmail_quote">On Sun, Apr 1, 2012 at 6:20 AM, David van der Spoel <span dir="ltr"><<a href="mailto:spoel@xray.bmc.uu.se">spoel@xray.bmc.uu.se</a>></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>
> Hi, all-<br>
><br>
> I'm very recently (with 4.6 updates in the last couple of weeks) having<br>
> issues with building gromacs with threads on OS X. When I try to compile<br>
> with shared libraries, I get:<br>
><br>
> ld: warning: in /usr/local/lib/libgomp.dylib, file was built for i386 which<br>
> is not the architecture being linked (x86_64)<br>
><br>
> When I build without shared libraries, it compiles, but crashes when run<br>
> with -nt more than 1.<br>
><br>
> Currently using OS X 10.6.8, gcc 4.1.2 to compile.<br>
><br>
> Everything works fine with 4.5.5, and with earlier versions of 4.6.<br>
><br>
> Anyone else having similar problems, or know what changes could have caused<br>
> this?<br>
<br>
</div>There is a redmine for this (900).<br></blockquote><div><br></div><div>Michael'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'm surprised that you get a linker error. gcc 4.1 doesn'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't be found (e.g. for clang and gcc <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>
><br>
> Thanks!<br>
> ~~~~~~~~~~~~<br>
> Michael Shirts<br>
> Assistant Professor<br>
> Department of Chemical Engineering<br>
> University of Virginia<br>
> <a href="mailto:michael.shirts@virginia.edu">michael.shirts@virginia.edu</a><br>
> <a href="tel:%28434%29-243-1821" value="+14342431821">(434)-243-1821</a><br>
><br>
<br>
<br>
--<br>
</div>David van der Spoel, Ph.D., Professor of Biology<br>
Dept. of Cell & 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'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>