Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 647858 - app-office/gnucash-2.7.4 - .../work/gnucash-2.7.4/gnucash/gnome-utils/gnc-tree-view-split-reg.c:4094:9: error: ‘start_spath’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
Summary: app-office/gnucash-2.7.4 - .../work/gnucash-2.7.4/gnucash/gnome-utils/gnc-tre...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Aaron W. Swenson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-16 13:12 UTC by Johannes Buchner
Modified: 2018-03-12 16:22 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,774.84 KB, text/plain)
2018-02-16 13:12 UTC, Johannes Buchner
Details
environment file (environment,164.27 KB, text/plain)
2018-02-21 17:06 UTC, Johannes Buchner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Buchner 2018-02-16 13:12:56 UTC
Created attachment 519708 [details]
build.log

I am getting the following compile error; I do not enable -Werror=maybe-uninitialized in my flags, not sure why it is there.

[ 62%] Building C object gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-split-reg.c.o
cd /mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4_build/gnucash/gnome-utils && /usr/bin/x86_64-pc-linux-gnu-gcc -DG_LOG_DOMAIN=\"gnc.gui\" -DHAVE_CONFIG_H -DHAVE_GUILE20 -Dgncmod_gnome_utils_EXPORTS -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4/gnucash/gnome-utils -I/mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4_build/gnucash/gnome-utils -I/mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4/libgnucash/app-utils -I/mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4/libgnucash/engine -I/mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4_build/common -I/mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4/common -I/mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4/borrowed/libc -I/mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4_build/libgnucash/core-utils -I/mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4/libgnucash/core-utils -I/usr/include/guile/2.0 -I/mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4/libgnucash/gnc-module -I/usr/include/libxml2 -I/mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4/libgnucash/backend/xml   -DNDEBUG -Os -pipe -march=native -fstack-check -fstack-protector-all -Werror -Wdeclaration-after-statement -Wno-pointer-sign -Wall -Wmissing-prototypes -Wmissing-declarations -Wno-unused -Wno-deprecated-declarations -std=gnu11 -fPIC   -o CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-split-reg.c.o -c /mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4/gnucash/gnome-utils/gnc-tree-view-split-reg.c
[ 62%] Building C object gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-sx-list.c.o
cd /mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4_build/gnucash/gnome-utils && /usr/bin/x86_64-pc-linux-gnu-gcc -DG_LOG_DOMAIN=\"gnc.gui\" -DHAVE_CONFIG_H -DHAVE_GUILE20 -Dgncmod_gnome_utils_EXPORTS -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4/gnucash/gnome-utils -I/mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4_build/gnucash/gnome-utils -I/mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4/libgnucash/app-utils -I/mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4/libgnucash/engine -I/mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4_build/common -I/mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4/common -I/mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4/borrowed/libc -I/mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4_build/libgnucash/core-utils -I/mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4/libgnucash/core-utils -I/usr/include/guile/2.0 -I/mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4/libgnucash/gnc-module -I/usr/include/libxml2 -I/mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4/libgnucash/backend/xml   -DNDEBUG -Os -pipe -march=native -fstack-check -fstack-protector-all -Werror -Wdeclaration-after-statement -Wno-pointer-sign -Wall -Wmissing-prototypes -Wmissing-declarations -Wno-unused -Wno-deprecated-declarations -std=gnu11 -fPIC   -o CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view-sx-list.c.o -c /mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4/gnucash/gnome-utils/gnc-tree-view-sx-list.c
[ 62%] Building C object gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view.c.o
cd /mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4_build/gnucash/gnome-utils && /usr/bin/x86_64-pc-linux-gnu-gcc -DG_LOG_DOMAIN=\"gnc.gui\" -DHAVE_CONFIG_H -DHAVE_GUILE20 -Dgncmod_gnome_utils_EXPORTS -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4/gnucash/gnome-utils -I/mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4_build/gnucash/gnome-utils -I/mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4/libgnucash/app-utils -I/mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4/libgnucash/engine -I/mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4_build/common -I/mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4/common -I/mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4/borrowed/libc -I/mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4_build/libgnucash/core-utils -I/mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4/libgnucash/core-utils -I/usr/include/guile/2.0 -I/mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4/libgnucash/gnc-module -I/usr/include/libxml2 -I/mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4/libgnucash/backend/xml   -DNDEBUG -Os -pipe -march=native -fstack-check -fstack-protector-all -Werror -Wdeclaration-after-statement -Wno-pointer-sign -Wall -Wmissing-prototypes -Wmissing-declarations -Wno-unused -Wno-deprecated-declarations -std=gnu11 -fPIC   -o CMakeFiles/gncmod-gnome-utils.dir/gnc-tree-view.c.o -c /mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4/gnucash/gnome-utils/gnc-tree-view.c
/mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4/gnucash/gnome-utils/gnc-tree-view-split-reg.c: In function ‘gtv_sr_key_press_cb’:
/mnt/data/tmp/portage/app-office/gnucash-2.7.4/work/gnucash-2.7.4/gnucash/gnome-utils/gnc-tree-view-split-reg.c:4094:9: error: ‘start_spath’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
         gtk_tree_path_free (start_spath);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors




