Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 396659 - dev-libs/nettle compile failure on x86
Summary: dev-libs/nettle compile failure on x86
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: Normal major (vote)
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-01 09:06 UTC by Jeff (JD) Horelick (RETIRED)
Modified: 2012-01-02 09:42 UTC (History)
0 users

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


Attachments
Nettle compile fix patch (nettle-compile-fix.patch,242 bytes, patch)
2012-01-01 09:12 UTC, Jeff (JD) Horelick (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff (JD) Horelick (RETIRED) gentoo-dev 2012-01-01 09:06:54 UTC
dev-libs/nettle-1.15 and nettle-2.0 (the only stable versions and the only versions supported by Pike) both fail to compile on x86 due to a typo in x86/md5-compress .

Reproducible: Always

Steps to Reproduce:
1. Emerge either nettle-1.15 or nettle-2.0 on x86
2. Watch the compile fail
3. ???
4. Profit
Comment 1 Jeff (JD) Horelick (RETIRED) gentoo-dev 2012-01-01 09:12:13 UTC
Created attachment 297513 [details, diff]
Nettle compile fix patch

Here is a patch that will fix the compile of nettle on x86. I tested and built this patch against 2.0, but it should apply fine with no rebasing to 1.15. Also, I did not test if the issue was fixed in later 2.x versions, but if it isn't, this patch should still work.
Comment 2 Jeff (JD) Horelick (RETIRED) gentoo-dev 2012-01-01 09:46:56 UTC
BTW, Here's the relevant part of the build log:

/usr/bin/m4 ./asm.m4 machine.m4 config.m4 \
	md5-compress.asm >md5-compress.s
i686-pc-linux-gnu-gcc -I.  -DHAVE_CONFIG_H -O2 -march=native -mtune=native -pipe -fomit-frame-pointer  -Wno-pointer-sign -Wall -W   -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes   -Wpointer-arith -Wbad-function-cast -Wnested-externs -fpic -MT md5-compress.o -MD -MP -MF md5-compress.o.d -fpic -c md5-compress.s
md5-compress.s: Assembler messages:
md5-compress.s: Error: .size expression for _nettle_sha1_compress does not evaluate to a constant
make[1]: *** [md5-compress.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/dev-libs/nettle-2.0/work/nettle-2.0'
make: *** [all] Error 2
emake failed


and the output of emerge --info:

Portage 2.2.0_alpha83 (default/linux/x86/10.0, gcc-4.5.3, glibc-2.13-r4, 2.6.39-gentoo-r3 i686)
=================================================================
                         System Settings
=================================================================
System uname: Linux-2.6.39-gentoo-r3-i686-Pentium-R-_Dual-Core_CPU_E5300_@_2.60GHz-with-gentoo-2.0.3
Timestamp of tree: Mon, 26 Dec 2011 18:00:01 +0000
app-shells/bash:          4.1_p9
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo mozilla jd
Installed sets: 
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -mtune=native -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /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"
CXXFLAGS="-O2 -march=native -mtune=native -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS=""
GENTOO_MIRRORS="http://192.168.1.139 http://mirror.datapipe.net/gentoo http://lug.mtu.edu/gentoo/ http://gentoo.osuosl.org/ http://gentoo.mirrors.tds.net/gentoo http://gentoo.cites.uiuc.edu/pub/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/mozilla /usr/local/portage"
SYNC="rsync://192.168.1.139/gentoo-portage"
USE="X a52 aac acl acpi adns alsa apng archive auto-hinter bazaar berkdb bonobo branding bzip2 cairo caps cdda cdr cli cracklib crypt cscope cups curl cxx dbus device-mapper dri dvd dvdr emacs encode extra-tools extras ffmpeg flac fortran fuse gdbm gdu git gnome gnutls gpm gstreamer gtk gtkstyle iconv icu ipv6 jpeg jpeg2k lame libnotify lzma mad matroska mercurial mmx modules mp3 mpeg mudflap nautilus ncurses nls nptl nptlonly ntfs ntp ogg openmp optimization pam pcre perl png policykit pppd prebuilt-documentation prediction python rar readline session sqlite sqlite3 sse sse2 ssl startup-notification subversion svg sysfs taglib tcpd theora tiff tools udev unicode utils vim-pager vim-syntax vorbis wavpack wxwidgets x86 xcb xinerama xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 stage tables krita karbon braindump" 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" LINGUAS="en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nv" 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
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2012-01-01 16:16:04 UTC
Psuhed as:

> 01 Jan 2012; Sergei Trofimovich <slyfox@gentoo.org>
> +files/nettle-2.0-binutils-2.22.patch, nettle-1.15.ebuild, nettle-2.0.ebuild,
> nettle-2.1.ebuild:
> Fix build failure against binutils-2.22 by jdhore (bug #396659). Dropped
> blockers on nonexistent dev-libs/lsh.

Thank you, JD!

[ leaving CONFIRMED ]
@crypto: what do you think of stabilizing =nettle-2.4?
Comment 4 Arfrever Frehtes Taifersar Arahesis 2012-01-01 16:32:44 UTC
=sys-devel/binutils-2.22* is not stable, so fixing of old versions of dev-libs/nettle was not needed.
Stabilization of dev-libs/nettle-2.4 should occur in a new bug instead of hijacking this bug.
Comment 5 Jeff (JD) Horelick (RETIRED) gentoo-dev 2012-01-01 17:39:27 UTC
(In reply to comment #3)
> Psuhed as:
> 
> > 01 Jan 2012; Sergei Trofimovich <slyfox@gentoo.org>
> > +files/nettle-2.0-binutils-2.22.patch, nettle-1.15.ebuild, nettle-2.0.ebuild,
> > nettle-2.1.ebuild:
> > Fix build failure against binutils-2.22 by jdhore (bug #396659). Dropped
> > blockers on nonexistent dev-libs/lsh.
> 
> Thank you, JD!
> 
> [ leaving CONFIRMED ]
> @crypto: what do you think of stabilizing =nettle-2.4?

umm...It's failing on binutils-2.21.1-r1 as you can see in my emerge --info output. Not binutils-2.22. This is only a minor note, but it is still important IMO.
Comment 6 Sergei Trofimovich (RETIRED) gentoo-dev 2012-01-02 09:42:04 UTC
(In reply to comment #4)
> =sys-devel/binutils-2.22* is not stable, so fixing of old versions of
> dev-libs/nettle was not needed.
Sorry, my bad. That change should contain binutils-2.21 everywhere.

> Stabilization of dev-libs/nettle-2.4 should occur in a new bug instead of
> hijacking this bug.
OK. Thanks!