When I try to emerge kmymoney2-0.9 on a hardened amd64 with gcc-3.4.6 the compilation fails with an error (see below). My emerge --info: Portage 2.2_rc1 (hardened/amd64, gcc-3.4.6, glibc-2.8_p20080602-r0, 2.6.25-hardened-r1-monolith x86_64) ================================================================= System uname: Linux-2.6.25-hardened-r1-monolith-x86_64-AMD_Sempron-tm-_Processor_3000+-with-glibc2.3.2 Timestamp of tree: Thu, 10 Jul 2008 01:45:01 +0000 app-shells/bash: 3.2_p39 dev-lang/python: 2.5.2-r5 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.5 sys-apps/sandbox: 1.2.18.1-r3 sys-devel/autoconf: 2.13, 2.62-r1 sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.4 virtual/os-headers: 2.6.25-r4 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -fomit-frame-pointer -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=k8 -fomit-frame-pointer -O2 -pipe" DISTDIR="/var/distfiles" FEATURES="collision-protect distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox webrsync-gpg" GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ " LDFLAGS="" LINGUAS="de" MAKEOPTS="-j2" PKGDIR="/var/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow X acl alsa amd64 arts bash-completion berkdb bzip2 caps cdr cracklib crypt dbus dvd dvdr dvdread encode fbcon ffmpeg flac gif gnutls gtk2 hal hardened id3tag imap ipv6 jpeg jpeg2k justify kde kdeenablefinal latex midi motif ncurses nls nptl nptlonly offensive ogg openexr opengl pam pic pie png qt3 qt4 readline ruby sasl sdl skey smartcard spell sse2 ssl symlink tcpd theora tiff truetype unicode urandom usb vcd vim-syntax vorbis xine xorg xvid zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" CAMERAS="agfa_cl20" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="openchrome via vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS * The ebuild environment file is located at '/var/tmp/portage/app-office/kmymoney2-0.9/temp/environment'. * Reproducible: Always Steps to Reproduce: 1. emerge =kmymoney2-0.9 2. 3. Actual Results: x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -I/usr/kde/3.5/include -I../.. -I. -DQT_THREAD_SUPPORT -D_REENTRANT -DKMM_DEBUG=0 -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=k8 -fomit-frame-pointer -O2 -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -fexceptions -c -o kmymoneyreportconfigtab1decl.o kmymoneyreportconfigtab1decl.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -I/usr/kde/3.5/include -I../.. -I. -DQT_THREAD_SUPPORT -D_REENTRANT -DKMM_DEBUG=0 -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=k8 -fomit-frame-pointer -O2 -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -fexceptions -c -o kmymoneyreportconfigtab2decl.o kmymoneyreportconfigtab2decl.cpp kmymoneyreportconfigtab2decl.cpp: In constructor `kMyMoneyReportConfigTab2Decl::kMyMoneyReportConfigTab2Decl(QWidget*, const char*, uint)': kmymoneyreportconfigtab2decl.cpp:61: error: invalid use of undefined type `struct KMyMoneyGeneralCombo' kmymoneyreportconfigtab2decl.h:23: error: forward declaration of `struct KMyMoneyGeneralCombo' kmymoneyreportconfigtab2decl.cpp:62: error: no matching function for call to `QHBoxLayout::addWidget(KMyMoneyGeneralCombo*&)' /usr/qt/3/include/qlayout.h:386: note: candidates are: void QBoxLayout::addWidget(QWidget*, int, int) x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -I/usr/kde/3.5/include -I../.. -I. -DQT_THREAD_SUPPORT -D_REENTRANT -DKMM_DEBUG=0 -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=k8 -fomit-frame-pointer -O2 -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -fexceptions -c -o kmymoneyreportconfigtab3decl.o kmymoneyreportconfigtab3decl.cpp make[5]: *** [kmymoneyreportconfigtab2decl.o] Error 1 make[5]: *** Waiting for unfinished jobs.... make[5]: Leaving directory `/var/tmp/portage/app-office/kmymoney2-0.9/work/kmymoney2-0.9/kmymoney2/widgets' make[4]: *** [all] Error 2 make[4]: Leaving directory `/var/tmp/portage/app-office/kmymoney2-0.9/work/kmymoney2-0.9/kmymoney2/widgets' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/app-office/kmymoney2-0.9/work/kmymoney2-0.9/kmymoney2' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/app-office/kmymoney2-0.9/work/kmymoney2-0.9/kmymoney2' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/app-office/kmymoney2-0.9/work/kmymoney2-0.9' make: *** [all] Error 2 * * ERROR: app-office/kmymoney2-0.9 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 4061: Called kde_src_compile * environment, line 2893: Called kde_src_compile 'all' * environment, line 3013: Called kde_src_compile 'myconf' 'configure' 'make' * environment, line 3009: Called die * The specific snippet of code: * emake || die "died running emake, $FUNCNAME:make" * The die message: * died running emake, kde_src_compile:make * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/app-office/kmymoney2-0.9/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-office/kmymoney2-0.9/temp/environment'. * Expected Results: KMyMoney2 should be built and emerged. Emerging works with gcc-4.3.1-r1
Created attachment 160356 [details] /var/tmp/portage/app-office/kmymoney2-0.9/temp/environment
Created attachment 160357 [details] /var/tmp/portage/app-office/kmymoney2-0.9/temp/environment
Created attachment 160361 [details] /var/tmp/portage/app-office/kmymoney2-0.9/temp/build.log complete build log
Confirmed on hardened x86. Same error.
However, it compiles just fine on non-hardened amd64, so perhaps this is related to the hardened project rather.
(In reply to comment #0) > Portage 2.2_rc1 (hardened/amd64, gcc-3.4.6, glibc-2.8_p20080602-r0, Current hardened GCC is 4.3.4, reopen if you can still produce this with it.
On my system I have selinux, which is left with gcc3. On the other hand, during the past year I have found an alternative solution that doesn't involve using the selinux machine for kmymoney2. (In reply to comment #6) > (In reply to comment #0) > > Portage 2.2_rc1 (hardened/amd64, gcc-3.4.6, glibc-2.8_p20080602-r0, > > Current hardened GCC is 4.3.4, reopen if you can still produce this with it. >