On 12 March 2012 20:47, Jens Bauer wrote: > Hi all, > > Just to let you know, in case you run into the same problems. > > I just tried compiling gcc with gmp-5.0.4, mpfr-3.1.0 and mpc-0.9 (because why not use the newest libraries, when we're doing a new compile anyway ?) There's a reason http://gcc.gnu.org/install/prerequisites.html says it's safer to use the exact documented versions. > I kept getting this error... > > configure: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor! > configure: WARNING: sys/time.h: proceeding with the compiler's result > configure: error: libmpfr not found or uses a different ABI. > make[2]: *** [configure-stage1-mpc] Error 1 > make[1]: *** [stage1-bubble] Error 2 > make: *** [all] Error 2 > > -After much messing around and many retries, I decided to change version numbers back to gmp-5.0.1 and mpfr-3.0.1, and now it seems both gcc 4.5 and 4.6 compiles. > I believe it's mpfr-3.1.0 (I could be wrong, but that's my best guess, as the minor-version is updated, while only gmp's bugfix version updated, furthermore, the 'libmpfr' points at mpfr, not gmp). > -I hope this will help someone to skip a few hours or days of work. This is a known issue: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50461 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51935