Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 213687 - sys-devel/gcc-4.3.0 depends on >=dev-libs/mpfr-2.3.0 ?
Summary: sys-devel/gcc-4.3.0 depends on >=dev-libs/mpfr-2.3.0 ?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-17 12:38 UTC by Duncan
Modified: 2008-03-18 11:41 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Duncan 2008-03-17 12:38:51 UTC
OK, I know it's still masked yet, but I thought I'd try gcc-4.3.0.  Based on the following error, it seems to have a missing depend on >=dev-libs/mpfr-2.3.0.  Shortly into the initial config checking, it fails with the below:

checking for correct version of gmp.h... yes
checking for correct version of mpfr.h... no
configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
Try the --with-gmp and/or --with-mpfr options to specify their locations.
Copies of these libraries' source code can be found at their respective
hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
See also http://gcc.gnu.org/install/prerequisites.html for additional info.
If you obtained GMP and/or MPFR from a vendor distribution package, make
sure that you have installed both the libraries and the header files.
They may be located in separate packages.


I didn't have mpfr merged as nothing so far has depended on it, but just merged mpfr-2.3.1 manually and the gcc-4.3.0 merge has already proceeded well beyond the previous failure point.

Emerge info can be attached if needed, but meanwhile, ~amd64 no-multilib, with package.keywords set to grab binutils and gcc as **, since I like testing, Gentoo makes switching between versions if one fails so easy, and I have FEATURES=buildpkg backups if the build system gets totally hosed. =8^)

Here's the USE flags as emerge -pv gcc spits them out:

[ebuild  NS   ] sys-devel/gcc-4.3.0  USE="mudflap openmp (-altivec) -bootstrap -build -doc -fortran -gcj -gtk (-hardened) -ip28 -ip32r10k -libffi (-multilib) -multislot (-n32) (-n64) -nls -nocxx -objc -objc++ -objc-gc -test -vanilla"

Duncan
Comment 1 Duncan 2008-03-17 14:02:17 UTC
FWIW, with mpfr merged, gcc-4.3.0 merged fine, and I'm now doing an emerge system.  No (other) problems so far, altho I'd read how much stricter 4.3 was, so kudos to the Gentoo toolchain folks. =8^)

Also, read the upstream gcc-4.3.0 announcement and changes (checking to see if I might want to change my CFLAGS/CXXFLAGS =8^), and the mpfr requirement is pretty close to the top of the list of changes, so it's officially needed.  I'm not sure why the ebuild didn't have it in the deps.

Duncan
Comment 2 Michał Kiedrowicz 2008-03-17 18:19:37 UTC
gcc-4.3 ebuild has mpfr dependency, but only for fortran. I don't know why :/.

fortran? (
    >=dev-libs/gmp-4.2.1
    >=dev-libs/mpfr-2.2.0_p10
)
Comment 3 Duncan 2008-03-17 19:29:10 UTC
(In reply to comment #2)
> gcc-4.3 ebuild has mpfr dependency, but only for fortran.

> fortran? (
>     >=dev-libs/gmp-4.2.1
>     >=dev-libs/mpfr-2.2.0_p10
> )

Thanks for noting that.  As you may have noted from my USE above, I don't have fortran enabled, so didn't look there and missed it.

Even then however the dependency is outdated, as gcc now requires mpfr 2.3+, according to the error as I posted and according to the announcement, as well as requiring it for C-family as well as fortran.  So I'd guess that's probably a stale depend from earlier versions, and they simply missed the newer depend.

(As the error states, there's a gmp dependency as well, but I apparently have it from something else.)
Comment 4 SpanKY gentoo-dev 2008-03-18 11:41:40 UTC
we've had this fix in our overlay for a long time, it was just missed when updating the tree

as for depending on gfortran that's obvious: older versions of gcc only needed gmp/mpfr when building the gfortran code, but gcc-4.3 uses both pieces in the normal compiler as well