Thanks for the answers.
I tried again but it failed again. I'm currently using the following
directory structure
I have the following base directory
/Users/toom/Downloads/gcc-4.3.5
In there I have the following directory
/Users/toom/Downloads/gcc-4.3.5/gcc-4.3.5
in which I deflated all the source code of gcc-4.3.5
Now, what I understand by building outside the source directory, I
understand the following
In the outside directory "/Users/toom/Downloads/gcc-4.3.5" I call
"./gcc-4.3.5/configure" with options and after that I get a Makefile in
"/Users/toom/Downloads/gcc-4.3.5" and therefore I type there make. Then
I get the following error message:
i686-apple-darwin10-gcc-4.2.1:
../../build-i386-apple-darwin10.6.0/libiberty/libiberty.a: No such file
or directory
make[3]: *** [build/genmodes] Error 1
make[2]: *** [all-stage1-gcc] Error 2
make[1]: *** [stage1-bubble] Error 2
I checked that the file libiberty.a exists but somehow make does not
find the correct relative path. I still don't know how to compile the gcc.
kevin diggs schrieb:
Hi,
I can confirm that building 4.3.5 for (PowerPC at least) will fail if
you try to build it in the source directory. It seemed to build fine
when I fixed that.
kevin
On Thu, Jan 27, 2011 at 10:57 AM, Andrew Haley <aph@xxxxxxxxxx> wrote:
On 01/27/2011 04:52 PM, Paul van Hoven wrote:
On my mac I need a certain version of the GCC other than the one that
comes with XCode. Therefore I decided to compile a version for my mac. I
downloaded mpfr and gmp and compiled those in order to get the compilation
process for the gcc running. After that I did the following:
./configure --prefix=/Users/toom/gcc4.3.5/
--with-mpfr=/Users/toom/gcc4.3.5/requiredLibs/mpfr-3.0.0/
--with-gmp=/Users/toom/gcc4.3.5/requiredLibs/gmp-5.0.1/
To begin with, do not build in the source directory.
Once you've tried that, if it still doesn't build, please get back
to us.
Andrew.