[Pkg-openmpi-maintainers] Bug#464795: Bug#464795: Bug#464795: dead symlink in /usr/lib/libmpi.so

Dirk Eddelbuettel edd at debian.org
Wed Feb 13 20:43:06 UTC 2008


(Resending, this time with Cc to the BTS)

On 13 February 2008 at 19:01, Ondrej Certik wrote:
| On Feb 13, 2008 6:50 PM, Ondrej Certik <ondrej at certik.cz> wrote:
| > On Feb 12, 2008 5:12 AM, Dirk Eddelbuettel <edd at debian.org> wrote:
| > >
| > > On 8 February 2008 at 19:22, Dirk Eddelbuettel wrote:
| > > |
| > > | On 9 February 2008 at 02:01, Ondrej Certik wrote:
| > > | | Package: libopenmpi-dev
| > > | | Version: 1.2.5-1
| > > | | Severity: normal
| > > | |
| > > | | --- Please enter the report below this line. ---
| > > | |
| > > | | Hi,
| > > | |
| > > | | there seems to be a dead symlink in:
| > > | |
| > > | | $ ll /usr/lib/libmpi.so
| > > | | lrwxrwxrwx 1 root root 27 2008-02-09 01:56 /usr/lib/libmpi.so -> /etc/alternatives/libmpi.so
| > > | |
| > > | | It's on all of my computers. Some misconfiguration of update-alternatives on my side?
| > > |
| > > | Possibly so.  All well here:
| > > |
| > > | edd at ron:~> ls -l /usr/lib/libmpi.so /etc/alternatives/libmpi.so
| > > | lrwxrwxrwx 1 root root 32 2008-01-20 19:42 /etc/alternatives/libmpi.so -> /usr/lib/openmpi/lib/libmpi.so.0
| > > | lrwxrwxrwx 1 root root 27 2007-12-18 21:02 /usr/lib/libmpi.so -> /etc/alternatives/libmpi.so
| > > | edd at ron:~>
| > > |
| > > | and evidently on buildds using Open MPI.  So please demonstrate how/why a
| > > | stray file on your system is/was caused by Open Mpi -- else I'll have to
| > > | close this for lack of any discernible evidence.
| > >
| > > As you didn't report anything reproducible, I am closing this.
| >
| > I did, see:
| >
| > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=464795#15
| >
| > Maybe the message ended up in your spam folder. I think this bug is not fixed.
| 
| Here is also a session in cowbuilder, that reproduces this problem:
| 
| ondra at fuji:~$ sudo cowbuilder --login
|  -> Copying COW directory
|  -> Invoking pbuilder
| W: /home/ondra/.pbuilderrc does not exist
|  -> Running in no-targz mode
|  -> copying local configuration
|  -> mounting /proc filesystem
|  -> mounting /dev/pts filesystem
|  -> policy-rc.d already exists
| Obtaining the cached apt archive contents
|  -> entering the shell
| root at fuji:/# apt-get install openmpi-common
| Reading package lists... Done
| Building dependency tree
| Reading state information... Done
| The following NEW packages will be installed:
|   openmpi-common
| 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
| Need to get 48.1kB of archives.
| After this operation, 233kB of additional disk space will be used.
| Get:1 http://ftp.cz.debian.org sid/main openmpi-common 1.2.5-1 [48.1kB]
| Fetched 48.1kB in 0s (318kB/s)
| debconf: delaying package configuration, since apt-utils is not installed
| Selecting previously deselected package openmpi-common.
| (Reading database ... 10121 files and directories currently installed.)
| Unpacking openmpi-common (from .../openmpi-common_1.2.5-1_all.deb) ...
| Setting up openmpi-common (1.2.5-1) ...
| root at fuji:/# apt-get install libopenmpi1
| Reading package lists... Done
| Building dependency tree
| Reading state information... Done
| The following extra packages will be installed:
|   adduser libgfortran2 libibverbs1
| The following NEW packages will be installed:
|   adduser libgfortran2 libibverbs1 libopenmpi1
| 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
| Need to get 1258kB/1465kB of archives.
| After this operation, 4792kB of additional disk space will be used.
| Do you want to continue [Y/n]?
| Get:1 http://ftp.cz.debian.org sid/main libgfortran2 4.2.3-1 [197kB]
| Get:2 http://ftp.cz.debian.org sid/main libopenmpi1 1.2.5-1 [1061kB]
| Fetched 1258kB in 2s (441kB/s)
| debconf: delaying package configuration, since apt-utils is not installed
| Selecting previously deselected package adduser.
| (Reading database ... 10172 files and directories currently installed.)
| Unpacking adduser (from .../archives/adduser_3.105_all.deb) ...
| Selecting previously deselected package libgfortran2.
| Unpacking libgfortran2 (from .../libgfortran2_4.2.3-1_i386.deb) ...
| Selecting previously deselected package libibverbs1.
| Unpacking libibverbs1 (from .../libibverbs1_1.1.1-1_i386.deb) ...
| Selecting previously deselected package libopenmpi1.
| Unpacking libopenmpi1 (from .../libopenmpi1_1.2.5-1_i386.deb) ...
| Setting up adduser (3.105) ...
| Setting up libgfortran2 (4.2.3-1) ...
| Setting up libibverbs1 (1.1.1-1) ...
| Setting up libopenmpi1 (1.2.5-1) ...
| root at fuji:/# apt-get install libopenmpi-dev
| Reading package lists... Done
| Building dependency tree
| Reading state information... Done
| The following NEW packages will be installed:
|   libopenmpi-dev
| 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
| Need to get 447kB of archives.
| After this operation, 3281kB of additional disk space will be used.
| Get:1 http://ftp.cz.debian.org sid/main libopenmpi-dev 1.2.5-1 [447kB]
| Fetched 447kB in 1s (386kB/s)
| debconf: delaying package configuration, since apt-utils is not installed
| Selecting previously deselected package libopenmpi-dev.
| (Reading database ... 10353 files and directories currently installed.)
| Unpacking libopenmpi-dev (from .../libopenmpi-dev_1.2.5-1_i386.deb) ...
| Setting up libopenmpi-dev (1.2.5-1) ...
| root at fuji:/# ls /usr/lib/libmpi.so
| /usr/lib/libmpi.so
| root at fuji:/# ls -l /usr/lib/libmpi.so
| lrwxrwxrwx 1 root root 27 Feb 13 17:56 /usr/lib/libmpi.so ->
| /etc/alternatives/libmpi.so
| root at fuji:/# ls -l /etc/alternatives/libmpi.so
| lrwxrwxrwx 1 root root 32 Feb 13 17:56 /etc/alternatives/libmpi.so ->
| /usr/lib/openmpi/lib/libmpi.so.0
| root at fuji:/# ls -l /usr/lib/openmpi/lib/libmpi.so.0
| ls: cannot access /usr/lib/openmpi/lib/libmpi.so.0: No such file or directory
| 
| 
| 
| Please feel free to ask for more info. Are you able to reproduce it?
| If it's a bug in update-alternatives, it may well be
| that it happens in cowbuilder for me, but not for you. But I suggest
| to reopen this bug until we find the real cause of the problem.

