I'm trying to compile gdb from the SVN sources, and am miserably failing there.
Any suggestions as to what I might be doing wrong, or what's wrong with my
box? It seems that that particular file is supposed to be compiled for the host
architecture, but it picks up the linux stdarg.h and windows includes
with all the unfortunate consequences.

Just for the fun of it, I tried compiling this particular file with
the cegcc itself, but then
it fails with not being able to find the <sys/procfs.h>, so then I
assume the actual
target for this file is supposed to be the host architecture.

Thanks,
  Pawel.

$ sh build-cegcc.sh gdb
...
gcc -c -I/root/ws/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-wince-cegcc-stub.exe"'   -I.
-I/root/ws/cegcc/cegcc/src/gdb/gdb
-I/root/ws/cegcc/cegcc/src/gdb/gdb/config
-DLOCALEDIR="\"/opt/cegcc/share/locale\"" -DHAVE_CONFIG_H
-I/root/ws/cegcc/cegcc/src/gdb/gdb/../include/opcode
-I/root/ws/cegcc/cegcc/src/gdb/gdb/../readline/.. -I../bfd
-I/root/ws/cegcc/cegcc/src/gdb/gdb/../bfd
-I/root/ws/cegcc/cegcc/src/gdb/gdb/../include -I../intl
-I/root/ws/cegcc/cegcc/src/gdb/gdb/../intl  -DMI_OUT=1 -Wimplicit
-Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses
-Wpointer-arith -Wformat-nonliteral -Wunused-label -Wunused-function
/root/ws/cegcc/cegcc/src/gdb/gdb/win32-nat.c
In file included from /root/ws/cegcc/cegcc/src/w32api/include/windef.h:265,
                 from /root/ws/cegcc/cegcc/src/w32api/include/windows.h:49,
                 from /root/ws/cegcc/cegcc/src/gdb/gdb/win32-nat.c:28:
/root/ws/cegcc/cegcc/src/w32api/include/winnt.h:3919: error:
conflicting types for 'size_t'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/include/stddef.h:214: error:
previous declaration of 'size_t' was here
In file included from /root/ws/cegcc/cegcc/src/gdb/gdb/win32-nat.c:83:
/root/ws/cegcc/cegcc/src/gdb/gdb/win32.h:32: warning: 'stdcall'
attribute ignored
/root/ws/cegcc/cegcc/src/gdb/gdb/win32.h:33: warning: 'stdcall'
attribute ignored
/root/ws/cegcc/cegcc/src/gdb/gdb/win32.h:35: warning: 'stdcall'
attribute ignored
/root/ws/cegcc/cegcc/src/gdb/gdb/win32.h:36: warning: 'stdcall'
attribute ignored
/root/ws/cegcc/cegcc/src/gdb/gdb/win32.h:37: warning: 'stdcall'
attribute ignored
/root/ws/cegcc/cegcc/src/gdb/gdb/win32.h:38: warning: 'stdcall'
attribute ignored
/root/ws/cegcc/cegcc/src/gdb/gdb/win32.h:39: warning: 'stdcall'
attribute ignored
/root/ws/cegcc/cegcc/src/gdb/gdb/win32.h:41: warning: 'stdcall'
attribute ignored
/root/ws/cegcc/cegcc/src/gdb/gdb/win32.h:42: warning: 'stdcall'
attribute ignored
/root/ws/cegcc/cegcc/src/gdb/gdb/win32.h:43: warning: 'stdcall'
attribute ignored
/root/ws/cegcc/cegcc/src/gdb/gdb/win32.h:44: warning: 'stdcall'
attribute ignored
/root/ws/cegcc/cegcc/src/gdb/gdb/win32.h:45: warning: 'stdcall'
attribute ignored
/root/ws/cegcc/cegcc/src/gdb/gdb/win32.h:46: warning: 'stdcall'
attribute ignored
/root/ws/cegcc/cegcc/src/gdb/gdb/win32.h:47: warning: 'stdcall'
attribute ignored
/root/ws/cegcc/cegcc/src/gdb/gdb/win32.h:48: warning: 'stdcall'
attribute ignored
/root/ws/cegcc/cegcc/src/gdb/gdb/win32-nat.c: In function 'get_image_name':
/root/ws/cegcc/cegcc/src/gdb/gdb/win32-nat.c:1050: warning: implicit
declaration of function 'MyWcstombs'
/root/ws/cegcc/cegcc/src/gdb/gdb/win32-nat.c: In function 'isdrive':
/root/ws/cegcc/cegcc/src/gdb/gdb/win32-nat.c:2106: warning: implicit
declaration of function 'isalpha'
/root/ws/cegcc/cegcc/src/gdb/gdb/win32-nat.c:2507:2: warning: #warning
"This is probably failing..."
/root/ws/cegcc/cegcc/src/gdb/gdb/win32-nat.c: At top level:
/root/ws/cegcc/cegcc/src/gdb/gdb/win32-nat.c:3103: warning: 'stdcall'
attribute ignored
/root/ws/cegcc/cegcc/src/gdb/gdb/win32-nat.c:3108: warning: 'stdcall'
attribute ignored
make[2]: *** [win32-nat.o] Error 1
make[2]: Leaving directory `/root/ws/cegcc/cegcc/src/build-cegcc/gdb/gdb'
make[1]: *** [all-gdb] Error 2
make[1]: Leaving directory `/root/ws/cegcc/cegcc/src/build-cegcc/gdb'
make: *** [all] Error 2


-- 
With best of best regards
Pawel S. Veselov

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to