On Tuesday 10 February 2009 19:56:01, Vincent Torri wrote: > I have an error when copiling gdb 6.8. I have to compile it as I have a 64 > bits linux distro.
> What I did: > > 1) I downloaded gdb 6.8, and go into its directory (/path/gdb-6.8) > 2) mkdir build > 3) cd build > 4) ../configure --host=arm-mingw32ce --prefix=$HOME/local/wince > 5) make (Not putting the build directory inside the source directory would be slightly better.) That should be: 4) ../configure --target=arm-mingw32ce --prefix=$HOME/local/wince That is, you're building a GDB binary that is hosted on your linux machine, which will target mingw32ce debugging. But, it's still a linux binary. You don't even need to have a mingw32ce compiler for this step. 5) make Then you need to build gdbserver. This is a ARM WinCE binary, so, hosted to run on arm-mingw32ce: mkdir build-gdbserver cd build-gdbserver ../src/gdb/gdbserver --host=arm-mingw32ce --prefix=foo make You'll of course need arm-mingw32ce-gcc to build it. :-) Eh, someone placed something like this on the wiki already: http://cegcc.wiki.sourceforge.net/Debugging Thank you for that! > > Then, libiberty is compiling, but fails with the following error: > > arm-mingw32ce-gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../libiberty/../include > -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic > ../../libiberty/fnmatch.c -o > fnmatch.o > In file included from ../../libiberty/fnmatch.c:46: > /home/torri/local/opt/mingw32ce/lib/gcc/arm-mingw32ce/4.1.0/../../../../arm-mingw32ce/include/errno.h:12:25: > error: no include path in which to search for errno.h > make[2]: *** [fnmatch.o] Erreur 1 Eh, eh. You were trying to build a gdb that would run on the device. :-) > I know that errno.h in mingw32ce is a fake one, but I don't know how to > fix the compilation with mingw32ce (except maybe by removing all the errno > stuff in fnmatch.c) > > Does someone know what to do ? > thank you > Vincent Torri -- Pedro Alves ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel