Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 62376 - Crypto++ fails to build
Summary: Crypto++ fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-31 05:43 UTC by Pablo Fernández
Modified: 2005-08-08 05:05 UTC (History)
1 user (show)

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


Attachments
crypto++-5.2.1.ebuild (crypto++-5.2.1.ebuild,1.22 KB, text/plain)
2004-09-09 07:01 UTC, Daniel Black (RETIRED)
Details
crypto++-5.2.1.ebuild (crypto++-5.2.1.ebuild,1.22 KB, text/plain)
2004-09-09 07:02 UTC, Daniel Black (RETIRED)
Details
crypto++-5.2.ebuild.patch (5.2.patch,448 bytes, patch)
2004-09-09 07:04 UTC, Daniel Black (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pablo Fernández 2004-08-31 05:43:16 UTC
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...
Comment 1 rob holland (RETIRED) gentoo-dev 2004-08-31 09:18:48 UTC
Can we have emerge info output please.
Comment 2 hoffmajs 2004-09-01 19:46:37 UTC
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.
Comment 3 Meder Bakirov 2004-09-06 22:16:50 UTC
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"
Comment 4 Daniel Black (RETIRED) gentoo-dev 2004-09-09 07:01:39 UTC
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.
Comment 5 Daniel Black (RETIRED) gentoo-dev 2004-09-09 07:02:31 UTC
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.
Comment 6 Daniel Black (RETIRED) gentoo-dev 2004-09-09 07:04:49 UTC
Created attachment 39252 [details, diff]
crypto++-5.2.ebuild.patch

FYI - 5.2.1 fixes the amd64 thinks that the patch required.
Comment 7 Daniel Black (RETIRED) gentoo-dev 2004-09-09 07:05:54 UTC
Ryan this probably should be yours.
Comment 8 Daniel Black (RETIRED) gentoo-dev 2004-09-22 04:38:39 UTC
version bumped and fixed. Thankyou people :-).
Comment 9 usu4rio 2005-08-08 05:05:50 UTC
With ebuild crypto++-5.2-r1.ebuild, I had also to filter "-fforce-addr" and
"-momit-leaf-frame-pointer". Otherwise it wouldn't compile.