[gmx-developers] Problems building for OS X with threads

David van der Spoel spoel at xray.bmc.uu.se
Sun Apr 1 12:20:44 CEST 2012


On 2012-04-01 05:50, Shirts, Michael (mrs5pt) wrote:
> Hi, all-
>
> I'm very recently (with 4.6 updates in the last couple of weeks) having
> issues with building gromacs with threads on OS X.  When I try to compile
> with shared libraries, I get:
>
> ld: warning: in /usr/local/lib/libgomp.dylib, file was built for i386 which
> is not the architecture being linked (x86_64)
>
> When I build without shared libraries, it compiles, but crashes when run
> with -nt more than 1.
>
> Currently using OS X 10.6.8, gcc 4.1.2 to compile.
>
> Everything works fine with 4.5.5, and with earlier versions of 4.6.
>
> Anyone else having similar problems, or know what changes could have caused
> this?

There is a redmine for this (900).

Your simplest solution is cmake -DGMX_OPENMP:BOOL=OFF

>
> Thanks!
> ~~~~~~~~~~~~
> Michael Shirts
> Assistant Professor
> Department of Chemical Engineering
> University of Virginia
> michael.shirts at virginia.edu
> (434)-243-1821
>


-- 
David van der Spoel, Ph.D., Professor of Biology
Dept. of Cell & Molec. Biol., Uppsala University.
Box 596, 75124 Uppsala, Sweden. Phone:	+46184714205.
spoel at xray.bmc.uu.se    http://folding.bmc.uu.se



More information about the gromacs.org_gmx-developers mailing list