# emerge --info
Portage 2.3.19 (python 3.5.4-final-0, default/linux/amd64/17.0/desktop, gcc-6.4.0, glibc-2.25-r10, 4.14.12-gentoo x86_64)
=================================================================
System uname: Linux-4.14.12-gentoo-x86_64-AMD_A8-6410_APU_with_AMD_Radeon_R5_Graphics-with-gentoo-2.4.1
KiB Mem:     7103128 total,    102504 free
KiB Swap:    2047996 total,    115196 free
Timestamp of repository gentoo: Thu, 15 Feb 2018 00:45:01 +0000
Head commit of repository gentoo: 29efe0d453c1e088b16a401ecd3ca256afad2dcf
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
ccache version 3.2.4 [disabled]
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.4.5-r1::gentoo, 3.5.4-r1::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0-r1::gentoo, 7.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r10::gentoo
Repositories:

gentoo
    location: /mnt/portage
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 

science
    location: /var/lib/layman/science
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-Os -pipe -march=native -fstack-check -fstack-protector-all"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/chromium/policies/managed/chrome-gnome-shell.json /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/opt/chrome/policies/managed/chrome-gnome-shell.json /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-Os -pipe -march=native -fstack-check -fstack-protector-all"
DISTDIR="/mnt/data/tmp/portage/distfiles/"
FCFLAGS="-Os -pipe -march=native -fstack-check -fstack-protector-all"
FEATURES="assume-digests binpkg-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news nodoc parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-Os -pipe -march=native -fstack-check -fstack-protector-all"
GENTOO_MIRRORS="http://ftp.swin.edu.au/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j2"
PKGDIR="/mnt/data/tmp/portage/packages/"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/mnt/data/tmp/"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 apng avahi berkdb bitmap-fonts branding bzip2 cairo cdda cdr cli crypt cryptsetup cups cxx dbus djvu dri dts dvd dvdr eds emboss encode evo exif fam ffmpeg firefox flac fontconfig fortran gdbm gif glamor gnome gpm gstreamer gtk iconv icu ipv6 jpeg kde lcms ldap libass libnotify mad matroska mmx mmxext mng modules mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls nptl ogg ogv opengl openmp opus pam pango pcre pdf png policykit ppds projectm pulseaudio qt3support qt5 readline samba sdl seccomp semantic-desktop slp spell sse sse2 sse4_1 sse4_2 ssl ssse3 startup-notification svg systemd tcpd theora threads tiff truetype truetype-fonts type1-fonts udev udisks unicode upnp upower usb vorbis vpx webkit webm widescreen wifi win32codecs wma wxwidgets x264 xattr xcb xfce xinerama xml xscreensaver xulrunner xv xvid xz zeroconf zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" L10N="de en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_4 python3_5" RUBY_TARGETS="ruby22 ruby23" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="radeon radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Johannes Buchner 2018-02-16 14:04:12 UTC
I emerged app-office/gnucash-2.7.3 instead which worked.
Comment 2 Aaron W. Swenson gentoo-dev 2018-02-17 01:15:48 UTC
(In reply to Johannes Buchner from comment #0)
> # emerge --info
> ...

Next time, please include the package name with `emerge --info`:

    emerge --info =app-office/gnucash-2.7.4

It let's us see at a glance which USE flags you've enabled for the package. Additionally, the environment file would be helpful.

I've compiled this thing so many different ways and have never run into this issue. Have you reported this upstream? It would be more beneficial if you work with them directly on it rather than me being the go-between.
Comment 3 Johannes Buchner 2018-02-21 17:06:22 UTC
Created attachment 520382 [details]
environment file

I attach the environment file.

I don't have any use flags for gnucash, but updated compiler in the meantime. New emerge --info output:

# emerge --info =app-office/gnucash-2.7.4-r1
Portage 2.3.19 (python 3.5.4-final-0, default/linux/amd64/17.0/desktop, gcc-7.3.0, glibc-2.25-r10, 4.15.2-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.15.2-gentoo-x86_64-AMD_A8-6410_APU_with_AMD_Radeon_R5_Graphics-with-gentoo-2.4.1
KiB Mem:     7103100 total,     70580 free
KiB Swap:    2047996 total,    746928 free
Timestamp of repository gentoo: Wed, 21 Feb 2018 00:45:01 +0000
Head commit of repository gentoo: 62950e650d83030963f6c6f1b77581ecc24b327c
... and otherwise exactly as before ...

(continued in next comment...)
Comment 4 Johannes Buchner 2018-02-21 17:09:36 UTC
I also downloaded and tried to compile gnucash-2.6.19 from the sourceforge website. But I get:

$ ./configure --prefix=$HOME/bin/ --disable-dbi
...
checking the html engine... webkit
checking for webkit-1.0 >= "1.2"... no
Package webkit-1.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `webkit-1.0.pc' to the PKG_CONFIG_PATH environment variable No package 'webkit-1.0' found
configure: error: Library requirements (webkit-1.0 >= "1.2") not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.

I have these files:
$ qlist webkit-gtk|grep '.pc$'
/usr/lib64/pkgconfig/webkit2gtk-4.0.pc
/usr/lib64/pkgconfig/webkit2gtk-web-extension-4.0.pc
/usr/lib64/pkgconfig/javascriptcoregtk-4.0.pc

cmake gives the same:
-- Checking for module 'webkit-1.0>=1.2'
--   No package 'webkit-1.0' found

I don't see anything special in the ebuild file that cmake is somehow informed about webkit-1.0.
Comment 5 Johannes Buchner 2018-02-21 17:20:21 UTC
Reported upstream as https://bugzilla.gnome.org/show_bug.cgi?id=793699
Comment 6 Johannes Buchner 2018-03-12 16:22:51 UTC
Upstream made a change that is/will be included in 2.7.6. 

I have not verified that it is fixed, but will close for now. 

If the problem reappears in 2.7.4, I will re-open.