The port math/mpfr has been split off from the port math/gmp4 (see the PR ports/84724). Gfortran in GCC 4.0.x depends on the MPFR libraries. Since GCC's configure script does not detect MPFR, it does not build gfortran. When installing lang/gcc40 with the WITH_GFORTRAN flag -- i.e., when installing lang/gfortran -- the install therefore fails if math/mpfr was not previously installed. Fix: Add a dependency on math/mpfr to lang/gcc40 under the WITH_GFORTRAN conditional. How-To-Repeat: [pkg_delete math/mpfr] portinstall lang/gfortran
Responsible Changed From-To: freebsd-ports-bugs->gerald Over to maintainer.
State Changed From-To: open->feedback Thanks for the pointer. Do we need math/mpfr _and_ math/gmp4, or just the former? I assume we'll have to do the same for lang/gcc41 as well?
math/mpfr does depend on math/gmp4, so I suppose a direct dependency isn't strictly speaking necessary. However, GCC's configure script does seem to check for gmp as well as for mpfr, so it's probably a good idea to depend on both, in case a future mpfr version loses its gmp4 dependency. I haven't tried lang/gcc41, but I imagine it's the same.
State Changed From-To: feedback->closed Fixed. Thanks for the report.