Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 126295 - ebuild for openmpi 1.0.1 (with slotting mechanism)
Summary: ebuild for openmpi 1.0.1 (with slotting mechanism)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Cluster Team
URL: http://gentooscience.org/browser/over...
Whiteboard:
Keywords: EBUILD
: 129991 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-03-15 05:27 UTC by Eric Thibodeau
Modified: 2010-09-10 19:00 UTC (History)
3 users (show)

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


Attachments
OpenMPI v1.1.1 ebuild (openmpi-1.1.1.ebuild,2.90 KB, text/plain)
2006-09-08 14:09 UTC, Nicolas Bigaouette
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Thibodeau 2006-03-15 05:27:27 UTC
The URL points to the openmpi in the gentoo-science overlay. Note that it's structured to accommodate slotting of the mpi ebuilds (this is becoming a requirement). The eclass (not written as of yet) has to be user callable. One approach I see of doing this eclass for the moment would be to show the available implementations and, once one is selected, display the lines to add to their .bashrc (or equivalent). I don't think we can "play" with a user's shell config file as it would be rather dangerous and non-deterministic ;).
Comment 1 Eric Thibodeau 2006-03-15 08:33:36 UTC
OpenMPI won't build with Torque installed (on amd64 only, PIC issue):

x86_64-pc-linux-gnu-gcc -shared  .libs/pls_tm_component.o .libs/pls_tm_module.o  -Wl,--rpath -Wl,/var/tmp/portage/openmpi-1.0.1/work/openmpi-1.0.1/orte/.libs -Wl,--rpath -Wl,/var/tmp/portage/openmpi-1.0.1/work/openmpi-1.0.1/opal/.libs -Wl,--rpath -Wl,/usr/lib64/openmpi/1.0.1-gcc-3.4/lib64 -lpbs /var/tmp/portage/openmpi-1.0.1/work/openmpi-1.0.1/orte/.libs/liborte.so -L/var/tmp/portage/openmpi-1.0.1/work/openmpi-1.0.1/opal/.libs /var/tmp/portage/openmpi-1.0.1/work/openmpi-1.0.1/opal/.libs/libopal.so -lm -lutil -lnsl  -march=opteron -pthread -Wl,-soname -Wl,mca_pls_tm.so -o .libs/mca_pls_tm.so
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/libpbs.a(tm.o): relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/libpbs.a: could not read symbols: Bad value

/usr/lib64/libpbs.a is owned by Torque (present installed version is the sci's overlay sys-cluster/torque-2.0.0_p7.
Comment 2 Donnie Berkholz (RETIRED) gentoo-dev 2006-03-15 08:44:52 UTC
Static libraries shouldn't need to be -fPIC, but when shared libraries link them, then they do. The preferred solution is to figure out a way to avoid linking a static library into a shared library.
Comment 3 Sébastien Fabbro (RETIRED) gentoo-dev 2006-03-16 01:57:00 UTC
I did some slight changes regarding pic behaviour on the overlay.
Do you have any examples of ebuild avoiding linking static libs with shared that could save us some doc searching?
right now, I simply followed http://www.open-mpi.org/faq/?category=building#build-rte
Comment 4 Sébastien Fabbro (RETIRED) gentoo-dev 2006-04-17 15:15:53 UTC
Hi

New ebuild for version 1.0.2 in the overlay. Many bug fixes upstream and I added a simple warning if the threads use flag is enabled.

Sebastien
Comment 5 Eric Thibodeau 2006-04-17 21:32:35 UTC
(In reply to comment #4)
> Hi
> 
> New ebuild for version 1.0.2 in the overlay. Many bug fixes upstream and I
> added a simple warning if the threads use flag is enabled.
> 
> Sebastien
> 

Thanks, I'll be testing it soon with real code ;)
Comment 6 Eric Thibodeau 2006-05-01 11:05:45 UTC
In pkg_setup(), the line
    fortran_pkg_setup
should be 
    use fortran && fortran_pkg_setup

Else, the package bombs out complaining that there is no Fortran compiler on the system...
Comment 7 Donnie Berkholz (RETIRED) gentoo-dev 2006-06-24 00:46:07 UTC
*** Bug 129991 has been marked as a duplicate of this bug. ***
Comment 8 Eric Thibodeau 2006-06-25 22:35:42 UTC
OpenMPI 1.1 is officially out, time to make an ebuild for it. Many more configure options added (sigh). Since I have some experience building that branch on Spark I'll most probably fiddle the ebuild but I'm under SUN OS (and forced to 32bit mode O_o ) so I won't be able to test the actual ebuild (ie: one constraint, arch has to be forced to v9). I will test them under x86 (P3, nocona, Athlon) and x86_64 (Opteron) though.
Comment 9 Nicolas Bigaouette 2006-09-08 14:09:46 UTC
Created attachment 96438 [details]
OpenMPI v1.1.1 ebuild

This is an ebuild for v1.1.1, adapted from gentooscience.org's v1.0.2 with some addition to be able to compile using PGI compilers.

Note that I patched my /etc/portage/eclass/fortran.eclass with patch from http://bugs.gentoo.org/show_bug.cgi?id=65950
Comment 10 Donnie Berkholz (RETIRED) gentoo-dev 2006-09-25 00:41:35 UTC
I've modified the overlay's ebuild to remove the slotting because portage does not support multiple slots per version, and committed it to the tree. Thanks for your hard work and patience!
Comment 11 Eric Thibodeau 2006-09-25 06:54:53 UTC
Little note: The short description should include "MPI" for -S search purposes.