This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/35628] New: gcc-4.3.0 fails to build, mpfr problem, libmpfr.dylib, file is not of required architecture
- From: "bill at cse dot ucdavis dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Mar 2008 19:24:22 -0000
- Subject: [Bug bootstrap/35628] New: gcc-4.3.0 fails to build, mpfr problem, libmpfr.dylib, file is not of required architecture
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I built gmp-4.2.2:
./configure --prefix=/opt/pkg/gmp-4.2.2
make
make install
And mpfr-2.3.1:
./configure --prefix=/opt/pkg/mpfr-2.3.1 --with-gmp=/opt/pkg/gmp-4.2.2/
--with-gmp-build=/opt/src/gmp-4.2.2/
make
make install
Oh the compiler I'm trying to install 4.3.0 (as well as gmp and mpfr) with:
Target: powerpc-apple-darwin9
gcc version 4.0.1 (Apple Inc. build 5465)
Then gcc:
./configure --prefix=/opt/pkg/gcc-4.3.0 --with-gmp=/opt/pkg/gmp-4.2.2
--with-mpfr=/opt/pkg/mpfr-2.3.1
And get:
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+.
gcc-4.3.0 root# ls -al /opt/pkg/mpfr-2.3.1/include/mpfr.h
-rw-r--r-- 1 root admin 37381 Mar 18 11:53
/opt/pkg/mpfr-2.3.1/include/mpfr.h
config.log has additional info:
configure:4573: gcc -o conftest -g -O2 -I/opt/pkg/gmp-4.2.2/include
-I/opt/pkg/mpfr-2.3.1/include conftest.c -L/opt/pkg/gmp-
4.2.2/lib -L/opt/pkg/mpfr-2.3.1/lib -lmpfr -lgmp >&5
ld: warning in /opt/pkg/mpfr-2.3.1/lib/libmpfr.dylib, file is not of required
architecture
ld: warning in /opt/pkg/gmp-4.2.2/lib/libgmp.dylib, file is not of required
architecture
I searched the bug database and found some mention of an unintentional --target
being supplied to gmp/mpfr, presumably it's the wrong --target. I didn't
however find a fix, nor was I sure it was exactly the same problem.
The closest bug I found was #35250
--
Summary: gcc-4.3.0 fails to build, mpfr problem, libmpfr.dylib,
file is not of required architecture
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bill at cse dot ucdavis dot edu
GCC build triplet: powerpc-apple-darwin9.2.0
GCC host triplet: powerpc-apple-darwin9.2.0
GCC target triplet: powerpc-apple-darwin9.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35628