[mpich-discuss] Newbie getting started question?

Jed Brown jedbrown at mcs.anl.gov
Fri Sep 14 18:54:02 CDT 2012


On Fri, Sep 14, 2012 at 6:41 PM, John Chludzinski <
john.chludzinski at gmail.com> wrote:

> MPICH2 Version:        1.4.1p1
> MPICH2 Release date:    Thu Sep  1 13:53:02 CDT 2011
> MPICH2 Device:        ch3:nemesis
> MPICH2 configure:     --build=i386-redhat-linux-gnu
> --host=i386-redhat-linux-gnu --program-prefix=
> --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr
> --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc
> --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib
> --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib
> --mandir=/usr/share/man --infodir=/usr/share/info --enable-sharedlibs=gcc
> --enable-shared --enable-lib-depend --disable-rpath


Because of this option, you will need LD_LIBRARY_PATH=/usr/lib/mpich2/lib
to run executables.


> --enable-fc --with-device=ch3:nemesis --with-pm=hydra:gforker
> --sysconfdir=/etc/mpich2-i386 --includedir=/usr/include/mpich2-i386
> --bindir=/usr/lib/mpich2/bin --libdir=/usr/lib/mpich2/lib


According to the output you showed above, this option was either missed or
the distribution packaged it differently on install. What system is this
on? What is the output of

$ ls -l /usr/lib/mpich2/lib

$ mpif90 -show


> --datadir=/usr/share/mpich2 --mandir=/usr/share/man/mpich2
> --docdir=/usr/share/mpich2/doc --htmldir=/usr/share/mpich2/doc
> --with-hwloc-prefix=system --with-java=/etc/alternatives/java_sdk
> FC=gfortran F77=gfortran CFLAGS=-m32 -O2 -fPIC CXXFLAGS=-m32 -O2 -fPIC
> FCFLAGS=-m32 -O2 -fPIC FFLAGS=-m32 -O2 -fPIC LDFLAGS=-Wl,-z,noexecstack
> MPICH2LIB_CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
> -fasynchronous-unwind-tables MPICH2LIB_CXXFLAGS=-O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
> -fasynchronous-unwind-tables MPICH2LIB_FCFLAGS=-O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
> -fasynchronous-unwind-tables MPICH2LIB_FFLAGS=-O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
> -fasynchronous-unwind-tables
> MPICH2 CC:     gcc -m32 -O2 -fPIC -O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4  -m32 -march=i686 -mtune=atom
> -fasynchronous-unwind-tables  -O2
> MPICH2 CXX:     c++ -m32 -O2 -fPIC -O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4  -m32 -march=i686 -mtune=atom
> -fasynchronous-unwind-tables -O2
> MPICH2 F77:     gfortran -m32 -O2 -fPIC -O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4  -m32 -march=i686 -mtune=atom
> -fasynchronous-unwind-tables -O2
> MPICH2 FC:     gfortran -m32 -O2 -fPIC -O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4  -m32 -march=i686 -mtune=atom
> -fasynchronous-unwind-tables -O2
>
>
> On Fri, Sep 14, 2012 at 7:31 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:
>
>> On Fri, Sep 14, 2012 at 6:23 PM, John Chludzinski <
>> john.chludzinski at gmail.com> wrote:
>>
>>> Why is this installation of MPICH2 ("compiler wrapper") trying to
>>> statically link against "mpichf90" and "mpich" ? Versus dynamically link
>>> against the shared object files in the lib directory.
>>>
>>
>> It's not trying to "statically link", it's just trying to link. The
>> correct path is not being specified, but we'd have to see output of
>> mpich2version to say for sure. It's a waste of time to speculate.
>>
>>
>>>
>>> How do I get the compiler wrapper to recognize this ?
>>>
>>> I assume I need to define: LD_LIBRARY_PATH=/usr/lib/mpich2/lib/ ?
>>>
>>
>> This problem comes sooner.
>>
>> _______________________________________________
>> mpich-discuss mailing list     mpich-discuss at mcs.anl.gov
>> To manage subscription options or unsubscribe:
>> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
>>
>>
>
> _______________________________________________
> mpich-discuss mailing list     mpich-discuss at mcs.anl.gov
> To manage subscription options or unsubscribe:
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20120914/0628c451/attachment.html>


More information about the mpich-discuss mailing list