Re: run blcr on simics virtutech

From: Andrea Autiero S143785 (
Date: Mon Feb 09 2009 - 00:56:52 PST

  • Next message: Paul H. Hargrove: "Re: run blcr on simics virtutech"
    all right..
    i've compiled blcr with the following options:
    sudo ../configure --host=ppc-linux --prefix=/ppc_blcr/builddir/
    --enable-all-static --enable-static cross_signum=64
    make install DESTDIR=/ppc_blcr/builddir
    then i've compiled my application:
    source /home/andrea/Desktop/programmi_per_tesi/eldk/eldk_init 4xx
    ${CROSS_COMPILE}gcc -o static_2 matrix.c -static -L/ppc/blcr_builddir/lib/
    after that i've put file in ppc_blcr/builddir and my application in the
    filesystem of my virtual ppc on simics
    it start and i initalize the library (trying launch cr_checkpoint --help
    then i launch
    ./static_2 &
    cr_checkpoint pid_of_static_2
    and i see on the screen:
    blcr: retry request on -CR_ENOSUPPORT
    Checkpoint failed: support missing from application
    now what can i do??is it possible to make it work??
    thank you
    andrea autiero
    On Thu, 29 Jan 2009 10:57:56 -0800, "Paul H. Hargrove" <PHHargrove_at_lbl_dot_gov>
    > Andrea,
    >   As Karthik says, you will at least need to configure BLCR 
    > --enable-static to ensure static libraries are built (by default only 
    > shared libs are built).  However, that alone is not sufficient because 
    > the "cr_run" utility only operates on dynamically linked executables.  
    > So, if "my_app" was compiled -static, "cr_run my_app" will not load the 
    > BLCR support into the application regardless of whether the static 
    > libraries have been built.  For the case of a statically linked 
    > executable, one needs to link in BLCR support when the application is 
    > built, rather than at run time via "cr_run".  Please see section "4.2 
    > Making an application checkpointable" in the BLCR Users Guide (in the 
    > doc/html directory of the BLCR distribution, or online at 
    > ).  You 
    > probably want option #2 in that section, and should read the "Cautionary 
    > linker notes" at the end of that section.  If you still have problems, 
    > please let us know and we'll try to help.
    > -Paul
    > Karthik Gopalakrishnan wrote:
    >> Did you configure BLCR with "--enable-static"?
    >> On Thu, Jan 29, 2009 at 5:40 AM, Andrea Autiero S143785
    >> <> wrote:
    >>> goodmorning
    >>> i'm an italian student trying to run your library in one embedded
    >>> (by now is just virtual)
    >>> i'm simuling one ebony board (ppc-4xx) whith 2.6.18 linux kernel on it
    >>> i've cross-compiled the library and it seems to work on the target
    >>> system,
    >>> but i cant launch any application
    >>> linked with the lib
    >>> i must compile the executable with gcc -static and i think i need
    >>> libcr.a
    >>> how i could have it??could you help me?
    >>> running cr_run myapp & and then cr_checpoint doesn't work
    >>> it says to me "missing support from application"
    >>> hope to have one answer and thnak you
    >>> Andrea Autiero
    >>> Politecnico di Torino

  • Next message: Paul H. Hargrove: "Re: run blcr on simics virtutech"