Thanks for the help.
But my problem is not yet solved
I created a new folder , configured with
--prefix=<objdir> --disable-bootstrap --enable-languages=c
option and then did a
make
but the newly built compiler is still used in the build process. i.e
in the generated
Makefile
------------
CC_FOR_TARGET=$(STAGE_CC_WRAPPER)
$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/
$(FLAGS_FOR_TARGET)
GCC_FOR_TARGET=$(STAGE_CC_WRAPPER)
$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/
$(FLAGS_FOR_TARGET)
if I replace $$r/$(HOST_SUBDIR)/gcc/xgcc with gcc , I get the
following error :
gcc -B/home/karthik/test-nisc2/./gcc/
-B/home/karthik/test-nisc/i686-pc-linux-gnu/bin/
-B/home/karthik/test-nisc/i686-pc-linux-gnu/lib/ -isystem
/home/karthik/test-nisc/i686-pc-linux-gnu/include -isystem
/home/karthik/test-nisc/i686-pc-linux-gnu/sys-include -O2 -O2 -g -O2
-DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition -isystem ./include -I.
-I. -I../../src/gcc-4.1.2/gcc -I../../src/gcc-4.1.2/gcc/.
-I../../src/gcc-4.1.2/gcc/../include
-I../../src/gcc-4.1.2/gcc/../libcpp/include -g0
-finhibit-size-directive -fno-inline-functions -fno-exceptions
-fno-zero-initialized-in-bss -fno-unit-at-a-time
-fno-omit-frame-pointer \
-c ../../src/gcc-4.1.2/gcc/crtstuff.c -DCRT_BEGIN \
-o crtbegin.o
../../src/gcc-4.1.2/gcc/crtstuff.c:1: error: bad value (generic) for
-mtune= switch
What am I doing wrong?
How can I get the build scripts to use the precompiled gcc throughout
the build process ?
Regards,
Karthik
On 3/16/07, Mike Stump <[EMAIL PROTECTED]> wrote:
On Mar 16, 2007, at 6:51 PM, Karthikeyan M wrote:
>> when you run configure.
>>
>> If you do use --disable-bootstrap, just run "make all-gcc".
>
> I tried this, it is still using the compiled-compiler in stage2 and
> beyond
There is no stage 2 if you aren't bootstrapping. I'd recommend rm -
rf build and start again.
cd gcc && make
would be the canonical development method.