On Thu, Sep 3, 2009 at 2:59 AM, Kai Ruottu<kai.ruottu@xxxxxxxxxxx> wrote: > Peng Yu wrote: > >>>> ./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" >>> > > 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 > > After configuring in the source dir the sources are mixed with the > results of the configure! The earlier error msg told you to make a > 'distclean' in them or "start again from a clean table" ! > > Doing 'rm -f -r' for the 'gcc-4.3.4' directory and then unpacking > the sources again from the tarball, 'gcc-4.3.4.tar.bz2' or something, > could be the most easy way... After that doing reconfigure in the > "parallel" or "peer" separate and empty 'build' directory : > > ../gcc-4.3.4/configure ..... I still get some errors. And I checked that ld does not have the options -Wl,-rpath. Can somebody let me know what the problem is? libtool: link: (cd ".libs" && rm -f "libgcj-tools.so.9" && ln -s "libgcj-tools.so.9.0.0" "libgcj-tools.so.9") libtool: link: (cd ".libs" && rm -f "libgcj-tools.so" && ln -s "libgcj-tools.so.9.0.0" "libgcj-tools.so") libtool: link: (cd ".libs" && rm -f "libgcj_bc.so.1" && ln -s "libgcj_bc.so.1.0.0" "libgcj_bc.so.1") /home/pengy/utility/linux//x86_64-unknown-linux-gnu/bin/ld: unrecognized option '-Wl,-rpath' /home/pengy/utility/linux//x86_64-unknown-linux-gnu/bin/ld: use the --help option for usage information collect2: ld returned 1 exit status make[3]: *** [jv-convert] Error 1