Re: Leopard build of 4.4.1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ankit Mahanot wrote:
I also faced a similar problem during build. Someone suggested me to
remove MPFR & GMP from the place you installed. Clear out every trace
of GMP & MPFR from your system.

Then make a folder named mpfr in GCC source code & put mpfr files into
that folder. Similary make a folder named gmp in GCC source code & put
GMP files into that folder.

Then simply build WITHOUT --with-mpfr n all options. GCC would
automatically install MPFR n GMP during the build.

Give this a try once. It worked for me.



On 9/16/09, Chang, Christopher <Christopher.Chang@xxxxxxxx> wrote:
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.




I haven't seen these problems tbh i have a mac dev machine its not my main machine and i am not that familiar with it all yet, i upgraded to that new snow leopard and it has broke several things for me namely aclocal is generating stuff for autoconf 2.61 and the upgrade has given me autoconf 2.63, and so when i run autoconf it just gives me an error about that maybe i just need to reinstall. But i noticed when compiling GCC it was better to use ports to install mpfr and gmp because it seemed to add some patches i seen floating about some mailing lists for mac.

Get rid of your personal builds and try ports installs is what i would suggest.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux