On Tue, Aug 9, 2011 at 10:20 PM, Spencer Oliver <s...@spen-soft.co.uk> wrote:
> Just tested building native windoze under cygwin and working fine here.
> I used the release tarball and the following configure line:
> ./configure --build=i686-pc-cygwin --host=i686-pc-mingw32
> --disable-shared --disable-werror --enable-ft2232_ftd2xx
>

Yes --disable-werror is necessary. If not the following errors
will come out. I remember Jie Zheng has some proposals to
fix this.

libtool: compile:  i686-pc-mingw32-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../..
/../src/jtag/drivers -I../../.. -I../../../../src -I../../../src -DPKGDATADIR=\"
/usr/local/share/openocd\" -DPKGLIBDIR=\"/usr/local/lib/openocd\" -I../../../../
jimtcl -I../../../jimtcl -g -O2 -D__USE_MINGW_ANSI_STDIO -Wall -Wstrict-prototyp
es -Wformat-security -Wshadow -Wextra -Wno-unused-parameter -Wbad-function-cast
-Wcast-align -Wredundant-decls -Werror -MT ft2232.lo -MD -MP -MF .deps/ft2232.Tp
o -c ../../../../src/jtag/drivers/ft2232.c -o ft2232.o
cc1: warnings being treated as errors
../../../../src/jtag/drivers/ft2232.c: In function 'ft2232_write':
../../../../src/jtag/drivers/ft2232.c:518:3: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
../../../../src/jtag/drivers/ft2232.c: In function 'ft2232_read':
../../../../src/jtag/drivers/ft2232.c:561:4: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
../../../../src/jtag/drivers/ft2232.c: In function 'ft2232_init_ftd2xx':
../../../../src/jtag/drivers/ft2232.c:2218:4: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
../../../../src/jtag/drivers/ft2232.c:2222:3: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
../../../../src/jtag/drivers/ft2232.c:2238:5: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'DWORD'
../../../../src/jtag/drivers/ft2232.c:2257:3: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
../../../../src/jtag/drivers/ft2232.c:2268:3: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
../../../../src/jtag/drivers/ft2232.c:2285:3: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
../../../../src/jtag/drivers/ft2232.c:2291:3: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
../../../../src/jtag/drivers/ft2232.c:2297:3: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
../../../../src/jtag/drivers/ft2232.c:2307:3: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_DEVICE'
../../../../src/jtag/drivers/ft2232.c:2308:3: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'DWORD'
../../../../src/jtag/drivers/ft2232.c: In function 'ft2232_purge_ftd2xx':
../../../../src/jtag/drivers/ft2232.c:2322:3: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
../../../../src/jtag/drivers/ft2232.c: In function 'signalyzer_h_led_set':
../../../../src/jtag/drivers/ft2232.c:3643:3: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
../../../../src/jtag/drivers/ft2232.c:3651:3: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
../../../../src/jtag/drivers/ft2232.c:3659:3: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
../../../../src/jtag/drivers/ft2232.c:3666:3: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
../../../../src/jtag/drivers/ft2232.c: In function 'signalyzer_h_init':
../../../../src/jtag/drivers/ft2232.c:3755:3: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
../../../../src/jtag/drivers/ft2232.c:3765:4: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
../../../../src/jtag/drivers/ft2232.c:3779:3: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
../../../../src/jtag/drivers/ft2232.c:3786:3: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
../../../../src/jtag/drivers/ft2232.c:3793:3: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
../../../../src/jtag/drivers/ft2232.c:3801:3: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
../../../../src/jtag/drivers/ft2232.c:3808:3: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
../../../../src/jtag/drivers/ft2232.c:3815:3: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
../../../../src/jtag/drivers/ft2232.c:3822:3: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
../../../../src/jtag/drivers/ft2232.c:3831:3: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
../../../../src/jtag/drivers/ft2232.c:3845:5: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
../../../../src/jtag/drivers/ft2232.c:3910:4: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
../../../../src/jtag/drivers/ft2232.c:3918:4: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
../../../../src/jtag/drivers/ft2232.c:3928:4: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
../../../../src/jtag/drivers/ft2232.c:3937:4: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
../../../../src/jtag/drivers/ft2232.c:3945:4: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
../../../../src/jtag/drivers/ft2232.c:3955:4: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
../../../../src/jtag/drivers/ft2232.c:3964:4: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
../../../../src/jtag/drivers/ft2232.c:3973:4: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
../../../../src/jtag/drivers/ft2232.c:4045:4: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
../../../../src/jtag/drivers/ft2232.c:4054:4: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
../../../../src/jtag/drivers/ft2232.c:4066:4: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
../../../../src/jtag/drivers/ft2232.c:4075:4: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
../../../../src/jtag/drivers/ft2232.c:4084:4: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
../../../../src/jtag/drivers/ft2232.c:4096:4: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
../../../../src/jtag/drivers/ft2232.c:4105:4: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
../../../../src/jtag/drivers/ft2232.c:4114:4: error: format '%u'
expects type 'unsigned int', but argument 6 has type 'FT_STATUS'
make[6]: *** [ft2232.lo] Error 1
make[6]: Leaving directory
`/cygdrive/d/work/openocd/openocd-0.5.0/build_mingw_cross_ftd2xx/src/jtag/drivers'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory
`/cygdrive/d/work/openocd/openocd-0.5.0/build_mingw_cross_ftd2xx/src/jtag'
make[4]: *** [all] Error 2
make[4]: Leaving directory
`/cygdrive/d/work/openocd/openocd-0.5.0/build_mingw_cross_ftd2xx/src/jtag'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/cygdrive/d/work/openocd/openocd-0.5.0/build_mingw_cross_ftd2xx/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/cygdrive/d/work/openocd/openocd-0.5.0/build_mingw_cross_ftd2xx/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/cygdrive/d/work/openocd/openocd-0.5.0/build_mingw_cross_ftd2xx'
make: *** [all] Error 2



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

Reply via email to