Thanks for sending this.  This was what I had in mind.  Now the funny part is
that IT WORKS on my pbuilder:

ron:/# apt-get install libopenmpi1-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package libopenmpi1-dev
ron:/# apt-get install libopenmpi-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  adduser libibverbs1 libopenmpi1 openmpi-common
The following NEW packages will be installed:
  adduser libibverbs1 libopenmpi-dev libopenmpi1 openmpi-common
0 upgraded, 5 newly installed, 0 to remove and 29 not upgraded.
Need to get 1763kB of archives.
After this operation, 7688kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ron unstable/main adduser 3.105 [174kB]
Get:2 http://ron unstable/main libibverbs1 1.1.1-1 [33.2kB]
Get:3 http://ron unstable/main libopenmpi1 1.2.5-1 [1061kB]
Get:4 http://ron unstable/main openmpi-common 1.2.5-1 [48.1kB]
Get:5 http://ron unstable/main libopenmpi-dev 1.2.5-1 [447kB]
Fetched 1763kB in 3s (456kB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
debconf: delaying package configuration, since apt-utils is not installed
Can not write log, openpty() failed (/dev/pts not mounted?)
Selecting previously deselected package adduser.
(Reading database ... 66423 files and directories currently installed.)
Unpacking adduser (from .../archives/adduser_3.105_all.deb) ...
Selecting previously deselected package libibverbs1.
Unpacking libibverbs1 (from .../libibverbs1_1.1.1-1_i386.deb) ...
Selecting previously deselected package libopenmpi1.
Unpacking libopenmpi1 (from .../libopenmpi1_1.2.5-1_i386.deb) ...
Selecting previously deselected package openmpi-common.
Unpacking openmpi-common (from .../openmpi-common_1.2.5-1_all.deb) ...
Selecting previously deselected package libopenmpi-dev.
Unpacking libopenmpi-dev (from .../libopenmpi-dev_1.2.5-1_i386.deb) ...
Can not write log, openpty() failed (/dev/pts not mounted?)
Setting up adduser (3.105) ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up libibverbs1 (1.1.1-1) ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Setting up libopenmpi1 (1.2.5-1) ...
Setting up openmpi-common (1.2.5-1) ...
Setting up libopenmpi-dev (1.2.5-1) ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
ron:/# ls -l /usr/lib/libop
libopcodes-2.18.0.20080103.so  libopen-pal.so.0.0.0
libopen-rte.so.0.0.0           libopencdk.so.8
libopen-pal.so                 libopen-rte.so
libopencdk.so.10               libopencdk.so.8.1.0
libopen-pal.so.0               libopen-rte.so.0
libopencdk.so.10.0.6
ron:/# ls -l /usr/lib/libmpi.so*
lrwxrwxrwx 1 root root 27 Feb 13 20:34 /usr/lib/libmpi.so ->
/etc/alternatives/libmpi.so
lrwxrwxrwx 1 root root 15 Feb 13 20:34 /usr/lib/libmpi.so.0 ->
libmpi.so.0.0.0
lrwxrwxrwx 1 root root 27 Feb 13 20:34 /usr/lib/libmpi.so.0.0.0 ->
openmpi/lib/libmpi.so.0.0.0
ron:/# ls -l /usr/lib/libmpi.so* /etc/alternatives/libmpi.so
lrwxrwxrwx 1 root root 32 Feb 13 20:34 /etc/alternatives/libmpi.so ->
/usr/lib/openmpi/lib/libmpi.so.0
lrwxrwxrwx 1 root root 27 Feb 13 20:34 /usr/lib/libmpi.so ->
/etc/alternatives/libmpi.so
lrwxrwxrwx 1 root root 15 Feb 13 20:34 /usr/lib/libmpi.so.0 ->
libmpi.so.0.0.0
lrwxrwxrwx 1 root root 27 Feb 13 20:34 /usr/lib/libmpi.so.0.0.0 ->
openmpi/lib/libmpi.so.0.0.0
ron:/# ls -l /usr/lib/libmpi.so* /etc/alternatives/libmpi.so
/usr/lib/openmpi/lib/libmpi.so
lrwxrwxrwx 1 root root 32 Feb 13 20:34 /etc/alternatives/libmpi.so ->
/usr/lib/openmpi/lib/libmpi.so.0
lrwxrwxrwx 1 root root 27 Feb 13 20:34 /usr/lib/libmpi.so ->
/etc/alternatives/libmpi.so
lrwxrwxrwx 1 root root 15 Feb 13 20:34 /usr/lib/libmpi.so.0 ->
libmpi.so.0.0.0
lrwxrwxrwx 1 root root 27 Feb 13 20:34 /usr/lib/libmpi.so.0.0.0 ->
openmpi/lib/libmpi.so.0.0.0
lrwxrwxrwx 1 root root 15 Feb 13 20:34 /usr/lib/openmpi/lib/libmpi.so ->
libmpi.so.0.0.0
ron:/#    

(Sorry for the line-wrapping)

Is there a chance than some of the pieces in your cowbuilder are dated or
something similar?

We would now have to trek down in your cowbuilder exactly why the sequence of
steps from the postinst does not lead to correctly set softlinks if it does
here.  Could you possibly try to execute those commands by hand? The postinst
for package $foo is always /var/lib/dpkg/info/$foo.postinst.

Thanks, Dirk

| 
| Ondrej

-- 
Three out of two people have difficulties with fractions.






More information about the Pkg-openmpi-maintainers mailing list