protoize and unprotoize building with gcc-3.4-20040325

Ian Lance Taylor ian@wasabisystems.com
Sun Apr 25 02:08:00 GMT 2004


"Rekha Deshmukh" <RekhaD@KPITCummins.com> writes:

> My build system is GNU/Linux and host is Mingw. 
> The configuration command I am using is 
> ./configure --target=h8300-elf --host=i386-pc-mingw32msvc --build=i686-pc-linux-gnu 
> I checked the auto-host.h file and it does not have HAVE_SYS_WAIT_H defined.

I think I got confused.  Sorry.

Your original bug report shows this:

i386-pc-mingw32msvc-gcc -c -DIN_GCC -DCROSS_COMPILE   -DGENERATOR_FILE    -I. -I. -I/home/nitins2/src/gcc-3.4-20040325/gcc -I/home/nitins2/src/gcc-3.4-20040325/gcc/. -I/home/nitins2/src/gcc-3.4-20040325/gcc/../include -I../intl /home/nitins2/src/gcc-3.4-20040325/gcc/genmodes.c -o genmodes.o

genmodes.o should always be built using CC_FOR_BUILD.  If your build
system is GNU/Linux and your host system is mingw, then CC_FOR_BUILD
should be something like "gcc".  "i386-pc-mingw32msvc-gcc", as used in
the above command line, should be CC, not CC_FOR_BUILD.

So we need to figure out why make used CC rather than CC_FOR_BUILD
when building genmodes.o.  (And we need to confirm that CC_FOR_BUILD
is set correctly in Makefile.)

Ian



More information about the Gcc mailing list