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 is fine with later version of MinGW.org
>> Win32API package.
>>
>> This is probably because you have a very old version of MinGW
>> and MinGW Win32-API. Seems to be a problem with Debian.
>> http://sourceforge.net/projects/mingw/files/MinGW/BaseSystem/RuntimeLibrary/Win32-API/
>>
>> Debian seems to ship a 3-year old MinGW Win32-API.
>> http://packages.debian.org/search?searchon=sourcenames&keywords=mingw32
>>
> Hmm, good point. I have written an email to the mingw32-runtime
> package maintainer of Debian to see if he has any plan to update it to
> the latest version.
>

Hmm, I just test under Ubuntu 11.04 and cross compile the latest git works
fine. It comes with mingw32-runtime version 3.15.2.0ubuntu1 and usleep is
there. Supposedly Debian testing should come with newer version of
packages than ubuntu.

mcuee@Ubuntu:~/Desktop/build/openocd/build-win32-libftdi$ cat
myconfig-win32-libftdi.sh
../openocd/configure --host=i586-mingw32msvc --build=i686-pc-linux-gnu
--enable-maintainer-mode --disable-shared --disable-werror
--enable-jlink --enable-ft2232_libftdi --enable-presto_libftdi
--enable-usbprog --enable-vsllink --enable-usb_blaster_libftdi
--enable-arm-jtag-ew --enable-rlink

configure:12133: checking for gettimeofday
configure:12133: i586-mingw32msvc-gcc -std=gnu99 -o conftest.exe -g
-O2   conftest.c  >&5
configure:12133: $? = 0
configure:12133: result: yes
configure:12144: checking for usleep
configure:12144: i586-mingw32msvc-gcc -std=gnu99 -o conftest.exe -g
-O2   conftest.c  >&5
configure:12144: $? = 0
configure:12144: result: yes


BTW, your config.log seems to be quite strange. I do not see those
things in my config.log. I only see jimtcl mentioned briefly.

configure:16681: === configuring in jimtcl
(/home/mcuee/Desktop/build/openocd/build-win32-libftdi/jimtcl)
configure:16744: running /bin/bash ../../openocd/jimtcl/configure.gnu
--disable-option-checking '--prefix=/usr/local'
'--host=i586-mingw32msvc' '--build=i686-pc-linux-gnu'
'--enable-maintainer-mode' '--disable-shared' '--disable-werror'
'--enable-jlink' '--enable-ft2232_libftdi' '--enable-presto_libftdi'
'--enable-usbprog' '--enable-vsllink' '--enable-usb_blaster_libftdi'
'--enable-arm-jtag-ew' '--enable-rlink'
'build_alias=i686-pc-linux-gnu' 'host_alias=i586-mingw32msvc'
--cache-file=/dev/null --srcdir=../../openocd/jimtcl

-- 
Xiaofan
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to