Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 627814 - [kde overlay] app-office/kmymoney-9999: ICE building with gcc-5.4.0
Summary: [kde overlay] app-office/kmymoney-9999: ICE building with gcc-5.4.0
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL: https://gcc.gnu.org/bugzilla/show_bug...
Whiteboard:
Keywords: InOverlay, PATCH
Depends on:
Blocks:
 
Reported: 2017-08-14 05:03 UTC by José Pekkarinen
Modified: 2017-12-09 21:26 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description José Pekkarinen 2017-08-14 05:03:12 UTC
Hi there,

I hit the following internal compiler error building kmymoney from git:

[ 56%] Building CXX object kmymoney/models/CMakeFiles/models.dir/onlinejobmodel.cpp.o
[ 57%] Building CXX object kmymoney/payeeidentifier/ibanandbic/widgets/CMakeFiles/payeeidentifier_iban_bic_widgets.dir/payeeidentifier_iban_bic_widgets_automoc.cpp.o
[ 58%] Building CXX object kmymoney/reports/CMakeFiles/reports.dir/reportaccount.cpp.o
/home/pekkari/kmymoney/kmymoney/models/accountsmodel.cpp: In instantiation of ‘AccountsModel::setColumnVisibility(AccountsModel::Columns, bool)::<lambda(auto:3&&, QStandardItem*)> [with auto:3 = AccountsModel::setColumnVisibility(AccountsModel::Columns, bool)::<lambda(auto:3&&, QStandardItem*)>&]’:
/home/pekkari/kmymoney/kmymoney/models/accountsmodel.cpp:696:53:   required from here
/home/pekkari/kmymoney/kmymoney/models/accountsmodel.cpp:689:34: internal compiler error: Segmentation fault
           childItem->removeColumn(ixCol);
                                  ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.gentoo.org/> for instructions.
make[2]: *** [kmymoney/models/CMakeFiles/models.dir/build.make:135: kmymoney/models/CMakeFiles/models.dir/accountsmodel.cpp.o] Error 1

$ git remote -v
origin  git://anongit.kde.org/kmymoney

No modification on the source. I'll attach the emerge --info.

Thanks!

José.
Comment 1 José Pekkarinen 2017-08-14 05:03:55 UTC
$ emerge --info
Portage 2.3.6 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-5.4.0, glibc-2.23-r4, 4.12.3 x86_64)
=================================================================
System uname: Linux-4.12.3-x86_64-Intel-R-_Core-TM-_i7-6500U_CPU_@_2.50GHz-with-gentoo-2.3
KiB Mem:    16130640 total,   1749396 free
KiB Swap:   10485756 total,  10485756 free
Timestamp of repository gentoo: Fri, 11 Aug 2017 06:30:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.28 p1.2) 2.28
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo, 3.5.3::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.28::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.28-r2::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r4::gentoo                                                                                                                                                                                                   
Repositories:                                                                                                                                                                                                                               
                                                                                                                                                                                                                                            
gentoo                                                                                                                                                                                                                                      
    location: /usr/portage                                                                                                                                                                                                                  
    sync-type: rsync                                                                                                                                                                                                                        
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage                                                                                                                                                                                       
    priority: -1000                                                                                                                                                                                                                         
                                                                                                                                                                                                                                            
foxiverlay                                                                                                                                                                                                                                  
    location: /home/pekkari/foxiverlay                                                                                                                                                                                                      
    masters: gentoo                                                                                                                                                                                                                         
    priority: 50                                                                                                                                                                                                                            
                                                                                                                                                                                                                                            
kde                                                                                                                                                                                                                                         
    location: /var/lib/layman/kde
    masters: gentoo
    priority: 50

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

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

steam-overlay
    location: /var/lib/layman/steam-overlay
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -mtune=native -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -mtune=native -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="rsync://trumpetti.atm.tut.fi/gentoo/ rsync://gentoo.bloodhost.ru/gentoo-distfiles"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j10 -l5"
PKGDIR="/usr/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="/var/tmp"
USE="X a52 aac acl acpi activities alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli cracklib crypt cups cxx dbus declarative dri dts dvd dvdr egl emboss encode exif fam firefox flac fortran gdbm gif glamor gles2 gpm iconv icu ipv6 jack jpeg kde kipi kwallet lcms ldap libnotify lm_sensors mad mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opencl opengl openmp pam pango pcre pdf phonon php pkcs11 plasma png policykit ppds qml qt3support qt4 qt5 readline sdl seccomp semantic-desktop session smartcard spell ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vdpau vhost-net vorbis wayland wayland-compositor widgets wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid 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="aes avx avx2 fma3 mmx mmxext mpx popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en-GB fi es" 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_4" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="intel i965" 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, USE_PYTHON
Comment 2 Andreas Sturmlechner gentoo-dev 2017-08-14 14:28:15 UTC
I'm not sure what we are supposed to do about a segmentation fault in a live build. First of all, please check if this is reproducible. Rebuild again tomorrow, in case upstream fixes something in the meantime. If it fails at random places during build, check your hardware.
Comment 3 José Pekkarinen 2017-08-16 19:10:37 UTC
Rebuilding today still reproduces the very same error. I guess the purpose
of the request to fill a bug is either to pass the info to the upstream
project, or relate it to some gcc bug in case it is. I was about to offer
some ebuild to reproduce it, but I'm afraid it's not in shape to reproduce
exactly the same error, I'll try to get it to the point were anyone can reproduce
it when getting some cycles.
Comment 4 Andreas Sturmlechner gentoo-dev 2017-08-27 11:13:21 UTC
fwiw, this was reproduced by a different user in #gentoo-kde.

I can build kmymoney-9999 just fine on my systems (gcc-6.4.0).
Comment 5 Jack 2017-08-27 17:05:53 UTC
This was also reported upstream (https://bugs.kde.org/show_bug.cgi?id=384072) and someone said it compiles ok with clang.
Comment 6 José Pekkarinen 2017-08-28 11:55:15 UTC
This have been reported to gcc this morning:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82003
Comment 7 Andreas Sturmlechner gentoo-dev 2017-09-30 20:19:14 UTC
José, if possible please fix your attachment mimetype in the upstream bug.
Comment 8 José Pekkarinen 2017-09-30 20:25:12 UTC
Sure, please check if it's ok for you now. Thanks!

José.
Comment 9 Andreas Sturmlechner gentoo-dev 2017-10-13 09:48:10 UTC
If this isn't fixed in GCC-5.5.0 we well just add a gcc-config check here.
Comment 10 Andreas Sturmlechner gentoo-dev 2017-10-14 16:10:28 UTC
Added KDE_GCC_MINIMAL="6.4" in overlay git commit 70e700fcabe8644c3fc1468b3bf25b2f47da495f
Comment 11 Andreas Sturmlechner gentoo-dev 2017-12-09 21:26:16 UTC
Since 6.4.0 is stable, and 5.5.0 will probably not enter tree, and likely would have the same issue anyway, we'll just call it fixed and not waste our time here.