public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* Successful compile of arm-elf-gcc under Cygwin (was: GCC under Cygwin)
@ 2000-09-03 11:15 Benoit Miller
  0 siblings, 0 replies; only message in thread
From: Benoit Miller @ 2000-09-03 11:15 UTC (permalink / raw)
  To: crossgcc

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2007 bytes --]

Michael,

I was having the exact same problem, and I managed to get around it by
editing the /usr/include/winnt.h system file (yikes!).

Basically, from line 2206, change this:

typedef struct _IMAGE_IMPORT_BY_NAME {
    WORD Hint;
    BYTE Name[1];
} IMAGE_IMPORT_BY_NAME, *PIMAGE_IMPORT_BY_NAME;

to this:

typedef struct _IMAGE_IMPORT_BY_NAME {
    unsigned short Hint;
    unsigned char Name[1];
} IMAGE_IMPORT_BY_NAME, *PIMAGE_IMPORT_BY_NAME;

It's not exactly proper however... but it works. My guess is it's a weird
bug in GCC, since those typedefs are used everywhere in the winnt.h file and
GCC only chokes on that one.

Cheers,
--
Benoit Miller - fulg@iname.com
"There is no spoon."


-- Original message: --

To: crossgcc at sources dot redhat dot com
Subject: GCC under Cygwin
From: Michael Schmid <mlschmid at iis dot fhg dot de>
Date: Tue, 22 Aug 2000 09:28:50 +0100

> Hi,
>
> I've tried to build the gcc-core-2.95.2
> under the actual cygwin environment.
> After configuring with
>
> ./configure --target=arm-elf
> --prefix=/cross --with-newlib
> --with-headers=/src/newlib-1.8.2/newlib/libc/include
>
> and starting the make I got folowing
> error:

[snip]

> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/winnt.h:2207:
> two or
> more data types in declaration of `type
> name'
> make[1]: *** [prefix.o] Fehler 1
> make[1]: Verlassen des Verzeichnisses
> Verzeichnis »/src/gcc-2.95.2-2/gcc«
> make: *** [all-gcc] Fehler 2
>
> This must be a typical cygwin error
> because of the filenames windef.h,
> winnt.h, windows.h.
> Yesterday I've installed the complete
> cygwin environment from
> sourceware.cygnus.com. I think this
> should be actual enough??? Building the
> binutils for arm-elf worked without
> problems.
>
> I hope someone could help me,
>
> Best regards,
>
> Michael
>
> mlschmid@iis.fhg.de


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-09-03 11:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-03 11:15 Successful compile of arm-elf-gcc under Cygwin (was: GCC under Cygwin) Benoit Miller

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