This is the mail archive of the
mailing list for the GCC project.
Error while building the mingw sh-coff cross compiler
- From: "Rekha Deshmukh" <RekhaD at kpit dot com>
- To: <gcc at gcc dot gnu dot org>,<mingw-users at lists dot sourceforge dot net>
- Date: Fri, 9 Aug 2002 11:09:34 +0530
- Subject: Error while building the mingw sh-coff cross compiler
The following error was observed while building the mingw cross compiler for sh-coff. The sources I have used are binutils-2.13, gcc-3.2-20020807 and newlib-1.10.0. While make all-gcc the following error occurs. I have used the mingw native compiler which was built with latest mingw-runtime and w32api i.e mingw-runtime-2.0 and w32api-1.5 for this cross-compiler.
i386-pc-mingw32msvc-gcc -DIN_GCC -DCROSS_COMPILE -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I. -I/home/kpit/fsfsrc/gcc-3.2-20020807/gcc -I/home/kpit/fsfsrc/gcc-3.2-20020807/gcc/. -I/home/kpit/fsfsrc/gcc-3.2-20020807/gcc/config -I/home/kpit/fsfsrc/gcc-3.2-20020807/gcc/../include \
-c /home/kpit/fsfsrc/gcc-3.2-20020807/gcc/prefix.c -o prefix.o
In file included from /usr/mingw-3.0.3patch/i386-pc-mingw32msvc/include/objbase.h:56,
/usr/mingw-3.0.3patch/i386-pc-mingw32msvc/include/objidl.h:309: long, short, signed or unsigned invalid for `type name'
/home/kpit/fsfsrc/gcc-3.2-20020807/gcc/prefix.c: In function `lookup_key':
/home/kpit/fsfsrc/gcc-3.2-20020807/gcc/prefix.c:161: warning: pointer targets in passing arg 5 of `RegQueryValueExA' differ in signedness
/home/kpit/fsfsrc/gcc-3.2-20020807/gcc/prefix.c:165: warning: pointer targets in passing arg 5 of `RegQueryValueExA' differ in signedness
make: *** [prefix.o] Error 1
make: Leaving directory `/home/kpit/mingwsh-coffbld3.2-20020807/build-gcc-3.2-20020807/gcc'
make: *** [all-gcc] Error 2
When observed the erroneous line I found the following sentence is
in /usr/<mingw native compiler>/include/objidl.h file where _VARIANT_BOOL is typedef to short.
This error does not occur if I use the mingw native compiler which is built using mingw-runtime-2.0-20020430 and w32api-1.4-2 sources.
Please guide me on this.
Thanks & Regards
KPIT Infosystems Ltd.
Tel. (O) 5382358 / 5380217 (333)
Free download of GNUSH and GNUH8 tool-chains for Hitachi's SH and H8 Series.
The following site also offers free support to European customers.
Read more at http://www.kpit.com.
Latest versions of GNUSH and GNUH8 are released on July 1, 2002.