On Wed, 2009-07-01 at 20:01 -0700, Orin Eman wrote:
> I HAD a working cygwin config, however, after make distclean, svn
> up, ./bootstrap and ./configure <ftd2xx stuff>, the build fails with:
>  
> libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I../..
> -I../../src/helper -I../../src/target -g -O2
> -I/cygdrive/c/projects/Luminary_FTDI_Driver-2_02_04 -Wall
> -Wstrict-prototypes -Wformat-security -Wextra -Wno-unused-parameter
> -Wbad-function-cast -Wcast-align -Wredundant-decls -Werror -MT
> ft2232.lo -MD -MP -MF .deps/ft2232.Tpo -c ft2232.c -o ft2232.o
> ft2232.c: In function `ft2232_init_ftd2xx':
> ft2232.c:1888: warning: int format, uint32_t arg (arg 6)
>  
> The compile line might be a bit messed up due to copying from the
> cygwin window, but it's not really relevant to the problem.
>  
> Should be an easy fix...

Try the attached patch.  Let me know if it helps, and I will included it
in the 0.2.0 release.

Cheers,

Zach

Fix FTD2XX build for CygWin.
---
 ft2232.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
======
only in patch2:
unchanged:
--- src/jtag/ft2232.c	(revision 2445)
+++ src/jtag/ft2232.c	(working copy)
@@ -1885,7 +1885,7 @@
 			{
 				LOG_ERROR("ListDevices: %lu\n", num_devices);
 				for (i = 0; i < num_devices; i++)
-					LOG_ERROR("%i: \"%s\"", i, desc_array[i]);
+					LOG_ERROR("%" PRIu32 ": \"%s\"", i, desc_array[i]);
 			}
 
 			for (i = 0; i < num_devices; i++)
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to