ilg-archived / openocd

The GNU MCU Eclipse OpenOCD
http://gnuarmeclipse.github.io/openocd/
GNU General Public License v2.0
234 stars 62 forks source link

Make project error. #31

Closed Vadimatorik closed 6 years ago

Vadimatorik commented 6 years ago

Hi! I did what is described below.

git clone https://github.com/gnu-mcu-eclipse/openocd.git
cd openocd/
./bootstrap
./configure --enable-ulink --enable-jlink --enable-stlink  --enable-openjtag 
make

I see:

src/flash/nor/psoc5lp.c: В функции «psoc5lp_get_part_number»:
src/flash/nor/psoc5lp.c:237:2: ошибка: «strncpy» output truncated before terminating nul copying 2 bytes from a string of the same length [-Werror=stringop-truncation]
  strncpy(str + 8, "xx", 2);
  ^~~~~~~~~~~~~~~~~~~~~~~~~
cc1: все предупреждения считаются ошибками
make[2]: *** [Makefile:2968: src/flash/nor/psoc5lp.lo] Ошибка 1

GCC version: 8.1.1 20180531 Platform: 4.16.13-1-ARCH GNU Make 4.2.1

ilg-ul commented 6 years ago

I don't know where you got that sequence, but the only supported build procedure is that provided by the separate project

https://github.com/gnu-mcu-eclipse/openocd-build