This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to compile and install only one compile in GCC?


On Wed, Sep 2, 2009 at 9:53 AM, Rupert Wood<me@rupey.net> 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

But I get the following error after I run the second command ('make
-j6'). Can somebody let me what the problem is?

=====================
config.status: executing src commands
configure: error: `CXX' has changed since the previous run:
configure:   former value:
/home/pengy/download/linux/gcc-4.3.4/host-x86_64-unknown-linux-gnu/gcc/g++
-B/home/pengy/download/linux/gcc-4.3.4/host-x86_64-unknown-linux-gnu/gcc/
-nostdinc++  -L/home/pengy/download/linux/gcc-4.3.4/x86_64-unknown-linux-gnu/libstdc++-v3/src
-L/home/pengy/download/linux/gcc-4.3.4/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-B/home/pengy/utility/linux//x86_64-unknown-linux-gnu/bin/
-B/home/pengy/utility/linux//x86_64-unknown-linux-gnu/lib/ -isystem
/home/pengy/utility/linux//x86_64-unknown-linux-gnu/include -isystem
/home/pengy/utility/linux//x86_64-unknown-linux-gnu/sys-include
configure:   current value:
/home/pengy/download/linux/gcc-4.3.4/host-x86_64-unknown-linux-gnu/gcc/g++
-B/home/pengy/download/linux/gcc-4.3.4/host-x86_64-unknown-linux-gnu/gcc/
-nostdinc++ -nostdinc++
-I/home/pengy/download/linux/gcc-4.3.4/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu
-I/home/pengy/download/linux/gcc-4.3.4/x86_64-unknown-linux-gnu/libstdc++-v3/include
-I/home/pengy/download/linux/gcc-4.3.4/libstdc++-v3/libsupc++
-I/home/pengy/download/linux/gcc-4.3.4/libstdc++-v3/include/backward
-I/home/pengy/download/linux/gcc-4.3.4/libstdc++-v3/testsuite/util
-L/home/pengy/download/linux/gcc-4.3.4/x86_64-unknown-linux-gnu/libstdc++-v3/src
-L/home/pengy/download/linux/gcc-4.3.4/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-B/home/pengy/utility/linux//x86_64-unknown-linux-gnu/bin/
-B/home/pengy/utility/linux//x86_64-unknown-linux-gnu/lib/ -isystem
/home/pengy/utility/linux//x86_64-unknown-linux-gnu/include -isystem
/home/pengy/utility/linux//x86_64-unknown-linux-gnu/sys-include
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm ./config.cache' and start over


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]