Gcc requires a build directory outside the source directory.
Compiling the source directly will not work. If you did that :
Your source cannot be reused, please start from scratch with ...
svn checkout svn://gcc.gnu.org/svn/gcc/trunk gcc-svn(-rev.164497).
cd gcc-svn/ && mkdir -v ../gcc-build && cd ../gcc-build
Code:
../gcc-svn/configure --prefix=/usr/local/gcc-svn --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++ --disable-multilib --with-system-zlib
make && sudo make install
The command /usr/local/gcc-svn/bin/gcc -v
replies : gcc version 4.6.0 20100921 (experimental) (GCC)
P.S.: Gcc from svn is the upcomming gcc-4.6, AFAIK.
Is being written just now. Updates about three times an hour.
(There were about 20 new revision numbers the eight hours, I updated.)
Version "164497" is the first one I have seen today/yesterday, that works.
( '164497' : Tested on Ubuntu 10.04 Lucid, 64 Bits.)
......
PPS. : Welcome to LQ. .. ..
..