Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Conversation

@jsquyres
Copy link
Member

The libmpi_*.la fortran libraries make some direct calls to libopen-pal.la. In many (most?) cases, having libmpi_* link against libmpi is sufficient (because libmpi pulls in libopen-pal). But when building RPMs on SLES, some compiler/linker flags are used that seem to make this implicit linking not sufficient -- we get missing opal symbols when creating libmpi_mpifh.la. So link in open-pal directly (vs. indirectly), which solves the problem.

(cherry picked from commit open-mpi/ompi@a7f897a)

@miked-mellanox Please review -- this is a PR for open-mpi/ompi#711

The libmpi_*.la fortran libraries make some direct calls to
libopen-pal.la.  In many (most?) cases, having libmpi_* link
against libmpi is sufficient (because libmpi pulls in libopen-pal).
But when building RPMs on SLES, some compiler/linker flags are used
that seem to make this implicit linking not sufficient -- we get
missing opal symbols when creating libmpi_mpifh.la.  So link in
open-pal directly (vs. indirectly), which solves the problem.

(cherry picked from commit open-mpi/ompi@a7f897a)
@jsquyres jsquyres added the bug label Aug 15, 2015
@jsquyres jsquyres added this to the v2.0.0 milestone Aug 15, 2015
Accidentally added a 2nd _LIBADD in a prior commit.  This commit
merges them back into a single _LIBADD.

(cherry picked from commit open-mpi/ompi@e57861b)
@jsquyres
Copy link
Member Author

@ggouaillardet can you comment/review? These are the two comments from master.

@ggouaillardet
Copy link
Contributor

@jsquyres how can i reproduce the initial issue ?
i tried rpmbuild on opensuse 13.2 (with the v2.x branch) but did not face any issue
iirc, the problem was also reported on ubuntu. and i also had no issue with configure/make/make install

@jsquyres
Copy link
Member Author

You'll have to ask @miked-mellanox -- I was never able to replicate the issue. See open-mpi/ompi#610 (that PR started as an email from Mike to me; I turned it into a PR, which is why it looks like the conversation started in the middle).

@hppritcha
Copy link
Member

@jsquyres is this ready to merge?

@jsquyres
Copy link
Member Author

@hppritcha Waiting for @ggouaillardet's review

@ggouaillardet
Copy link
Contributor

:+1 I will try to investigate on sles11sp4 later

@ggouaillardet
Copy link
Contributor

:bot🏷️reviewed

jsquyres added a commit that referenced this pull request Aug 20, 2015
fortran: link the opal-pal.la library directly
@jsquyres jsquyres merged commit 0648247 into open-mpi:v2.x Aug 20, 2015
@jsquyres jsquyres deleted the pr/v2.x-link-opal-to-fortran-libs branch August 20, 2015 13:45
alex-mikheev pushed a commit to alex-mikheev/ompi-release that referenced this pull request Nov 11, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants