With the help of the SparkFun thread, http://forum.sparkfun.com/viewtopic.php?t=11221 I was tryam going to build OpenOCD but somehow it failed.
$ ./configure --enable-maintainer-mode --enable-jlink CC="gcc -mno-cygwin" CFLAGS="-O0 -g -Wall" This is ok. But make failed. mc...@acerpc ~/mcu/openocd/trunk $ make make all-recursive make[1]: Entering directory `/home/mcuee/mcu/openocd/trunk' Making all in src make[2]: Entering directory `/home/mcuee/mcu/openocd/trunk/src' Making all in helper make[3]: Entering directory `/home/mcuee/mcu/openocd/trunk/src/helper' /bin/sh ../../libtool --tag=CC --mode=compile gcc -mno-cygwin -std=gnu99 -DHAV E_CONFIG_H -I. -I../.. -I../../src/server -I../../src/target -DPKGDATADIR=\"/us r/local/share/openocd\" -DPKGLIBDIR=\"/usr/local/lib/openocd\" -Wno-sign-compar e -O0 -g -Wall -Wall -Wstrict-prototypes -Wformat-security -Wextra -Wno-unused-p arameter -Wbad-function-cast -Wcast-align -Wredundant-decls -Werror -MT libhelpe r_la-binarybuffer.lo -MD -MP -MF .deps/libhelper_la-binarybuffer.Tpo -c -o libhe lper_la-binarybuffer.lo `test -f 'binarybuffer.c' || echo './'`binarybuffer.c mkdir .libs gcc -mno-cygwin -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../src/server -I../ ../src/target -DPKGDATADIR=\"/usr/local/share/openocd\" -DPKGLIBDIR=\"/usr/local /lib/openocd\" -Wno-sign-compare -O0 -g -Wall -Wall -Wstrict-prototypes -Wformat -security -Wextra -Wno-unused-parameter -Wbad-function-cast -Wcast-align -Wredun dant-decls -Werror -MT libhelper_la-binarybuffer.lo -MD -MP -MF .deps/libhelper_ $ binarybuffer.o In file included from ../../config.h:256, from binarybuffer.c:24: ./replacements.h:213: error: parse error before "Elf32_Addr" ./replacements.h:213: warning: type defaults to `int' in declaration of `Elf32_A ddr' ./replacements.h:213: warning: data definition has no type or storage class ./replacements.h:214: error: parse error before "Elf32_Half" ./replacements.h:214: warning: type defaults to `int' in declaration of `Elf32_H alf' ./replacements.h:214: warning: data definition has no type or storage class ./replacements.h:215: error: parse error before "Elf32_Off" ./replacements.h:215: warning: type defaults to `int' in declaration of `Elf32_O ff' ./replacements.h:215: warning: data definition has no type or storage class ./replacements.h:216: error: parse error before "Elf32_Sword" $ word' ./replacements.h:216: warning: data definition has no type or storage class ./replacements.h:217: error: parse error before "Elf32_Word" ./replacements.h:217: warning: type defaults to `int' in declaration of `Elf32_W ord' ./replacements.h:217: warning: data definition has no type or storage class ./replacements.h:218: error: parse error before "Elf32_Size" ./replacements.h:218: warning: type defaults to `int' in declaration of `Elf32_S ize' ./replacements.h:218: warning: data definition has no type or storage class ./replacements.h:219: error: parse error before "Elf32_Hashelt" ./replacements.h:219: warning: type defaults to `int' in declaration of `Elf32_H ashelt' ./replacements.h:219: warning: data definition has no type or storage class ./replacements.h:224: error: parse error before "Elf32_Half" ./replacements.h:224: warning: no semicolon at end of struct or union ./replacements.h:225: warning: type defaults to `int' in declaration of `e_machi ne' ./replacements.h:225: warning: data definition has no type or storage class ./replacements.h:226: error: parse error before "e_version" ./replacements.h:226: warning: type defaults to `int' in declaration of `e_versi on' ./replacements.h:226: warning: data definition has no type or storage class ./replacements.h:227: error: parse error before "e_entry" ./replacements.h:227: warning: type defaults to `int' in declaration of `e_entry ' ./replacements.h:227: warning: data definition has no type or storage class ./replacements.h:228: error: parse error before "e_phoff" ./replacements.h:228: warning: type defaults to `int' in declaration of `e_phoff ' ./replacements.h:228: warning: data definition has no type or storage class ./replacements.h:229: error: parse error before "e_shoff" ./replacements.h:229: warning: type defaults to `int' in declaration of `e_shoff ' ./replacements.h:229: warning: data definition has no type or storage class ./replacements.h:230: error: parse error before "e_flags" ./replacements.h:230: warning: type defaults to `int' in declaration of `e_flags ' ./replacements.h:230: warning: data definition has no type or storage class ./replacements.h:231: error: parse error before "e_ehsize" ./replacements.h:231: warning: type defaults to `int' in declaration of `e_ehsiz e' ./replacements.h:231: warning: data definition has no type or storage class ./replacements.h:232: error: parse error before "e_phentsize" ./replacements.h:232: warning: type defaults to `int' in declaration of `e_phent size' ./replacements.h:232: warning: data definition has no type or storage class ./replacements.h:233: error: parse error before "e_phnum" ./replacements.h:233: warning: type defaults to `int' in declaration of `e_phnum ' ./replacements.h:233: warning: data definition has no type or storage class ./replacements.h:234: error: parse error before "e_shentsize" ./replacements.h:234: warning: type defaults to `int' in declaration of `e_shent size' ./replacements.h:234: warning: data definition has no type or storage class ./replacements.h:235: error: parse error before "e_shnum" ./replacements.h:235: warning: type defaults to `int' in declaration of `e_shnum ' ./replacements.h:235: warning: data definition has no type or storage class ./replacements.h:236: error: parse error before "e_shstrndx" ./replacements.h:236: warning: type defaults to `int' in declaration of `e_shstr ndx' ./replacements.h:236: warning: data definition has no type or storage class ./replacements.h:237: warning: type defaults to `int' in declaration of `Elf32_E hdr' ./replacements.h:237: warning: data definition has no type or storage class ./replacements.h:252: error: parse error before "Elf32_Word" ./replacements.h:252: warning: no semicolon at end of struct or union ./replacements.h:253: warning: type defaults to `int' in declaration of `p_offse t' ./replacements.h:253: warning: data definition has no type or storage class ./replacements.h:254: error: parse error before "p_vaddr" ./replacements.h:254: warning: type defaults to `int' in declaration of `p_vaddr ' ./replacements.h:254: warning: data definition has no type or storage class ./replacements.h:255: error: parse error before "p_paddr" ./replacements.h:255: warning: type defaults to `int' in declaration of `p_paddr ' ./replacements.h:255: warning: data definition has no type or storage class ./replacements.h:256: error: parse error before "p_filesz" ./replacements.h:256: warning: type defaults to `int' in declaration of `p_files z' ./replacements.h:256: warning: data definition has no type or storage class ./replacements.h:257: error: parse error before "p_memsz" ./replacements.h:257: warning: type defaults to `int' in declaration of `p_memsz ' ./replacements.h:257: warning: data definition has no type or storage class ./replacements.h:258: error: parse error before "p_flags" ./replacements.h:258: warning: type defaults to `int' in declaration of `p_flags ' ./replacements.h:258: warning: data definition has no type or storage class ./replacements.h:259: error: parse error before "p_align" ./replacements.h:259: warning: type defaults to `int' in declaration of `p_align ' ./replacements.h:259: warning: data definition has no type or storage class ./replacements.h:260: warning: type defaults to `int' in declaration of `Elf32_P hdr' ./replacements.h:260: warning: data definition has no type or storage class make[3]: *** [libhelper_la-binarybuffer.lo] Error 1 make[3]: Leaving directory `/home/mcuee/mcu/openocd/trunk/src/helper' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/mcuee/mcu/openocd/trunk/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/mcuee/mcu/openocd/trunk' make: *** [all] Error 2 mc...@acerpc ~/mcu/openocd/trunk $ gcc -v Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs Configured with: /usr/build/package/orig/test.respin/gcc-3.4.4-3/configure --ver bose --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --libe xecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-langu ages=c,ada,c++,d,f77,pascal,java,objc --enable-nls --without-included-gettext -- enable-version-specific-runtime-libs --without-x --enable-libgcj --disable-java- awt --with-system-zlib --enable-interpreter --disable-libgcj-debug --enable-thre ads=posix --enable-java-gc=boehm --disable-win32-registry --enable-sjlj-exceptio ns --enable-hash-synchronization --enable-libstdcxx-debug Thread model: posix gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) -- Xiaofan http://mcuee.blogspot.com _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development