From: Andreas F. <and...@gm...> - 2012-06-04 15:49:23
|
On Mon, Jun 4, 2012 at 3:36 PM, Vaclav Peroutka <vac...@se...> wrote: > Hello all, > > I installed Ubuntu 12.04 LTS into Virtual Box, installed mingw and other needed sw ( if needed, I can write step-by-step guide) and run compilation. But I am getting following error below. > > Did I miss something ? gcc version is 4.2.1-sjlj (mingw32-2) . > I've successfully built OpenOCD on Ubuntu 12.04 using the mingw-w64 package instead of the mingw32 package you seem to be using. I don't know about the pros and cons of either but what I built seems to work just fine. > > libtool: compile: i586-mingw32msvc-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -I../../../src -I../../../src -I../../../src/helper -DPKGDATADIR=\"/usr/local/share/openocd\" -DPKGLIBDIR=\"/usr/local/lib/openocd\" -I../../../jimtcl -I../../../jimtcl -g -O2 -D__USE_MINGW_ANSI_STDIO -I/home/vaclavpe/temp/libftd2xx -Wall -Wstrict-prototypes -Wformat-security -Wshadow -Wextra -Wno-unused-parameter -Wbad-function-cast -Wcast-align -Wredundant-decls -Werror -MT cfi.lo -MD -MP -MF .deps/cfi.Tpo -c cfi.c -o cfi.o > cc1: warnings being treated as errors > cfi.c: In function 'cfi_spansion_write_block': > cfi.c:1821: warning: dereferencing type-punned pointer will break strict-aliasing rules Probably something in the code that triggers this warning in certain compilers/environments. Have you looked at the code to see if there really is something fishy going on? /Andreas |