Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I was trying to install the latest GCC 4.8 but somehow the build fails. Here are the steps I followed: In the directory /mnt/ajay/ I checked out the code from svn using the command:

svn checkout svn://gcc.gnu.org/svn/gcc/trunk gcc4.8/

This gets the entire code in the directory /mnt/ajay/gcc4.8

Then I simply followed the configuration steps given here: http://gcc.gnu.org/wiki/InstallingGCC (Pasting the instructions from the site)

tar xzf gcc-4.6.2.tar.gz
cd gcc-4.6.2
cd ..
mkdir objdir
cd objdir
$PWD/../gcc-4.6.2/configure --prefix=/opt/gcc-4.6.2 
make install

Since I had the code in a directory I did not have to tar and simply replaced the above instruction from gcc-4.6.2 to gcc4.8

The build fails when I make. It exits with the errors after couple of hours:

make  all-am
make[5]: Entering directory `/mnt/ajay/objdir/i686-pc-linux-gnu/libjava/classpath/tools'
Makefile:840: warning: overriding commands for target `gjdoc'
Makefile:758: warning: ignoring old commands for target `gjdoc'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory `/mnt/ajay/objdir/i686-pc-linux-gnu/libjava/classpath/tools'
make[4]: Leaving directory `/mnt/ajay/objdir/i686-pc-linux-gnu/libjava/classpath/tools'
make[4]: Entering directory `/mnt/ajay/objdir/i686-pc-linux-gnu/libjava/classpath'
true  DO=all multi-do # make
make[4]: Leaving directory `/mnt/ajay/objdir/i686-pc-linux-gnu/libjava/classpath'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/mnt/ajay/objdir/i686-pc-linux-gnu/libjava/classpath'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/ajay/objdir/i686-pc-linux-gnu/libjava'
make[1]: *** [all-target-libjava] Error 2
make[1]: Leaving directory `/mnt/ajay/objdir'
make: *** [all] Error 2

I am not into lot of installation in Linux, do let me know if I am doing anything wrong.

share|improve this question
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.