[mpich-discuss] Problem using selection pm slurm

chan at mcs.anl.gov chan at mcs.anl.gov
Mon Jun 7 13:38:19 CDT 2010


Here is the offending lines on mpe2's config.log

configure:3005: checking for C compiler default output file name
configure:3027: /opt/software/intel/Compiler/11.1/059/bin/intel64/icc  -O2 -I/opt/software/slurm/include  -I/home/fernando_luz/software/mpich2-1.2.1p1/src/openpa/src -I/home/fernando_luz/software/mpich2-1.2.1p1/src/openpa/src -DUSE_PROCESS_LOCKS -L/opt/software/slurm/lib  conftest.c  -lpmi   -lpthread   -lrt  >&5
configure:3031: $? = 0
configure:3069: result: a.out
configure:3088: checking whether the C compiler works
configure:3098: ./a.out
./a.out: error while loading shared libraries: libpmi.so.0: cannot open shared object file: No such file or directory
configure:3102: $? = 127
configure:3109: error: in `/home/fernando_luz/software/mpich2-1.2.1p1/src/mpe2':
configure:3113: error: cannot run C compiled programs.

The MPE2's configure is run with these variables set:

ac_cv_env_LDFLAGS_value='-L/opt/software/slurm/lib '
ac_cv_env_LIBS_value=' -lpmi   -lpthread   -lrt '

where -lpmi is appended by src/pmi/slurm which ran a link test to check if -lpmi is there.
Can you check if libpmi.a or libpmi.so* is in /opt/software/slurm/lib or any system libraries ?
If so, can you link a simple program with "-L/opt/software/slurm/lib -lpmi -lpthread -lrt" to see
the program can be run ?

A.Chan



----- "Fernando Luz" <fernando_luz at tpn.usp.br> wrote:

> src/mpe2/config.log attached
> 
> 
> On Mon, 2010-06-07 at 11:43 -0500, Anthony Chan wrote:
> > Not sure why MPE2 think you are doing cross-compile build.
> > Send me the config.log in <mpich2-build-directory>/src/mpe2 ?
> > 
> > ----- "Fernando Luz" <fernando_luz at tpn.usp.br> wrote:
> > 
> > > Hi Chan,
> > > 
> > > I try configure mpich2 without "--host" option, but I received
> the
> > > follow error message
> > > 
> > > checking whether the C compiler works... configure: error: in
> > > `/home/fernando_luz/software/mpich2-1.2.1p1/src/mpe2':
> > > configure: error: cannot run C compiled programs.
> > > If you meant to cross compile, use `--host'.
> > > See `config.log' for more details.
> > > configure: error: Configure of src/mpe2 failed!
> > > 
> > > I attached the config.log and c.txt made in this process.
> > > 
> > > thanks for the reply
> > > 
> > > Fernando Luz
> > > 
> > > 
> > > On Mon, 2010-06-07 at 11:26 -0500, chan at mcs.anl.gov wrote:
> > > > Your c.txt shows that you configured mpich2 with these options:
> > > > 
> > > > '--prefix=/home/fernando_luz/mpich2-install'
> > > 'CC=/opt/software/intel/Compiler/11.1/059/bin/intel64/icc'
> > > > '--host' '--disable-f90' '--enable-cxx' '--with-pm=no' 
> > > > '--with-pmi=slurm' '--with-slurm=/opt/software/slurm'
> > > 'host_alias=--disable-f90'
> > > > 
> > > > Notice you had '--host' and 'host_alias=--disable-f90' which
> causes
> > > > configure to do cross-compilation.  I think it is probably a
> typo
> > > > somewhere in your configure comamnd, remove "--host" and
> > > "host_alias="
> > > > but keep --disable-f90.
> > > > 
> > > > A.Chan
> > > > 
> > > > ----- "Fernando Luz" <fernando_luz at tpn.usp.br> wrote:
> > > > 
> > > > > Hi people,
> > > > > 
> > > > > I try configure mpich2 using the follow options 
> > > > > 
> > > > > ./configure --prefix=/home/fernando_luz/mpich2-install
> > > > > CC=/opt/software/intel/Compiler/11.1/059/bin/intel64/icc
> > > > > --disable-f90
> > > > > --enable-cxx --with-pm=no --with-pmi=slurm
> > > > > --with-slurm=/opt/software/slurm  2>&1 | tee c.txt
> > > > > 
> > > > > And I obtain the follow error message
> > > > > 
> > > > > checking whether the C compiler works... configure: error: in
> > > > > `/home/fernando_luz/software/mpich2-1.2.1p1/src/mpe2':
> > > > > configure: error: cannot run C compiled programs.
> > > > > If you meant to cross compile, use `--host'.
> > > > > See `config.log' for more details.
> > > > > configure: error: Configure of src/mpe2 failed!
> > > > > 
> > > > > Using --host option I received
> > > > > 
> > > > > checking host system type... configure:
> > > > > error: /bin/sh ./../../config.sub --disable-f90 failed
> > > > > configure: WARNING: cache variable ac_cv_host contains a
> newline
> > > > > configure: error: ./configure failed for src/misc
> > > > > configure: error: Configure of src/mpe2 failed!
> > > > > 
> > > > > Without the slurm option, I dont have any problems to
> configure
> > > > > mpich2.
> > > > > I attached the c.txt and config.log.
> > > > > 
> > > > > Thanks in advanced
> > > > > 
> > > > > Fernando Luz
> > > > > 
> > > > > _______________________________________________
> > > > > mpich-discuss mailing list
> > > > > mpich-discuss at mcs.anl.gov
> > > > > https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
> > > > _______________________________________________
> > > > mpich-discuss mailing list
> > > > mpich-discuss at mcs.anl.gov
> > > > https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: text/x-log
Size: 8106 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20100607/b89f7f50/attachment.bin>


More information about the mpich-discuss mailing list