Leopard build of 4.4.1

Chang, Christopher Christopher.Chang@nrel.gov
Tue Sep 15 23:02:00 GMT 2009


Hi,

   I am trying to build GCC 4.4.1 on a Mac Pro desktop.

cchang-13378s:gcc-4.4.1 cchang$ uname -a
Darwin cchang-13378s.nrel.gov 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24
17:37:00 PST 2008; root:xnu-1228.9.59~1/RELEASE_I386 i386

I had previously built 4.3.1 with an abbreviated set of options:
cchang-13378s:gcc-4.4.1 cchang$ gcc -v
Using built-in specs.
Target: i386-apple-darwin9.4.0
Configured with: ../configure --prefix=/Users/cchang
Thread model: posix
gcc version 4.3.1 (GCC)

and this is the active compiler I am using. Based on the configuration of
the system compiler:

cchang-13378s:gcc-4.4.1 cchang$ /usr/bin/gcc -v
Using built-in specs.
Target: i686-apple-darwin9
Configured with: /var/tmp/gcc_42/gcc_42-5564~1/src/configure
--disable-checking --enable-werror --prefix=/usr --mandir=/usr/share/man
--enable-languages=c,objc,c++,obj-c++
--program-transform-name=/^[cg][^.-]*$/s/$/-4.2/
--with-gxx-include-dir=/usr/include/c++/4.0.0 --with-slibdir=/usr/lib
--build=i686-apple-darwin9 --host=i686-apple-darwin9
--target=i686-apple-darwin9
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5564)

, the MPFR installation (which showed that the preprocessor was picking up
junk from /usr/local/include by default), and a successful similar build I
did on a MacBook Pro, I am configuring 4.4.1 with

./configure --prefix=/Users/cchang --with-gmp=/Users/cchang
--with-mpfr=/Users/cchang --build=i686-apple-darwin9
--host=i686-apple-darwin9 --target=i686-apple-darwin9 CPPFLAGS='-nostdinc
-I/Users/cchang/include
-I/Users/cchang/lib/gcc/i386-apple-darwin9.4.0/4.3.1/include
-I/Users/cchang/lib/gcc/i386-apple-darwin9.4.0/4.3.1/include-fixed
-I/usr/include -I/System/Library/Frameworks -I/Library/Frameworks
-I/usr/local/include'

GMP 4.3.1 and MPFR 2.4.1 were built and checked successfully. During make
from both the distribution tarball and the 4.4 branch of the svn repository,
I see:
...
gcc -c  -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition
-Wc++-compat -Wmissing-format-attribute -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H
-I. -I. -I../.././gcc -I../.././gcc/. -I../.././gcc/../include -I./../intl
-I../.././gcc/../libcpp/include -I/Users/cchang/include
-I/Users/cchang/include -I../.././gcc/../libdecnumber
-I../.././gcc/../libdecnumber/dpd -I../libdecnumber
../.././gcc/builtins.c -o builtins.o
../.././gcc/builtins.c: In function Ofold_builtin_1¹:
../.././gcc/builtins.c:10292: error: Ompfr_j0¹ undeclared (first use in this
function)
../.././gcc/builtins.c:10292: error: (Each undeclared identifier is reported
only once
../.././gcc/builtins.c:10292: error: for each function it appears in.)
../.././gcc/builtins.c:10298: error: Ompfr_j1¹ undeclared (first use in this
function)
../.././gcc/builtins.c:10304: error: Ompfr_y0¹ undeclared (first use in this
function)
../.././gcc/builtins.c:10310: error: Ompfr_y1¹ undeclared (first use in this
function)
../.././gcc/builtins.c: In function Ofold_builtin_2¹:
../.././gcc/builtins.c:10431: error: Ompfr_jn¹ undeclared (first use in this
function)
../.././gcc/builtins.c:10437: error: Ompfr_yn¹ undeclared (first use in this
function)
../.././gcc/builtins.c:10445: error: Ompfr_remainder¹ undeclared (first use
in this function)
../.././gcc/builtins.c: In function Odo_mpfr_remquo¹:
../.././gcc/builtins.c:13345: warning: implicit declaration of function
Ompfr_remquo¹
../.././gcc/builtins.c: In function Odo_mpfr_lgamma_r¹:
../.././gcc/builtins.c:13423: warning: implicit declaration of function
Ompfr_lgamma¹
make[3]: *** [builtins.o] Error 1
make[2]: *** [all-stage1-gcc] Error 2
make[1]: *** [stage1-bubble] Error 2
make: *** [all] Error 2

Although I'm not familiar with a lot of the syntax in mpfr.h, I see what I
interpret as declarations of these entities in mpfr.h. Any ideas?

Thanks.



More information about the Gcc-help mailing list