Re: [Openocd-development] Build error with mingw32

2011-08-15 Thread Jie Zhang
On Sun, Aug 14, 2011 at 6:39 AM, Steve Bennett ste...@workware.net.au wrote: I pushed a change to jimtcl git which will use Sleep() if usleep() is unavailable on mingw32. Now building OpenOCD with latest jimtcl with mingw32 works for me. Thank you! Jie

Re: [Openocd-development] Build error with mingw32

2011-08-14 Thread Spencer Oliver
On Aug 14, 2011 10:01 AM, Xiaofan Chen xiaof...@gmail.com wrote: On Sat, Aug 13, 2011 at 9:38 AM, Jie Zhang jzhang...@gmail.com wrote: On Fri, Aug 12, 2011 at 9:27 PM, Xiaofan Chen xiaof...@gmail.com wrote: This is probably because you have a very old version of MinGW and MinGW Win32-API.

Re: [Openocd-development] Build error with mingw32

2011-08-14 Thread Steve Bennett
On 14/08/2011, at 7:11 PM, Spencer Oliver wrote: On Aug 14, 2011 10:01 AM, Xiaofan Chen xiaof...@gmail.com wrote: On Sat, Aug 13, 2011 at 9:38 AM, Jie Zhang jzhang...@gmail.com wrote: On Fri, Aug 12, 2011 at 9:27 PM, Xiaofan Chen xiaof...@gmail.com wrote: This is probably because you

Re: [Openocd-development] Build error with mingw32

2011-08-13 Thread Xiaofan Chen
On Sat, Aug 13, 2011 at 9:38 AM, Jie Zhang jzhang...@gmail.com wrote: On Fri, Aug 12, 2011 at 9:27 PM, Xiaofan Chen xiaof...@gmail.com wrote: On Sat, Aug 13, 2011 at 9:00 AM, Jie Zhang jzhang...@gmail.com wrote: Another option is to drop mingw32 and require mingw-w64. Do not do that. usleep

Re: [Openocd-development] Build error with mingw32

2011-08-12 Thread Steve Bennett
On 13/08/2011, at 6:41 AM, Jie Zhang wrote: The current HEAD cannot build with mingw32 libtool: link: i586-mingw32msvc-gcc -std=gnu99 -g -O2 -I/home/jie/installs/openocd/include -D__USE_MINGW_ANSI_STDIO -Wall -Wstrict-prototypes -Wformat-security -Wshadow -Wextra -Wno-unused-parameter

Re: [Openocd-development] Build error with mingw32

2011-08-12 Thread Jie Zhang
On Fri, Aug 12, 2011 at 5:19 PM, Steve Bennett ste...@workware.net.au wrote: On 13/08/2011, at 6:41 AM, Jie Zhang wrote: The current HEAD cannot build with mingw32 libtool: link: i586-mingw32msvc-gcc -std=gnu99 -g -O2 -I/home/jie/installs/openocd/include -D__USE_MINGW_ANSI_STDIO -Wall

Re: [Openocd-development] Build error with mingw32

2011-08-12 Thread Jie Zhang
On Fri, Aug 12, 2011 at 9:27 PM, Xiaofan Chen xiaof...@gmail.com wrote: On Sat, Aug 13, 2011 at 9:00 AM, Jie Zhang jzhang...@gmail.com wrote: Another option is to drop mingw32 and require mingw-w64. Do not do that. usleep is fine with later version of MinGW.org Win32API package. This is

Re: [Openocd-development] Build error with mingw32

2011-08-12 Thread Xiaofan Chen
On Sat, Aug 13, 2011 at 9:38 AM, Jie Zhang jzhang...@gmail.com wrote: On Fri, Aug 12, 2011 at 9:27 PM, Xiaofan Chen xiaof...@gmail.com wrote: On Sat, Aug 13, 2011 at 9:00 AM, Jie Zhang jzhang...@gmail.com wrote: Another option is to drop mingw32 and require mingw-w64. Do not do that. usleep

Re: [Openocd-development] Build error with mingw32

2011-08-12 Thread Xiaofan Chen
On Sat, Aug 13, 2011 at 11:56 AM, Jie Zhang jzhang...@gmail.com wrote: On Fri, Aug 12, 2011 at 10:15 PM, Xiaofan Chen xiaof...@gmail.com wrote: BTW, there are other problems with the Linux MinGW packages in Debian/Ubuntu. This is one of them which does not affect C based programs like