On Mon, Jun 4, 2012 at 3:36 PM, Vaclav Peroutka <[email protected]> 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

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to