Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 474048 - =dev-libs/crypto++-5.6.2 fails to compile
Summary: =dev-libs/crypto++-5.6.2 fails to compile
Status: RESOLVED DUPLICATE of bug 403467
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-21 14:54 UTC by Doug Goldstein (RETIRED)
Modified: 2013-06-21 18:51 UTC (History)
0 users

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


Attachments
build.log (build.log,53.42 KB, text/plain)
2013-06-21 15:02 UTC, Doug Goldstein (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Doug Goldstein (RETIRED) gentoo-dev 2013-06-21 14:54:46 UTC
crypto++-5.6.2 fails to build.

libtool: compile:  x86_64-pc-linux-gnu-g++ -march=native -O1 -pipe -ggdb -frecord-gcc-switches -c integer.cpp -o integer.o >/dev/null 2>&1
libtool --tag=CXX --mode=link x86_64-pc-linux-gnu-g++ -Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,--hash-style=gnu -pthread -rpath /usr/lib64 -o libcrypto++.la wake.lo skipjack.lo osrng.lo hex.lo dh.lo esign.lo randpool.lo sharkbox.lo base32.lo files.lo fips140.lo mars.lo twofish.lo eprecomp.lo dsa.lo dll.lo winpipes.lo vmac.lo fipstest.lo rc5.lo simple.lo queue.lo xtrcrypt.lo gf256.lo hmac.lo pkcspad.lo authenc.lo idea.lo gcm.lo squaretb.lo emsa2.lo network.lo eax.lo rijndael.lo serpent.lo square.lo dessp.lo algparam.lo elgamal.lo zlib.lo dh2.lo strciphr.lo oaep.lo ecp.lo marss.lo adler32.lo wait.lo iterhash.lo safer.lo default.lo rc2.lo polynomi.lo cryptlib_bds.lo gf2n.lo ida.lo shark.lo xtr.lo shacal2.lo cmac.lo tea.lo eccrypto.lo arc4.lo misc.lo ripemd.lo camellia.lo pubkey.lo trdlocal.lo salsa.lo seal.lo luc.lo hrtimer.lo ttmac.lo crc.lo tigertab.lo mqv.lo md4.lo whrlpool.lo socketft.lo rng.lo cast.lo tiger.lo channels.lo asn.lo zinflate.lo pssr.lo algebra.lo mqueue.lo sha3.lo base64.lo zdeflate.lo basecode.lo des.lo blowfish.lo blumshub.lo ec2n.lo gfpcrypt.lo gost.lo casts.lo modes.lo panama.lo nbtheory.lo md5.lo ccm.lo tftables.lo pch.lo cbcmac.lo rsa.lo sha.lo rdtables.lo rw.lo sosemanuk.lo 3way.lo gzip.lo rabin.lo bfinit.lo filters.lo cpu.lo md2.lo cryptlib.lo gf2_32.lo integer.lo seed.lo rc6.lo  -lpthread
libtool: link: x86_64-pc-linux-gnu-g++  -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../lib64/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/crtbeginS.o  .libs/wake.o .libs/skipjack.o .libs/osrng.o .libs/hex.o .libs/dh.o .libs/esign.o .libs/randpool.o .libs/sharkbox.o .libs/base32.o .libs/files.o .libs/fips140.o .libs/mars.o .libs/twofish.o .libs/eprecomp.o .libs/dsa.o .libs/dll.o .libs/winpipes.o .libs/vmac.o .libs/fipstest.o .libs/rc5.o .libs/simple.o .libs/queue.o .libs/xtrcrypt.o .libs/gf256.o .libs/hmac.o .libs/pkcspad.o .libs/authenc.o .libs/idea.o .libs/gcm.o .libs/squaretb.o .libs/emsa2.o .libs/network.o .libs/eax.o .libs/rijndael.o .libs/serpent.o .libs/square.o .libs/dessp.o .libs/algparam.o .libs/elgamal.o .libs/zlib.o .libs/dh2.o .libs/strciphr.o .libs/oaep.o .libs/ecp.o .libs/marss.o .libs/adler32.o .libs/wait.o .libs/iterhash.o .libs/safer.o .libs/default.o .libs/rc2.o .libs/polynomi.o .libs/cryptlib_bds.o .libs/gf2n.o .libs/ida.o .libs/shark.o .libs/xtr.o .libs/shacal2.o .libs/cmac.o .libs/tea.o .libs/eccrypto.o .libs/arc4.o .libs/misc.o .libs/ripemd.o .libs/camellia.o .libs/pubkey.o .libs/trdlocal.o .libs/salsa.o .libs/seal.o .libs/luc.o .libs/hrtimer.o .libs/ttmac.o .libs/crc.o .libs/tigertab.o .libs/mqv.o .libs/md4.o .libs/whrlpool.o .libs/socketft.o .libs/rng.o .libs/cast.o .libs/tiger.o .libs/channels.o .libs/asn.o .libs/zinflate.o .libs/pssr.o .libs/algebra.o .libs/mqueue.o .libs/sha3.o .libs/base64.o .libs/zdeflate.o .libs/basecode.o .libs/des.o .libs/blowfish.o .libs/blumshub.o .libs/ec2n.o .libs/gfpcrypt.o .libs/gost.o .libs/casts.o .libs/modes.o .libs/panama.o .libs/nbtheory.o .libs/md5.o .libs/ccm.o .libs/tftables.o .libs/pch.o .libs/cbcmac.o .libs/rsa.o .libs/sha.o .libs/rdtables.o .libs/rw.o .libs/sosemanuk.o .libs/3way.o .libs/gzip.o .libs/rabin.o .libs/bfinit.o .libs/filters.o .libs/cpu.o .libs/md2.o .libs/cryptlib.o .libs/gf2_32.o .libs/integer.o .libs/seed.o .libs/rc6.o   -lpthread -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../lib64/crtn.o  -Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,--hash-style=gnu -pthread   -pthread -Wl,-soname -Wl,libcrypto++.so.0 -o .libs/libcrypto++.so.0.0.0
x86_64-pc-linux-gnu-g++: error: /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../lib64/crti.o: No such file or directory
x86_64-pc-linux-gnu-g++: error: /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/crtbeginS.o: No such file or directory
x86_64-pc-linux-gnu-g++: error: /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/crtendS.o: No such file or directory
x86_64-pc-linux-gnu-g++: error: /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../lib64/crtn.o: No such file or directory
make: *** [libcrypto++.la] Error 1
 * ERROR: dev-libs/crypto++-5.6.2 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=dev-libs/crypto++-5.6.2'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/crypto++-5.6.2'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/crypto++-5.6.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/crypto++-5.6.2/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/crypto++-5.6.2/work'
 * S: '/var/tmp/portage/dev-libs/crypto++-5.6.2/work'
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2013-06-21 14:55:20 UTC
emerge --info '=dev-libs/crypto++-5.6.2'
Portage 2.2.0_alpha183 (default/linux/amd64/13.0, gcc-4.7.3, glibc-2.17, 3.8.10-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.8.10-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-2.2
KiB Mem:     8113056 total,    778468 free
KiB Swap:    8388604 total,   7788780 free
Timestamp of tree: Fri, 21 Jun 2013 14:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5, 3.2.5, 3.3.2
dev-util/cmake:           2.8.11.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo doug_local
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10 AdobeFlash-10.1 AdobeFlash-10.2 AdobeFlash-10.3 AdobeFlash-11.x"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ggdb -frecord-gcc-switches"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/python2.7/site-packages/buildbot/status/web /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -ggdb -frecord-gcc-switches"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--oneshot --quiet-build --autounmask=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles installsources merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,--hash-style=gnu"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 avahi bash-completion berkdb bonjour branding bzip2 cairo caps cdr cli consolekit cracklib crypt cups curl cxx dbus device-mapper dri dvdr fam fontconfig fuse gdbm git gnome gnome-keyring gpm gstreamer gtk hal iconv ipv6 jpeg jpeg2k libnotify mmx modules mudflap multilib ncurses nptl opengl openmp pam pcre png policykit readline samba session spell sse sse2 sse3 ssl ssse3 startup-notification subversion svg systemtap tcpd tiff truetype unicode vala vdpau vim-syntax xattr xcb xinerama zeroconf zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="x86_64 ppc arm" QEMU_USER_TARGETS="arm" RUBY_TARGETS="ruby19" SANE_BACKENDS="net" USERLAND="GNU" VIDEO_CARDS="nvidia vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2013-06-21 15:02:27 UTC
$ ls -l /usr/lib/gcc/x86_64-pc-linux-gnu/
total 4
drwxr-xr-x 6 root root 4096 May 15 10:20 4.7.3

$ equery list gcc
 * Searching for gcc ...
[I-O] [  ] cross-i586-mingw32msvc/gcc-4.7.3:4.7
[I-O] [  ] cross-powerpc-linux-gnu/gcc-4.7.3:4.7
[IP-] [  ] sys-devel/gcc-4.7.3:4.7

 # fix_libtool_files.sh 4.5.3
 * Scanning libtool files for hardcoded gcc library paths...
 *   [1/15] Scanning /lib ...
 *   [2/15] Scanning /usr/lib ...
 *   [3/15] Scanning /lib32 ...
 *   [4/15] Scanning /lib64 ...
 *   [5/15] Scanning /opt/cuda/lib ...
 *   [6/15] Scanning /opt/cuda/lib64 ...
 *   [7/15] Scanning /usr/games/lib ...
 *   [8/15] Scanning /usr/games/lib32 ...
 *   [9/15] Scanning /usr/games/lib64 ...
 *   [10/15] Scanning /usr/lib32 ...
 *   [11/15] Scanning /usr/lib64 ...
 *   [12/15] Scanning /usr/local/lib ...
 *   [13/15] Scanning /usr/local/lib32 ...
 *   [14/15] Scanning /usr/local/lib64 ...
 *   [15/15] Scanning /usr/x86_64-pc-linux-gnu/lib ...
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2013-06-21 15:02:54 UTC
Created attachment 351558 [details]
build.log
Comment 4 David Kredba 2013-06-21 15:57:44 UTC
I had this ages. I masked it for ages. I not found source of that bad PATH.
Then I rewrote the link command to point to correct 4.8.1 path and it linked. Then I was not able to continue with ebuild compile so I did stupid trick - made the 4.8.0 folder needed, copied there all .o files and finshed the merge.
This package is the only one doing it for me and it always tried to go one minor version below actial gcc version. The same for 4.7.x.
Comment 5 Paul Zander 2013-06-21 16:22:18 UTC
libtool has hardcoded search paths in /usr/bin/libtool.

reemerge libtool and the error ist gone.
Comment 6 David Kredba 2013-06-21 17:27:46 UTC
Thank you!
Comment 7 Tim Harder gentoo-dev 2013-06-21 18:51:15 UTC
The issue is that the build system uses the system version of libtool which has hardcoded values of the gcc version it was built with. If someone wants to provide a patch to properly use libtool that would be great but it would probably involve refactoring the entire build system.

*** This bug has been marked as a duplicate of bug 403467 ***