Bug 40504 - Configure make a makefile, despite saying: "mpfr.h... buggy but acceptable"
Summary: Configure make a makefile, despite saying: "mpfr.h... buggy but acceptable"
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 4.4.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-20 14:07 UTC by Dr. David Kirkby
Modified: 2009-06-21 22:44 UTC (History)
1 user (show)

See Also:
Host: SunOS kestrel 5.10 Generic_139555-08 sun4u sparc SUNW,Sun-Blade-
Target: sparc-sun-solaris2.5.10
Build: SunOS kestrel 5.10 Generic_139555-08 sun4u sparc SUNW,Sun-Blade-
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dr. David Kirkby 2009-06-20 14:07:52 UTC
I doubt the following configure options were optimal, as I'd simuply cut/hasted from another machine. However, what I find odd is that the configure script determined says "

checking how to compare bootstrapped objects... cmp $$f1 $$f2 16 16
checking for correct version of gmp.h... yes
checking for correct version of mpfr.h... buggy but acceptable


Given the configure script has determined that mpfr.h is buggy, it should at least 

1) Exit, with an error
2) Print a message such as "This will not be used, mpfr.h from gcc will be used instead'

Simply to report something is buggy and unaccesptable, then continue as nothing had happened seems unwise. 

 ../gcc-4.4.0/configure --without-gnu-as --with-as=/usr/ccs/bin/as --without-gnu-ld --with-ld=/usr/ccs/bin/ld --with-gmp=/home/kirkby/dependencies/ --with-mpfr=/home/kirkby/dependencies/ --enable-languages=c,c++,fortran --prefix=/home/kirkby/gcc-4.4.0-Sun-Tools/ --with-pkgversion=Built-un-kestrel


The veriosn of gcc used to build attempt to build gcc 4.4.0 was an earlier one. The configur options to that are:

Target: sparc-sun-solaris2.10
Configured with: ../gcc-4.3.2/configure --prefix=/home/mabshoff/sparc-solaris-toolchain/ --enable-languages=c,c++,fortran --with-gnu-ld --with-ld=/home/mabshoff/sparc-solaris-toolchain/bin/ld --with-gnu-as --with-as=/home/mabshoff/sparc-solaris-toolchain/bin/as --with-gmp=/usr/local/gmp-4.2.3/sparc-SunOS-gcc-4.3.1-abi32/ --with-mpfr=/usr/local/mpfr-2.3.2/sparc-SunOS-gmp-4.2.3-gcc-4.3.1-abi32/
Thread model: posix
gcc version 4.3.2 (GCC)


But basically, it seems irrelavant what options are compiler are used. If gcc determines something is unacceptable, it should not continue, and produce a makefile that at least starts compiling. I did not see if it actually ever built gcc - that would have been a bit stupid given the error message.
Comment 1 Richard Biener 2009-06-20 14:10:18 UTC
It says "acceptable", so it's acceptable to continue.
Comment 2 Dr. David Kirkby 2009-06-20 17:47:27 UTC
OK, i take your point - I should have taken more notice of the actual error message.

It would be sensible to give some advice to the user, like what would not be a less buggy version. 

If possible, it would be useful if the versions of gmp and mprf are reported too. I have soemtimes spent ages trying to work out where i have different versions. I think it is the fact that there are some gmp libraries installed by Sun in /usr/lib. 
 
Comment 3 Andrew Pinski 2009-06-20 17:59:44 UTC
There is an installation manual for a reason ...