On Wed, Sep 2, 2009 at 6:36 PM, Dr. David Kirkby<david.kirkby@xxxxxxxxxx> wrote: > Peng Yu wrote: >> >> On Wed, Sep 2, 2009 at 9:53 AM, Rupert Wood<me@xxxxxxxxx> wrote: >>> >>> Peng Yu wrote: >>> >>>> I think that we have been talking about different configure files. I >>>> found the following two configure files. You were talking about the >>>> first one. But I were talking about the second one. >>> >>> You should be calling the top-level configure file, yes. However the >>> top-level configure calls gcc/configure (amongst others) and will pass on >>> its command line options, so --enable-languages is a valid switch to use at >>> the top level. See the documentation for a fuller list: >>> >>> http://gcc.gnu.org/install/configure.html >> >> ./configure --enable-languages='c java' --prefix=mydir >> make -j6 > > It's much better to do something like > > $ mkdir build > $ cd build > $ /path/to/gcc-source-code/configure --enable-languages="c java" > > Chances are though, you will need C++ at one point. Personally I'd always > build with at least C and C++. I also use Fortran too, but that's since I > tend to use mathematical software, which is often written in Fortran. I run the above three commands that you mentioned. Then I run make the directory 'build'. But I still get the following error message (I don't find any other instances of the words "Error" and "error" in the output). Do you know what the problems are? make[3]: Leaving directory `/home/pengy/download/linux/gcc-4.3.4-build/gcc' make[2]: *** [all-stage1-gcc] Error 2 make[2]: Leaving directory `/home/pengy/download/linux/gcc-4.3.4-build' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/home/pengy/download/linux/gcc-4.3.4-build' make: *** [all] Error 2