Error in make building gcc-4.7.2

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

 



	Error in make building gcc-4.7.2

To: gcc-help@xxxxxxxxxxx

1 Background

	Trying to build gcc-4.7.2.

Running Mac OS X:

  System Version:	Mac OS X 10.5.8 (9L30)
  Kernel Version:	Darwin 9.8.0
  uname -mpv
Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386 i386

	Configure had completed:
 ../src/gcc-4.7.2/configure --enable-languages=ada,c,c++ > config4.log
Gave:
*** This configuration is not supported in the following subdirectories:
target-libmudflap target-libgfortran target-libgo target-libffi target-zlib target-libjava target-libobjc target-boehm-gc
    (Any other directories should still work fine.)
rm: conftest.dSYM: is a directory


2 An error reported by make

make &> make-2.log
... last few lines:
checking for MPFR... no
configure: error: libmpfr not found or uses a different ABI (including static vs shared).
make[2]: *** [configure-stage1-mpc] Error 1
make[1]: *** [stage1-bubble] Error 2
make: *** [all] Error 2

	Log also contains many "rm: conftest.dSYM: is a directory" from the
standard error stream. It is not clear whether these matter (or the one
from configure).


3 Extra Information

	Although gmp, mpfr, and mpc were not installed at the time, there were
source downloads in nearby directories. It had previously been established that gmp, mpfr, and mpc were prerequisites, so they were placed ready to be
installed along with the gcc sources.

(As suggested in the gcc downloading information:
"Likewise the GMP, MPFR and MPC libraries can be automatically built
together with GCC.  Unpack the GMP, MPFR and/or MPC source distributions
in the directory containing the GCC sources and rename their directories to gmp, mpfr and mpc, respectively (or use symbolic links with the same name)."


Directories:

/Gnu/gcc/src/gcc-4.7.2/	Sources preparing for installation
/Gnu/gcc/obj/				Area for building

/Gnu/gmp/gmp-5.1.0		Sources preparing for installation
/Gnu/mpfr/mpfr-3.1.1		Ditto
/Gnu/mpc/mpc-1.0.1		Ditto

The gcc directory includes links for gmp, mpfr, and mpc

/Gnu/gcc/src/gcc-4.7.2/gmp -> /Gnu/gmp/gmp-5.1.0
/Gnu/gcc/src/gcc-4.7.2/mpc -> /Gnu/mpc/mpc-1.0.1
/Gnu/gcc/src/gcc-4.7.2/mpfr -> /Gnu/mpfr/mpfr-3.1.1

	The sources came from ftp://www.mirrorservice.org/sites/ftp.gnu.org/gnu/

gmp-5.1.0a.tar.bz2
mpc-1.0.1.tar.gz
mpfr-3.1.1.tar.gz


4 Compilers for Bootstrap

	The aim of this is to get an up to date Gnat compiler for Ada. Since
gcc requires a working gnat to build the Ada compiler, a binary version was
downloaded last year from: http://macada.org/macada/Downloads.html

Gnati386-4.3-xcode3.0.dmg

Installed from gnat_i386.pkg in that image. This has installed to / usr/local/ada-4.3/bin

	This compiler has successfully compiled some of my old Ada programs.

Along with gnat, this download included gcc-4.4.0. (It is not clear why it
is 4.4.0 when 4.3 was downloaded.)

 /usr/local/ada-4.3/bin/gcc --version
gcc (GCC) 4.4.0 20080314 (experimental) [trunk revision 133226]

 /usr/local/ada-4.3/bin/gnat
GNAT 4.4.0 20080314 (experimental) [trunk revision 133226]

	The Apple Mac OS system on this machine includes
gcc --version
i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465)

	However, a previous run of configure had indicated that this
gcc did not support Ada.  Therefore /usr/local/ada-4.3/bin was first
in $PATH.  The configure just prior to the last make was run in an
empty /Gnu/gcc/obj/ directory.


5 Conclusion

	As the failure involved "libmpfr", a search was done for this on
http://www.gnu.org/software/gcc/ page.  This failed with:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

	However, a later attempt showed a set of similar errors from make in a
discussion about "struggle to create a 64-bit gcc on Solaris 10".

Is my error with "libmpfr" related to the 32/64 bit problems for Solaris 10?

I am trying to build for ada,c,c++. Perhaps I need to omit ada first, produce
a gcc that can support Ada, then a separate build that includes ada?

	The config.log file is available (28kB).  Also the redirected outputs
config4.log file (4kB), and make-2.log (712kB) are available .


Ellis N. Thomas/21-Mar-2013





[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