Find the answer to your Linux question:
Results 1 to 5 of 5
Hi all. Today I've upgraded my ubuntu OS to the latest version (Natty narwhal) and it seems that i can't no more run mpicc. Anytime that i run this app ...
  1. #1
    Just Joined!
    Join Date
    May 2011
    Posts
    3

    Problem with MPI under latest Ubuntu version

    Hi all.
    Today I've upgraded my ubuntu OS to the latest version (Natty narwhal) and it seems that i can't no more run mpicc. Anytime that i run this app to compile my .c source file i got this error :

    /usr/bin/ld: cannot find -lcr
    collect2: ld returned 1 exit status

    Before the OS upgrade i got no problem at all! i've tried to reinstall the package and stuff like this but nothing changed..

    Best regards,
    V

    PS: sorry for my bad eng

  2. #2
    Just Joined!
    Join Date
    Jan 2006
    Posts
    6
    Hello,

    The linker (ld), when invoked, looks for libraries of the
    form lib_.so and lib_.a with lib_.so in the same directory.

    By default, it uses the standard directories (/lib, /usr/lib) and
    The contents of the environment variable LDPATH to find such libraries.

    In your case, if the file cr.so cannot be found in either place, you will get the error
    You reported.

    Note: this is somewhat of a simplification, but should give you the knowledge you need to begin troubleshooting yourself.

  3. #3
    Just Joined!
    Join Date
    May 2011
    Posts
    3
    Ty very much for your advices, anyway I managed to bypass the problem running mpicc.openmpi instead of mpicc to compile. Anyway i'll try to solve the problem with mpicc following your instructions .

    Ty again.

  4. #4
    Just Joined!
    Join Date
    May 2011
    Posts
    3
    Ok I've completely solved the problem. It seems that after the update some libs disappeared. So I've looked into synaptic for libcr and I've installed libcr-dev, this solved my problem definitely. Anyway synaptic showed me that I already have the base package libcr0 needed to use apps with the BLCR (otherwise I wouldn't be able to compile and run mpi parallel apps before the OS update).

    The only things that comes to my mind is that during the OS update process some of this libs were marked as obsolete and got deleted.

    Anyway tnx for the help

  5. #5
    Just Joined!
    Join Date
    Sep 2011
    Posts
    1
    Thanks ingvitt!

    This also solved the problem for me too under Ubuntu 11.04. After running:

    sudo apt-get install libcr-dev

    mpicc compiles programs properly again. Looks like the 'cr' in '-lcr' and in 'libcr-dev' stands for checkpoint/restart, and is necessary for stopping and starting groups of related processes with 'the pipes that connect them'. I guess this gets blown out in 11.04, and required re-installation.

    Cheers.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...