30.12.2010 14:25, Jonathan Wakely kirjoitti:
Please read the installation instructions, particularly
http://gcc.gnu.org/install/configure.html
"First, we highly recommend that GCC be built into a separate
directory from the sources which does not reside within the source
tree. This is how we generally build GCC; building where srcdir ==
objdir should still work, but doesn't get extensive testing; building
where objdir is a subdirectory of srcdir is unsupported."
I showed you a working sequence of commands, and it involved running
../gcc-4.5.2/configure NOT ../configure
I haven't looked in detail but this is most likely the cause of your
compilation failure, so please correct it and try again.
I myself have always used a "build" subdir in the main src directory,
for instance 'gcc-4.5.2/build', 'binutils-2.20.51/build' etc. NEVER
any problems with this choice after 100's of tool builds! Neither
some of the big guys seem to care about this "recommendation", my
CentOS 5.5 GCC tells :
[root@localhost ~]# gcc -v
Reading specs from /usr/lib/gcc/i386-redhat-linux/4.1.2/specs
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-libgcj-multifile
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada
--enable-java-awt=gtk --disable-dssi --enable-plugin
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre
--with-cpu=generic --host=i386-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)
Also all the Fedora GCCs I have seem, seem to have been built in a
subdirectory of the main GCC directory...
So the problem (haven't cared to look at this case) is somewhere else.