This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: Error while building the mingw sh-coff cross compiler
- From: "Nitin Gupta, Noida" <niting at noida dot hcltech dot com>
- To: Rekha Deshmukh <RekhaD at kpit dot com>, gcc at gcc dot gnu dot org, mingw-users at lists dot sourceforge dot net
- Date: Fri, 9 Aug 2002 11:30:00 +0530
- Subject: RE: Error while building the mingw sh-coff cross compiler
Comment the line objidl.h:309
_VARIANT_BOOL bool;
It is the part of the union _ANONYMOUS_UNION
and I think this "unnamed field" does not solve
any purpose. Moreover the latest MSDN
document about this union describe this field
as _obselete_. This needs to be fixed
in mingw-runtime
Regards.
Nitin.
> -----Original Message-----
> From: Rekha Deshmukh [mailto:RekhaD@kpit.com]
> Sent: Friday, August 09, 2002 11:10 AM
> To: gcc@gcc.gnu.org; mingw-users@lists.sourceforge.net
> Subject: Error while building the mingw sh-coff cross compiler
>
>
> Hi all!
>
> 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 \
> -DPREFIX=\"/usr/mingwsh-coff3.2-20020807\" \
> -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,
> from
> /usr/mingw-3.0.3patch/i386-pc-mingw32msvc/include/ole2.h:9,
> from
> /usr/mingw-3.0.3patch/i386-pc-mingw32msvc/include/windows.h:108,
> from
> /home/kpit/fsfsrc/gcc-3.2-20020807/gcc/prefix.c:70:
> /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[1]: *** [prefix.o] Error 1
> make[1]: 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
> _VARIANT_BOOL bool;
> 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
> Rekha Bhintade
> KPIT Infosystems Ltd.
> Tel. (O) 5382358 / 5380217 (333)
> (R) 5386069
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 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.
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>