I'm using Win7 64bit, msys2, mingw32 from ESP with latest updates and the latest clone of openOCD-ESP32.
Running make results in this output:
Code: Select all
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../src -I../../../src -I../../../src/helper -DPKGDATADIR=\"/mingw32/share/openocd\" -DBINDIR=\"/mingw32/bin\" -I../../../jimtcl -I../../../jimtcl -isystem D:/Source/msys32/mingw32/include/libusb-1.0 -ID:/Source/msys32/mingw32/include -ID:/Source/msys32/mingw32/include/libusb-1.0 -ID:/Source/msys32/mingw32/include/hidapi -g -O2 -D__USE_MINGW_ANSI_STDIO -Wall -Wstrict-prototypes -Wformat-security -Wshadow -Wextra -Wno-unused-parameter -Wbad-function-cast -Wcast-align -Wredundant-decls -Werror -MT libocdjtagdrivers_la-ftdi.lo -MD -MP -MF .deps/libocdjtagdrivers_la-ftdi.Tpo -c ftdi.c -o libocdjtagdrivers_la-ftdi.o
ftdi.c: In function 'ftdi_handle_set_signal_command':
ftdi.c:854:6: error: this statement may fall through [-Werror=implicit-fallthrough=]
if (CMD_ARGV[1][1] == '\0') {
^
ftdi.c:858:2: note: here
default:
^~~~~~~
cc1.exe: all warnings being treated as errors
make[7]: *** [Makefile:789: libocdjtagdrivers_la-ftdi.lo] Fehler 1
Compiling the same sources under debian9 works very fine.
regards,
linuxpaul