Re: Problems compiling the GCC 4.3.5

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

 



I now created the following directory structure (outside the source directory):

The build directory
/Users/toom/Downloads/gcc-4.3.5/obj-gcc-4.3.5
The source directory
/Users/toom/Downloads/gcc-4.3.5/gcc-4.3.5

Then in obj-gcc-4.3.5 I ran the following commands
../gcc-4.3.5/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/
make bootstrap

I still get the same error message
checking whether ln -s works... yes
checking for i386-apple-darwin10.6.0-gcc... /Users/toom/Downloads/gcc-4.3.5/obj-gcc-4.3.5/./gcc/xgcc -B/Users/toom/Downloads/gcc-4.3.5/obj-gcc-4.3.5/./gcc/ -B/Users/toom/gcc4.3.5//i386-apple-darwin10.6.0/bin/ -B/Users/toom/gcc4.3.5//i386-apple-darwin10.6.0/lib/ -isystem /Users/toom/gcc4.3.5//i386-apple-darwin10.6.0/include -isystem /Users/toom/gcc4.3.5//i386-apple-darwin10.6.0/sys-include checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[2]: *** [configure-stage1-target-libgcc] Error 1
make[1]: *** [stage1-bubble] Error 2
make: *** [bootstrap] Error 2


kevin diggs schrieb:
Hi,

Well, what I did was unpack the compiler source into gcc-4.3.5. Then I
created an obj dir, say obj-gcc-4.3.5 as a sibling directory (i.e. in
the same directory that contains the source directory). An ls -d
*-4.3.5* would show:

gcc-4.3.5/
obj-gcc-4.3.5/

Then I went into obj-gcc-4.3.5 (cd obj-gcc-4.3.5) and:

../gcc-4.3.5/configure -<all manner of fancy options and stuff>
make bootstrap

If I understand your mail correctly you have the source directory as a
subdirectory of your build directory. In my build they were siblings.

My 4.3.5 compiler seems to work well enough to compile Firefox (more
or less). I can't seem to get it to compile a bootable non-SMP PowerPC
Linux kernel? Have not figured out why yet?

kevin

On Thu, Jan 27, 2011 at 11:49 AM, Paul van Hoven
<paul.van.hoven@xxxxxxxxxxxxxx> wrote:
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.





[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