Building ARM GCC tools for Windows

Mumit Khan khan@NanoTech.Wisc.EDU
Thu Apr 27 23:30:00 GMT 2000


Vinson Lee <leev@pasteur.EECS.Berkeley.EDU> writes:
> I am attempting to build ARM development tools for Windows and am unable
> to compile GCC.
> 
> I am following the online instructions located at 
> http://sourceware.cygnus.com/ecos/tools/win-arm-elf.html .
> 
> At Step 4 (Build and install GCC), I get the following error ...
> 
> In file included from
> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../i686-pc-cygwin/include/win
> def.h:141,
> 
> from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../i686-pc-cygwin/includ
> e/windows.h:96,
>                  
> from /src/gcc/gcc-2.95.2/gcc/prefix.c:69:
> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../i686-pc-cygwin/include/win
> nt.h:2053: 
> two or more data types in declaration of `type name'
> 
> make[1]: *** [prefix.o] Error 1
> make[1]: Leaving directory `/tmp/build/gcc/gcc'
> make: *** [all-gcc] Error 2
> make: Leaving directory `/tmp/build/gcc'

It would've been helpful if you had supplied (after looking at it yourself
of course) the preprocessed source for the affected file.
  
  $ make CFLAGS=-g all-gcc

should've done the job. And, please do mention what gcc sources you're
using!

I remember another user who ran into something similar, and the cause
was one of the target files (arm.h?) was defining a macro called "Hint" 
which caused havoc for a structure member named "Hint" in winnt.h file.
This was with gcc-2.95.x source base.

As far as I can tell, this problem is now fixed in the dev sources, 
where the macro Hint is moved into arm.c file instead and doesn't 
encroach into user namespace.

Since I don't know what your winnt.h:2053 contains, it's just a guess,
but I'd bet it's something of that nature. If it is so, rename Hint to
ARM_HINT or something like that and rebuild.

Regards,
Mumit



More information about the Gcc-bugs mailing list