I tried to emerge without "pch" use flag (on hardened profile), but it founded pch files somewhere... All other packages reemerged without that flag right after changing profile. I can't just try to emerge -C keepassx && emerge keepassx , because if it fails i can't get access to all my passwords. And keepassx-0.3.4 (marked stable) can't be emerged too, with same reason. emerge output: x86_64-pc-linux-gnu-gcc -c -include ../build/keepassx -pipe -march=amdfam10 -O2 -pipe -Wall -W -D_REENTRANT -DAUTOTYPE -DGLOBAL_AUTOTYPE -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I. -Ilib -Icrypto -Iplugins/interfaces -Iexport -Iimport -Idialogs -I../build/ui -I../build/moc -o ../build/aes_modes.o crypto/aes_modes.c cc1: error: ../build/keepassx: No such file or directory cc1: error: one or more PCH files were found, but they were invalid cc1: error: use -Winvalid-pch for more information cc1: error: ../build/keepassx: No such file or directory cc1: error: one or more PCH files were found, but they were invalid cc1: error: use -Winvalid-pch for more information cc1: error: ../build/keepassx: No such file or directory cc1: error: one or more PCH files were found, but they were invalid cc1: error: use -Winvalid-pch for more information make[1]: *** [../build/aes_modes.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: *** [../build/aeskey.o] Error 1 make[1]: *** [../build/aescrypt.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/app-admin/keepassx-0.4.0/work/keepassx-0.4.0/src' make: *** [sub-src-make_default] Error 2 * * ERROR: app-admin/keepassx-0.4.0 failed. * Call stack: * ebuild.sh, line 48: Called src_compile * environment, line 2856: Called die * The specific snippet of code: * emake || die "emake failed" * The die message: * emake failed
Created attachment 192862 [details] app-admin/keepassx-0.4.0 bug emerge --info
Created attachment 196608 [details] Fixed ebuild 1. Fixed PCH flag processing 2. Removed redundant "debug" flag checking (processed by eqmake4 procedure from qt4 eclass)
Created attachment 208311 [details, diff] Fix for pch bug & debug redundancy for keepassx-0.4.1 (In reply to comment #2) keepassx-0.4.1 have same problem as 0.4.0, so same fix...
qt team: Before keepassx-0.4.1 goes stable can you please review this patch? I'm not so sure about qmake build systems. Thanks.
This patch, while it seems ok, has nothing to do with the bug. Can anyone reproduce it?
(In reply to comment #5) > This patch, while it seems ok, has nothing to do with the bug. Can anyone > reproduce it? > x86_64-pc-linux-gnu-gcc -c -include ../build/keepassx -pipe -march=core2 -O2 -pipe -Wall -W -D_REENTRANT -DAUTOTYPE -DGLOBAL_AUTOTYPE -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I. -Ilib -Icrypto -Iplugins/interfaces -Iexport -Iimport -Idialogs -I../build/ui -I../build/moc -o ../build/aescrypt.o crypto/aescrypt.c cc1: fel: ../build/keepassx: Filen eller katalogen finns inte cc1: fel: en eller flera PCH-filer hittades, men de var inte korrekta cc1: fel: använd -Winvalid-pch för mer information make[1]: *** [../build/aescrypt.o] Fel 1 make[1]: *** Inväntar oavslutade jobb... make[1]: Leaving directory `/var/tmp/portage/app-admin/keepassx-0.4.1/work/keepassx-0.4.1/src' emerge -pv keepassx [ebuild N ] app-admin/keepassx-0.4.1 USE="-debug (-pch)" 0 kB
laptop1 local # emerge --info Portage 2.2_rc46 (hardened/linux/amd64/10.0, gcc-4.4.2, glibc-2.10.1-r0, 2.6.31-gentoo x86_64) ================================================================= System uname: Linux-2.6.31-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7700_@_2.40GHz-with-gentoo-2.0.1 Timestamp of tree: Mon, 09 Nov 2009 14:45:01 +0000 ccache version 2.4 [disabled] app-shells/bash: 4.0_p33 dev-java/java-config: 2.1.9-r1 dev-lang/python: 2.5.4-r3, 2.6.3, 3.1.1-r1 dev-util/ccache: 2.4-r8 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.5.1-r1 sys-apps/sandbox: 2.2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.5, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11 sys-devel/binutils: 2.19.1-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.30-r1 ABI="amd64" ACCEPT_KEYWORDS="amd64 ~amd64"
The fix in comment #3 fix the error with pch and hardened.
Applied patch, thanks.