I need to emerge sci-libs/hdf5-1.6.5-r1, but I want to use pgf90 as my fortran compiler. The current e-build always tries to use gfortran if gcc was emerged with the fortran use flag. It would be much more convenient if the combination of the fortran and f90 use flags ALWAYS let HDF5 determine the fortran compiler (-f90 would still behave the same). This can easily be done by replacing pkg_setup with the modified version below (as I have done in my overlay). pkg_setup() { # The above gcc dep is a hack to insure at least one Fortran 90 # compiler is installed if the user enables fortran support. Feel # free to improve it... if use fortran && ! use f90 ; then if [ $(gcc-major-version) -ge 4 ] \ && built_with_use sys-devel/gcc fortran ; then FORTRAN="gfortran" fortran_pkg_setup einfo "Configuring for GNU fortran..." elif test -d /opt/intel/fortran90 ; then FORTRAN="ifc" fortran_pkg_setup einfo "Configuring for Intel fortran..." fi elif use f90 ; then einfo "Relying on H5Detect to configure Fortran compiler..." FORTRAN="" else einfo "No F90 compiler found; please install either gcc 4 with" einfo "fortran support or some other Fortran 90 compiler such" einfo "as ifc or pgf90 (or disable fortran support)." die "No usable Fortran 90 compiler found." fi } Please consider this enhancement so I don't have to have so many custom ebuilds in my overlay.
Created attachment 140945 [details] The fortran eclass with pgf90 support This is a bit old, but until the maintainers officially add pgf90....
Created attachment 140946 [details] hdf5 for use with pgi-capable fortran.eclass Note that the official version of this package is marked ~x86 ~amd64 as of 1/14/2008.
You CAN use hdf5 (and lots of other stuff) on Gentoo with pgi, but what you really need is pgf90 support in the Fortran eclass. Attached is a version from my overlay. Some ebuilds just work with pgf90, other I have to copy to my overlay and change a line or two, but it's generally a good solution. My hdf5 ebuild is also attached. I'm marking this bug as WONTFIX because I've filed bugs with the pgf90 ebuild that never made it into the tree, so I guess no one at Gentoo has the interest to add pgf90 support. I support an entire group of scientists with Gentoo and pgi quite happily by simply using an overlay, however. Go Gentoo!!!
Hi Adam, I just want to mention that the fortran eclass with pgf* support has been in the science overlay for quite a while (also in bug #152691). I'm not too fond of the fortran eclass but have not had time to modularize our fortran support yet. We have yet to find the human resources to test our fortran packages with available fortran compilers, so we privilege the free and open-source ones. However I hope in the very near future we'll have better fortran support. Thanks for your help!
We would also need to have pgf compilers available for the relevant developers. I don't have it, hence, I can't really do anything toward supporting it. best, Markus