[mpich-discuss] mpich 3.0.4 build fails on OS X Mountain lion

Mathieu MORLIGHEM Mathieu.Morlighem at uci.edu
Wed May 15 11:42:27 CDT 2013


Hi Jeff,

thanks for the link, I will try it. Does this mean that I cannot build shared libs?
Also, this workaround is for mpich2, and the compilation with --enable-shared of mpich2 (version 1.5) works well on my machine, I tried it again this morning…

Thanks
Mathieu

On May 15, 2013, at 9:33 AM, Jeff Hammond <jhammond at alcf.anl.gov> wrote:

> I recall that this was addressed a month or two ago on this list but I
> can't find the direct reference.  I can, however, point you to
> https://github.com/mxcl/homebrew/pull/16299, which explains the
> details and how you can work around it.
> 
> Jeff
> 
> On Wed, May 15, 2013 at 11:28 AM, Mathieu MORLIGHEM
> <Mathieu.Morlighem at uci.edu> wrote:
>> Hello,
>> 
>> I am trying to compile mpich 3.0.4 on my machine:
>> 
>> uname -a
>> Darwin shackleton.ess.uci.edu 12.3.0 Darwin Kernel Version 12.3.0: Sun Jan
>> 6 22:37:10 PST 2013; root:xnu-2050.22.13~1/RELEASE_X86_64 x86_64
>> 
>> I successfully installed mpich 1.5 several times with the following options:
>> ./configure --prefix="$ISSM_DIR/externalpackages/mpich2/install"
>> --enable-shared
>> 
>> However, with the same options, the build of mpich 3.0.4 at linking with a
>> segmentation fault:
>> 
>> Making all in .
>> make[3]: Nothing to be done for `all-am'.
>> Making all in .
>>  GEN      lib/libmpich.la
>> collect2: ld terminated with signal 11 [Segmentation fault: 11]
>> make[2]: *** [lib/libmpich.la] Error 1
>> make[1]: *** [all-recursive] Error 1
>> make: *** [all] Error 2
>> 
>> with VERBOSE=1:
>> /bin/sh ./libtool  --tag=F77   --mode=link gfortran  -O2 -L./src/mpl
>> -L./src/openpa/src -version-info 10:4:0 -Wl,-flat_namespace -o
>> lib/libmpich.la -rpath
>> /Users/mmorligh/Desktop/issmuci/trunk-jpl/externalpackages/mpich/install/lib
>> src/mpi/attr/attrutil.lo src/mpi/attr/dup_fn.lo src/mpi/coll/allred_group.lo
>> src/mpi/coll/barrier_group.lo ………… src/mpi_t/.libs/pvar_stop.o
>> src/mpi_t/.libs/pvar_write.o src/binding/f77/.libs/setbot.o
>> src/binding/f77/.libs/setbotf.o
>> -Wl,-force_load,src/mpi/romio/.libs/libromio.a
>> -Wl,-force_load,src/mpi/romio/.libs/libpromio.a  -L./src/mpl
>> -L./src/openpa/src
>> /Users/mmorligh/Desktop/issmuci/trunk-jpl/externalpackages/mpich/src/src/mpl/.libs/libmpl.dylib
>> /Users/mmorligh/Desktop/issmuci/trunk-jpl/externalpackages/mpich/src/src/openpa/src/.libs/libopa.dylib
>> -lpthread  -O2 -Wl,-flat_namespace   -install_name
>> /Users/mmorligh/Desktop/issmuci/trunk-jpl/externalpackages/mpich/install/lib/libmpich.10.dylib
>> -compatibility_version 11 -current_version 11.4 -Wl,-single_module
>> collect2: ld terminated with signal 11 [Segmentation fault: 11]
>> make[2]: *** [lib/libmpich.la] Error 1
>> make[1]: *** [all-recursive] Error 1
>> make: *** [all] Error 2
>> 
>> Has anybody reported a similar issue? Do you think this is a problem with
>> libtool?
>> Thanks a lot for your help
>> 
>> --
>> Mathieu Morlighem
>> 
>> Assistant Project Scientist
>> Department of Earth System Science
>> University of California, Irvine
>> 
>> 
>> _______________________________________________
>> discuss mailing list     discuss at mpich.org
>> To manage subscription options or unsubscribe:
>> https://lists.mpich.org/mailman/listinfo/discuss
> 
> 
> 
> -- 
> Jeff Hammond
> Argonne Leadership Computing Facility
> University of Chicago Computation Institute
> jhammond at alcf.anl.gov / (630) 252-5381
> http://www.linkedin.com/in/jeffhammond
> https://wiki.alcf.anl.gov/parts/index.php/User:Jhammond
> ALCF docs: http://www.alcf.anl.gov/user-guides
> _______________________________________________
> discuss mailing list     discuss at mpich.org
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/discuss
> 




More information about the discuss mailing list