Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 313045 - missing linker args in Makefile.in for sys-cluster/mpich2-1.2.1_p1
Summary: missing linker args in Makefile.in for sys-cluster/mpich2-1.2.1_p1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Justin Bronder (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-04 00:10 UTC by Steve Arnold
Modified: 2010-08-05 04:03 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Makefile.in patch for shared lib missing linker args (0004-Makefile.in.patch,1.23 KB, patch)
2010-04-04 00:12 UTC, Steve Arnold
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Arnold archtester gentoo-dev 2010-04-04 00:10:22 UTC
Looks like the upstream fixes only worked for the C and Fortran libs, but they forgot the F90 and C++ libs.  The end result is incorrect linkage for both, with the C++ lib causing link errors with other packages.

The attached patch fixes the linkage problems with the above shared libs, and is very minimal compared to the old shared lib patch so should not cause any problems.  Note that any currently installed instances of mpich2 with USE=cxx have a broken libmpichcxx.so (which is a latent error that will probably cause build failures in packages linking against libmpi*).
Comment 1 Steve Arnold archtester gentoo-dev 2010-04-04 00:12:07 UTC
Created attachment 226489 [details, diff]
Makefile.in patch for shared lib missing linker args

Updated shared lib patch for current ~arch version.
Comment 2 Justin Bronder (RETIRED) gentoo-dev 2010-04-05 19:35:43 UTC
Thanks.

Did this get sent upstream (so I can put a link next to the epatch line)?
Comment 3 Justin Bronder (RETIRED) gentoo-dev 2010-06-17 02:58:33 UTC
Right, so using mpich2 with c++ or f90 works fine for me as documented.  Can you please either send this upstream or at least provide me with a test case so that I can send it for you?
Comment 4 Justin Bronder (RETIRED) gentoo-dev 2010-07-04 04:22:02 UTC
Fixed upstream.

http://trac.mcs.anl.gov/projects/mpich2/changeset/6848
Comment 5 Justin Bronder (RETIRED) gentoo-dev 2010-08-05 04:03:53 UTC
I was really hoping that upstream would have cut another release by now.  Anyways,

+*mpich2-1.2.1_p1-r1 (05 Aug 2010)
+
+  05 Aug 2010; Justin Bronder <jsbronder@gentoo.org>
+  -mpich2-1.2.1_p1.ebuild, +mpich2-1.2.1_p1-r1.ebuild,
+  +files/mpich2-1.2.1-fix-missing-libs.patch:
+  Fix #313045, add missing libs during linking
+

Thanks for reporting and the patch.