Re: run blcr on simics virtutech

From: Paul H. Hargrove (PHHargrove_at_lbl_dot_gov)
Date: Thu Jan 29 2009 - 10:57:56 PST

  • Next message: Paul H. Hargrove: "Re: programming example?"
    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 
    http://mantis.lbl.gov/blcr/doc/html/BLCR_Users_Guide.html ).  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
    > <andrea.autiero@studenti.polito.it> wrote:
    >   
    >> goodmorning
    >> i'm an italian student trying to run your library in one embedded system
    >> (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
    >>
    >>     
    
    
    -- 
    Paul H. Hargrove                          PHHargrove_at_lbl_dot_gov
    Future Technologies Group                 Tel: +1-510-495-2352
    HPC Research Department                   Fax: +1-510-486-6900
    Lawrence Berkeley National Laboratory     
    

  • Next message: Paul H. Hargrove: "Re: programming example?"