> On Sep 22, 2018, at 8:54 AM, Richard Ullger <rull...@gmail.com> wrote: > > Hi, > > I'm trying to rebuild gnucash from git because of a boost update in Arch > but am getting the following error. Can any devs help? > > [ 58%] Building C object > gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-split-reg.c.o > cd /build/gnucash-git/src/gnucash-git/build/gnucash/gnome-utils && > /usr/bin/cc -DGNC_VCS=\"git\" -DG_LOG_DOMAIN=\"gnc.gui\" -DHAVE_CONFIG_H > -DHAVE_GUILE22 -D_GNU_SOURCE -Dgncmod_gnome_utils_EXPORTS > -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 > -I/usr/lib/glib-2.0/include -I/usr/lib/libffi-3.2.1/include > -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 > -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz > -I/usr/include/uuid -I/usr/include/gdk-pixbuf-2.0 > -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 > -I/usr/include/libdrm -I/usr/include/atk-1.0 > -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 > -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include > -I/build/gnucash-git/src/gnucash-git/gnucash/gnome-utils > -I/usr/include/libsecret-1 > -I/build/gnucash-git/src/gnucash-git/build/gnucash/gnome-utils > -I/build/gnucash-git/src/gnucash-git/libgnucash/app-utils > -I/build/gnucash-git/src/gnucash-git/libgnucash/engine > -I/build/gnucash-git/src/gnucash-git/build/common > -I/build/gnucash-git/src/gnucash-git/common > -I/build/gnucash-git/src/gnucash-git/borrowed/libc > -I/build/gnucash-git/src/gnucash-git/build/libgnucash/core-utils > -I/build/gnucash-git/src/gnucash-git/libgnucash/core-utils > -I/usr/include/guile/2.2 > -I/build/gnucash-git/src/gnucash-git/libgnucash/gnc-module > -I/usr/include/libxml2 > -I/build/gnucash-git/src/gnucash-git/libgnucash/backend/xml > -Wno-deprecated-declarations -std=gnu11 -Wno-error=parentheses -Werror > -Wdeclaration-after-statement -Wno-pointer-sign -Wall > -Wmissing-prototypes -Wmissing-declarations -Wno-unused -march=native > -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -fno-plt > -O2 -g -DNDEBUG -fPIC -o > CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-split-reg.c.o -c > /build/gnucash-git/src/gnucash-git/gnucash/gnome-utils/gnc-tree-view-split-reg.c > /build/gnucash-git/src/gnucash-git/gnucash/gnome-utils/gnc-tree-view-split-reg.c: > In function ‘gtv_sr_cdf0’: > /build/gnucash-git/src/gnucash-git/gnucash/gnome-utils/gnc-tree-view-split-reg.c:1524:13: > error: ‘strncpy’ specified bound 35 equals destination size > [-Werror=stringop-truncation] > strncpy (datebuff, _(" Scheduled "), sizeof(datebuff)); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > cc1: all warnings being treated as errors > make[2]: *** > [gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/build.make:988: > gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-split-reg.c.o] > Error 1 > make[2]: Leaving directory '/build/gnucash-git/src/gnucash-git/build' > make[1]: *** [CMakeFiles/Makefile2:8359: > gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/all] Error 2 > make[1]: Leaving directory '/build/gnucash-git/src/gnucash-git/build' > make: *** [Makefile:163: all] Error 2
Looks like it also upgraded gcc and the latest gcc has a new warning. I suggest that you add -Wno-stringop-truncation to CMAKE_C_FLAGS. Regards, John Ralls _______________________________________________ gnucash-user mailing list gnucash-user@gnucash.org To update your subscription preferences or to unsubscribe: https://lists.gnucash.org/mailman/listinfo/gnucash-user If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information. ----- Please remember to CC this list on all your replies. You can do this by using Reply-To-List or Reply-All.