Re: [Openocd-development] 0.4.0-rc1 - build errors (-Werror)

2009-12-28 Thread Freddie Chopin
On 2009-12-26 21:10, David Brownell wrote: You could however use %ld and cast the value to long, given that this GCC is ancient enough that z loses. See the attached patch... (as a bonus I've converted byte to bytes in two files, as it should probably be this way...). 4\/3!! From

Re: [Openocd-development] 0.4.0-rc1 - build errors (-Werror)

2009-12-26 Thread David Brownell
On Friday 25 December 2009, Freddie Chopin wrote: On 2009-12-24 23:07, David Brownell wrote: A better fix would be to use %zd (for ssize_t, %d signed) not %zu (for size_t, %u unsigned). Can you submit a patch for all these build problems? It seems that MinGW for Windows doesn't

Re: [Openocd-development] 0.4.0-rc1 - build errors (-Werror)

2009-12-25 Thread Freddie Chopin
On 2009-12-25 06:00, Michel Catudal wrote: How old is your system? On Mandriva we have mingw32-gcc version 4.3.2 It is also a recent one on Fedora. I have OpenSUSE 11.2 installed on VirtualBox. In the repositories there is only the official version 3.4.5. 4\/3!!

Re: [Openocd-development] 0.4.0-rc1 - build errors (-Werror)

2009-12-25 Thread Freddie Chopin
On 2009-12-24 23:07, David Brownell wrote: Curious. Cygwin and Linux builds don't have that particular issue; I wonder why not? Exactly as I thought before - gcc 3.4.5 is oold. I've managed to compile a i686-w64-mingw32 crosscompiler (using gcc 4.4.2 and most recent versions of

Re: [Openocd-development] 0.4.0-rc1 - build errors (-Werror)

2009-12-25 Thread Freddie Chopin
On 2009-12-24 23:07, David Brownell wrote: A better fix would be to use %zd (for ssize_t, %d signed) not %zu (for size_t, %u unsigned). Can you submit a patch for all these build problems? It seems that MinGW for Windows doesn't understand %zd (to be exact the z is not implemented), so I

Re: [Openocd-development] 0.4.0-rc1 - build errors (-Werror)

2009-12-24 Thread David Brownell
On Tuesday 22 December 2009, Freddie Chopin wrote: When building standard configuration on Windows (MSYS + MinGW): libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../src -g -O2 -D__USE_MINGW_ANSI_STDIO -Wall -Wstrict-prototypes -Wformat-security -Wextra

Re: [Openocd-development] 0.4.0-rc1 - build errors (-Werror)

2009-12-24 Thread Freddie Chopin
On 2009-12-24 23:07, David Brownell wrote: Curious. Cygwin and Linux builds don't have that particular issue; I wonder why not? This may be because official MinGW uses gcc 3.4.5 and that's rather old... Yesterday I was trying to build a crosscompiler on Linux (OpenSUSE) and this almost works

Re: [Openocd-development] 0.4.0-rc1 - build errors (-Werror)

2009-12-24 Thread Michel Catudal
Freddie Chopin a écrit : On 2009-12-24 23:07, David Brownell wrote: Curious. Cygwin and Linux builds don't have that particular issue; I wonder why not? This may be because official MinGW uses gcc 3.4.5 and that's rather old... Yesterday I was trying to build a crosscompiler on

[Openocd-development] 0.4.0-rc1 - build errors (-Werror)

2009-12-22 Thread Freddie Chopin
When building standard configuration on Windows (MSYS + MinGW): libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../src -g -O2 -D__USE_MINGW_ANSI_STDIO -Wall -Wstrict-prototypes -Wformat-security -Wextra -Wno-unused-parameter -Wbad-function-cast -Wcast-align

[Openocd-development] 0.4.0-rc1 - build errors (-Werror)

2009-12-22 Thread Freddie Chopin
When building standard configuration on Windows (MSYS + MinGW): libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../src -g -O2 -D__USE_MINGW_ANSI_STDIO -Wall -Wstrict-prototypes -Wformat-security -Wextra -Wno-unused-parameter -Wbad-function-cast -Wcast-align