[Pkg-openmpi-maintainers] Bug#502232: Bug#502232: libopenmpi-dev: No static libraries in the package

Dirk Eddelbuettel edd at debian.org
Tue Oct 14 23:25:12 UTC 2008


Gary,

Thanks a lot for actually venturing down this path!  Much appreciated!

On 14 October 2008 at 14:29, Gary Hennigan wrote:
| Dirk Eddelbuettel wrote:
| >  According to FAQ 7 at http://www.open-mpi.org/faq/?category=building
| >  it should be as simple as adding --enable-static to the configure
| >  call to these build.
| >
| >  We then have to look into getting them properly into the package.
| >
| >  We are all a little short of spare time.  Could you possibly venture
| >  into the first point and see if modifying debian/rules accordingly
| >  results in usable static libraries ?
| 
| So I gave it a shot. It seems to *almost* do the right thing. It builds
| the static libraries, and in most cases it also builds the shared libraries,
| but something in the MCA build seems to cause trouble. Briefly reading
| through the ompi/mca/common/sm/Makefile it seems to indicate that it
| can't build both the static and shared libraries simultaneously (my read 
| of the notes
| at the top of the Makefile under "A word of explanation"). The fact that the

Darn. That would contradict the FAQ, and explain why we may have stopped at
some point.

That said, some other packages do the dual build with an intermediate
cleaning step.  But that is more work for us, may introduce new bugs, and
we are still not sure if it is really, really needed.

What you suggest does make sense, I just want to make sure we balance costs
and benefits properly.  Could you for example contemplate using a local
package variant that swapped --enable-shared for --enable-static ?  I mean
that more as a hypothetical question -- but it is worth pondering it.

| shared libraries aren't present, when using "--enable-static" for configure,
| seems to cause problems for dh_install in the dpkg-buildpackage process.
| After the builds are done, via dpkg-buildpackage, the process gets to a
| point where:
| 
| dh_install -s --sourcedir=/usr/local/src/openmpi-1.2.7/debian/openmpi 
| --list-missing
| 
| is executed and it fails with:
| 
| cp: cannot stat 
| `/usr/local/src/openmpi-1.2.7/debian/openmpi/usr/lib/openmpi/lib/libmca_common_sm.so.0.0.0': 
| No such file or directory
| dh_install: command returned error code 256
| make: *** [install-arch] Error 1
| dpkg-buildpackage: failure: debian/rules binary gave error exit status 2

But that's an error at our end we can accomodate. It just needs someone with
spare time and cycles who can try a few builds til it is worked out.

Regards,  Dirk

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






More information about the Pkg-openmpi-maintainers mailing list