I'm building one distribution based on openembedded with bitbake on my gentoo box. After upgrade sys-devel/binutils-2.20.51.0.1 -> sys-devel/binutils-2.20.51.0.2 openssl build for x86_64 started to fail. There is optimized code in openssl-0.9.8j/crypto/md5/md5-x86_64.s which is builded with gcc -I.. -I../.. -I../../include -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -Wall -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -c -o md5-x86_64.o md5-x86_64.s It works OK with 2.20.51.0.2 and fails with 2.20.51.0.1 (Lot's of errors like this: md5-x86_64.s:41: Error: 0xd76aa478 out range of signed 32bit displacement), probably because changes from this http://www.sourceware.org/bugzilla/show_bug.cgi?id=10636 I'll fill upstream bug if you confirm me, that attached testcase is valid and the problem is not related to any additional gentoo toolchain patches. Thanks Portage 2.2_rc46 (default/linux/amd64/10.0/desktop, gcc-4.4.1, glibc-2.10.1-r0, 2.6.32-rc4-JaMa-00099-g4a9f39b x86_64) ================================================================= System uname: Linux-2.6.32-rc4-JaMa-00099-g4a9f39b-x86_64-AMD_Phenom-tm-_9600_Quad-Core_Processor-with-gentoo-2.0.1 Timestamp of tree: Wed, 14 Oct 2009 06:00:01 +0000 ccache version 2.4 [disabled] app-shells/bash: 4.0_p33 dev-java/java-config: 2.1.9-r1 dev-lang/python: 2.6.3, 3.1.1-r1 dev-python/pycrypto: 2.0.1-r8 dev-util/ccache: 2.4-r8 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.5.1 sys-apps/sandbox: 2.1 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.7.9-r1, 1.9.6-r2, 1.10.2, 1.11 sys-devel/binutils: 2.20.51.0.1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=barcelona -pipe -ftree-vectorize" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=barcelona -pipe -ftree-vectorize -fvisibility-inlines-hidden -fvisibility=hidden" DISTDIR="/tmp/distfiles" FEATURES="assume-digests debug distlocks fixpackages news nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch usersandbox" GENTOO_MIRRORS="http://gentoo.mirror.web4u.cz/distfiles/" LANG="en_GB" LC_ALL="cs_CZ.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu" LINGUAS="cs en_GB en" MAKEOPTS="-j5" PKGDIR="/tmp/binpkgs" 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="/tmp/tmpwork" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/layman/enlightenment /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X a52 aac aalib acl acpi aio alsa amd64 amr apache2 avahi bash-completion berkdb bidi bluetooth branding bzip2 cairo ccache cdparanoia cdr cdrom cgi cli consolekit cracklib crypt cups curl dbus dga doc dri dts dvb dvd dvdr emboss encode evo fam fbcon ffmpeg firefox flac flash fmod fontconfig ftp gallium gd gif gkrellm glib glut gnutls gpgme gpm gps gzip hal iconv icq imagemagick imap imlib innodb ipv6 irc irda isdnlog jabber java java5 java6 javascript joystick jpeg kde kpathsea kqemu krb4 kvm lame libcaca libnotify libwww linuxthreads-tls lirc live lm_sensors logrotate mad maildir matroska mikmod mime mmx modules mozilla mp3 mp4 mpeg mplayer mudflap multilib mysql mysqli ncurses network nls nntp nocd nptl nptlonly nsplugin ogg openal opencore-amr opengl openmp oss pam pcre pdf perl phonon php pic png policykit pop posix ppds pppd python qt3support qt4 quicktime readline reflection rss rsync rtc samba sasl screen sdl semantic-desktop session silc slang smartcard smime smtp sndfile sockets spell spl sse sse2 ssh ssl startup-notification stream subversion svg svgz symlink sysfs tcpd theora threads thunar tiff truetype unicode usb utempter uudeview v4l v4l2 vde vdpau vdr videos vim vorbis webkit wxwindows x264 xanim xcb xcomposite xinetd xml xmlreader xmlrpc xorg xosd xpm xscreensaver xsl xulrunner xv xvid zip zlib zvbi" 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" 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs en_GB en" LIRC_DEVICES="devinput" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler ruby soa visualweb webcommon websvccommon xml dlight enterprise" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm armeb i386 x86_64" USERLAND="GNU" VIDEO_CARDS="vesa nv v4l nouveau nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS Reproducible: Always
Created attachment 207164 [details] md5-x86_64.s
ive updated the upstream URL, thanks for that
*** Bug 290532 has been marked as a duplicate of this bug. ***
Original openssl code comes from there http://perso.epitech.eu/~bevand_m/papers/md5-amd64.html which includes paper on how this is supposed to work (I hope it will allow to fix the openssl problem easier)
*** Bug 292085 has been marked as a duplicate of this bug. ***
Fix for md5 is at http://rt.openssl.org/Ticket/Display.html?id=2094 but there is similar problem with sha1 (and there is no fix for that so far).
*** Bug 292567 has been marked as a duplicate of this bug. ***
added the change from upstream and the sha change from fedora to openssl 0.9.8l-r1 other packages should have bugs reported against them to be changed