public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Error while building the mingw sh-coff cross compiler
@ 2002-08-08 22:39 Rekha Deshmukh
  2002-08-08 22:53 ` [Mingw-users] " Danny Smith
  0 siblings, 1 reply; 3+ messages in thread
From: Rekha Deshmukh @ 2002-08-08 22:39 UTC (permalink / raw)
  To: gcc, mingw-users

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.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Mingw-users] Error while building the mingw sh-coff cross compiler
  2002-08-08 22:39 Error while building the mingw sh-coff cross compiler Rekha Deshmukh
@ 2002-08-08 22:53 ` Danny Smith
  0 siblings, 0 replies; 3+ messages in thread
From: Danny Smith @ 2002-08-08 22:53 UTC (permalink / raw)
  To: Rekha Deshmukh, gcc, mingw-users

 --- Rekha Deshmukh <RekhaD@kpit.com> wrote: > Hi all!
> 
> 
> 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.


Delete that line.  It has been #if O'd out in CVS sources. It causes problems
now because build process include stdbool.h which defines bools as _Bool which
is a standard builtin type.


Danny

http://digital.yahoo.com.au - Yahoo! Digital How To
- Get the best out of your PC!

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Error while building the mingw sh-coff cross compiler
@ 2002-08-08 23:03 Nitin  Gupta, Noida
  0 siblings, 0 replies; 3+ messages in thread
From: Nitin  Gupta, Noida @ 2002-08-08 23:03 UTC (permalink / raw)
  To: Rekha Deshmukh, gcc, mingw-users

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.
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
> 
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-08-08 23:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-08 22:39 Error while building the mingw sh-coff cross compiler Rekha Deshmukh
2002-08-08 22:53 ` [Mingw-users] " Danny Smith
2002-08-08 23:03 Nitin  Gupta, Noida

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).