When I try to emerge gpgme, it fails with a segfault. Reproducible: Always Steps to Reproduce: 1. emerge -u gpgme 2. 3. Actual Results: /usr/bin/gpgsm --homedir . --import ./cert_g10code_test1.der gpgsm: keybox `./pubring.kbx' created gpgsm: some signal caught ... exiting make[3]: *** [pubring.kbx] Segmentation fault make[3]: *** Deleting file `pubring.kbx' make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/store/portage-tmp/portage/gpgme-0.4.7/work/gpgme-0. 4.7/tests/gpgsm' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/store/portage-tmp/portage/gpgme-0.4.7/work/gpgme-0. 4.7/tests' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/store/portage-tmp/portage/gpgme-0.4.7/work/gpgme-0. 4.7' make: *** [all] Error 2 !!! ERROR: app-crypt/gpgme-0.4.7 failed. !!! Function src_compile, Line 48, Exitcode 2 !!! (no error message) Expected Results: Installed correctly :) Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7-gentoo) ================================================================= System uname: 2.6.7-gentoo i686 Pentium III (Coppermine) Gentoo Base System version 1.4.16 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/kde/cvs/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays" DISTDIR="/store/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/store/packages" PORTAGE_TMPDIR="/store/portage-tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X X509 aalib acpi alsa apache2 arts artswrappersuid avi berkdb bonobo cdr composite crypt cups dga dvd editor encode esd flash foomaticdb gd gdbm ggi gif gnome gtk gtk2 gtkhtml guile imap imlib java jikes jpeg kde ldap libg++ libwww mad mikmod mmx motif mozilla moznocompose moznoirc mpeg mysql nas ncurses nls oggvorbis opengl pam pdflib perl png postgres ppds python qt quicktime readline samba sdl slang slp spell sse ssl svga tcltk tcpd tetex theora tiff tools truetype usb videos wmf x86 xml xml2 xmms xosd xslt xv zlib"
Have you tried lowering your CFLAGS? Also, if it still segfaults with no CFLAGS, try running memtest86 (boot a Gentoo Livecd and enter memtest at the boot prompt).
report back when you've tried building with CFLAGS="-O -pipe" CXXFLAGS="-O -pipe"
Aiming of removing this ebuild in favour of 0.9.0 and fixing dependancies accordingly. Any dependancy problem please add to bug #57193.
What version of gnupg, libgcrypt, libgpg-error, and newpg do you have?
> Sean - what you have seems to be same fault as #54758. Can we continue > discussion there. What version of gnupg, libgcrypt, libgpg-error, newpg > (anything else) do you have? Also consider changing you /etc/make.profile > link to a 2004.2 profile. If you have a bit of time can you rummage around > gpgme mailing lists for a similar error. I don't it's gentoo specific but > having said that it works for me hence this bug. Huh. I think I keep up fairly well with Gentoo topics, but this /etc/make.profile thing is entirely new to me. Anyway, I relinked it to 2004.2 and retried the build (-Uua world), and got the same error. GnuPG: 1.2.4 libgcrypt: 1.1.94 libgpgerror: 1.0 Interestingly, I *know* I had newpg (newpg-0.9.4-r1) installed: /var/db/pkg/app-crypt/newpg-0.9.4-r1/... /usr/lib/newpg /usr/lib/newpg/gpg-protect-tool /usr/share/doc/newpg-0.9.4-r1/... /usr/share/locale/de/LC_MESSAGES/newpg.mo /usr/portage/metadata/cache/app-crypt/newpg-0.9.4 /usr/portage/metadata/cache/app-crypt/newpg-0.9.4-r1 /usr/portage/distfiles/newpg-0.9.4.tar.gz but emerge (and equery) no longer shows it as being installed -- in fact, emerge search turns up no results for newpg at all. Was this a consequence of the switch to 2004.2? If so, isn't this a bug in Portage? Changing profiles shouldn't make installed packages disappear out of the database. In any case, I can't think of any other appropriate packages to report about. My CXX build flag is "-O2 -pipe" -- should I try with just "-O", or has this been proven to have no effect?
.