On Sat, 2008-07-05 at 17:36 +0200, janrinze wrote: > Hi all, > > after a lot of help from both Vincent and Danny I have gotten my Ubuntu > 8.04 install updated to be able to compile cegcc-mingw32ce. > > Apparently I need flex, bison and libncurses5-dev .. > > So far so good, but there are new errors in the compile now: > > gcc -c -I/home/janrinze/Desktop/src/cegcc/cegcc/cegcc/src/w32api/include > -D__arm__ -DARM -U_X86_ -U_M_IX86 -U__i386__ -U__i486__ -U__i586__ > -U__i686__ -DUNICODE -DUNDER_CE -D_WIN32_WCE > -DWINCE_STUB='"arm-mingw32ce-stub.exe"' -I. > -I/home/janrinze/Desktop/src/cegcc/cegcc/cegcc/src/gdb/gdb > -I/home/janrinze/Desktop/src/cegcc/cegcc/cegcc/src/gdb/gdb/config > -DLOCALEDIR="\"/opt/mingw32ce/share/locale\"" -DHAVE_CONFIG_H > -I/home/janrinze/Desktop/src/cegcc/cegcc/cegcc/src/gdb/gdb/../include/opcode > -I/home/janrinze/Desktop/src/cegcc/cegcc/cegcc/src/gdb/gdb/../readline/.. > -I../bfd -I/home/janrinze/Desktop/src/cegcc/cegcc/cegcc/src/gdb/gdb/../bfd > -I/home/janrinze/Desktop/src/cegcc/cegcc/cegcc/src/gdb/gdb/../include > -I../intl -I/home/janrinze/Desktop/src/cegcc/cegcc/cegcc/src/gdb/gdb/../intl > -DMI_OUT=1 -DTUI=1 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat > -Wparentheses -Wpointer-arith -Wformat-nonliteral -Wunused-label > -Wunused-function > /home/janrinze/Desktop/src/cegcc/cegcc/cegcc/src/gdb/gdb/win32-nat.c > In file included > from > /home/janrinze/Desktop/src/cegcc/cegcc/cegcc/src/w32api/include/windef.h:265, > > from > /home/janrinze/Desktop/src/cegcc/cegcc/cegcc/src/w32api/include/windows.h:49, > > from /home/janrinze/Desktop/src/cegcc/cegcc/cegcc/src/gdb/gdb/win32-nat.c:28: > /home/janrinze/Desktop/src/cegcc/cegcc/cegcc/src/w32api/include/winnt.h:3919: > error: conflicting types for ‘size_t’ > /usr/lib/gcc/x86_64-linux-gnu/4.2.3/include/stddef.h:214: error: > previous declaration of ‘size_t’ was here > > It seems that the 64 bit version of stddef.h conflicts with winnt.h > We either need to resolve this with some #ifdef's or there may be some > other work-around. Any ideas? > > regards, > Jan Rinze. >
I have an intermediate solution to this problem: $ svn diff src/w32api/include/winnt.h Index: src/w32api/include/winnt.h =================================================================== --- src/w32api/include/winnt.h (revision 1167) +++ src/w32api/include/winnt.h (working copy) @@ -3916,7 +3916,9 @@ #endif /* _WIN32_WCE */ #ifdef _WIN32_WCE -typedef unsigned int size_t; +#ifndef __SIZE_TYPE__ +typedef long unsigned int size_t; +#endif #ifndef offsetof #define offsetof(type, ident) ((size_t)&(((type*)0)->ident)) #endif Which shows that I have added a #ifndef __SIZE_TYPE__ ... #endif around the typedef. The 'long' attribute stems from the stdef.h so i copied that too.. This enables me to build gdb. (which apparently needs librapi to build, so I installed that too.) regards, Jan Rinze. ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel