I can't get crypto++-5.2 to build correctly, after it does compile ok and everything looks ok it starts making some tests, but when it gets to a particular test it fails with division by zero. -------------------------- This is the error: BlumBlumShub validation suite running... CryptoPP::Exception caught: Integer: division by zero * crypto++ self-tests failed * Try to remove some optimization flags and re-emerge -------------------------- My USE variable = "java gnome kde cups alsa kde gtk X dvd dvdr cdr postgres mysql odbc opengl gstreamer acpi wifi jabber samba sl wifi jabber samba slp gphoto2 tetex scanner unicode berkdb dba gd" Reproducible: Always Steps to Reproduce: 1. emerge crypto++ 2. watch it fail 3. Actual Results: it failed... Expected Results: it should have worked...
Can we have emerge info output please.
I got the exact same error. gcc is 3.4.1, my CXXFLAGS in make.conf is "-march=pentium3 -O2 -fomit-frame-pointer -fweb -pipe" After some experiments i found that "-fomit-frame-pointer" was the problem, i.e. 'CXXFLAGS="-march=pentium3 -O2 -fweb -pipe" emerge crypto++' worked.
OK, I can also confirm, that "-fomit-frame-pointer" was/is the problem. I successfully built crypto++ with these CXXFLAGS: "-march=athlon-xp -O3 -mfpmath=sse -fforce-addr -funroll-loops -funroll-all-loops -fprefetch-loop-arrays -maccumulate-outgoing-args -pipe"
Created attachment 39250 [details] crypto++-5.2.1.ebuild still won't fully compile. CFLAGS="-march=athlon-xp -pipe -fomit-frame-pointer" Portage 2.0.51_pre20 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.6.8-gentoo-r1 i686 AMD Athlon(tm) XP 1900+) ================================================================= System uname: 2.6.8-gentoo-r1 i686 AMD Athlon(tm) XP 1900+ Gentoo Base System version 1.4.16 distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux26-headers-2.6.8.1 Libtools: sys-devel/libtool-1.5.2-r5 Make sure you clean out /var/tmp/ccache when testing this one.
Created attachment 39251 [details] crypto++-5.2.1.ebuild still won't fully compile. CFLAGS="-march=athlon-xp -pipe -fomit-frame-pointer" Portage 2.0.51_pre20 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.6.8-gentoo-r1 i686 AMD Athlon(tm) XP 1900+) ================================================================= System uname: 2.6.8-gentoo-r1 i686 AMD Athlon(tm) XP 1900+ Gentoo Base System version 1.4.16 distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux26-headers-2.6.8.1 Libtools: sys-devel/libtool-1.5.2-r5 Make sure you clean out /var/tmp/ccache when testing this one.
Created attachment 39252 [details, diff] crypto++-5.2.ebuild.patch FYI - 5.2.1 fixes the amd64 thinks that the patch required.
Ryan this probably should be yours.
version bumped and fixed. Thankyou people :-).
With ebuild crypto++-5.2-r1.ebuild, I had also to filter "-fforce-addr" and "-momit-leaf-frame-pointer". Otherwise it wouldn't compile.