[FLASH-BUGS] [FLASH-USERS] Fwd: Error in try compile FLASH3.3. Lib -lcr not found. What is the name of this library, and what package she it belong ?
Chris Daley
cdaley at flash.uchicago.edu
Thu Mar 3 11:57:48 CST 2011
Varlei Everton Menconi wrote:
>
> Brazil, São José dos Campos, February, 23, 2011.
>
>
> Dears friends,
>
> I need help this forum.
>
> I'm not able to compile the Flash3.
>
> The scripts mpicc.mpich2, mpicxx.mpich2 and mpif90.mpich2 include the
> line below
> where they called the library -lcr.
>
> # LIBS="-lopa -lmpl -lrt -lcr -lpthread "
>
> The ld command return with error -lcr not found.
>
> What is the name of this library, and what package she it belong ?
> How to compile the package ?
>
> I need help.
>
> Thanks All Regards
>
> Varlei Everton Menconi
> varlei at dge.inpe.br
>
> -------------------------------------------------
> This mail sent through IMP: http://horde.org/imp/
>
Hi Varlei,
I do not think that this is a problem related to FLASH. I think that
you would be missing the same library dependency even in a simple MPI
hello world program.
It looks like libcr is a library that is part of the Berkeley Lab
Checkpoint/Restart package
(https://ftg.lbl.gov/CheckpointRestart/CheckpointRestart.shtml). I
have zero experience with this package, but it is probably a
dependency of mpich2 because you (or your sysadmin) have configured
mpich2 with the --with-blcr=path option. The following text from the
README file in mpich2 package should be helpful:
"Checkpoint and Restart
----------------------
MPICH2 supports checkpointing and restart fault-tolerance using BLCR.
CONFIGURATION
First, you need to have BLCR version 0.8.2 or later installed on your
machine. If it's installed in the default system location, add the
following two options to your configure command:
--enable-checkpointing
--with-hydra-ckpointlib=blcr
If BLCR is not installed in the default system location, you'll need
to tell MPICH2's configure where to find it. You might also need to
set the LD_LIBRARY_PATH environment variable so that BLCR's shared
libraries can be found. In this case add the following options to
your configure command:
--enable-checkpointing
--with-hydra-ckpointlib=blcr
--with-blcr=<BLCR_INSTALL_DIR>
LD_LIBRARY_PATH=<BLCR_INSTALL_DIR>/lib
where <BLCR_INSTALL_DIR> is the directory where BLCR has been
installed (whatever was specified in --prefix when BLCR was
configured).
After it's configured compile as usual (e.g., make; make install).
Note, checkpointing is only supported with the Hydra process manager.
VERIFYING CHECKPOINTING SUPPORT
Make sure MPICH2 is correctly configured with BLCR. You can do this
using:
mpiexec -info
This should display 'BLCR' under 'Checkpointing libraries available'."
Chris
More information about the flash-bugs
mailing list