Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 290532

Summary: openssl-0.9.8k-r1 fails to build in AMD64 Linux prefix: out range of signed 32bit displacement
Product: Gentoo/Alt Reporter: Darik Horn <dajhorn>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
URL: http://www.sourceware.org/bugzilla/show_bug.cgi?id=10636
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch to disable asm for openssl in x86_64-pc-linux-gnu prefix
entire openssl build log

Description Darik Horn 2009-10-26 03:33:13 UTC
Bug #10636 seems to persist in a Gentoo prefix.  Some 32-bit assembly in the openssl package chokes the 64-bit gas on an AMD64 Linux host.

Reproducible: Always

Steps to Reproduce:
$ emerge openssl
Actual Results:  
x86_64-pc-linux-gnu-gcc -I.. -I../.. -I../../include -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -Wall -DMD32_REG_T=int -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -O2 -pipe -Wa,--noexecstack -c  -o md5-x86_64.o md5-x86_64.s
md5-x86_64.s: Assembler messages:
md5-x86_64.s:41: Error: 0xd76aa478 out range of signed 32bit displacement



$ emerge --info
Portage 2.2.00.14724-prefix (prefix/linux/amd64, gcc-4.4.2, unavailable, 2.6.31-11-generic x86_64)
=================================================================
System uname: Linux-2.6.31-11-generic-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9300_@_2.50GHz-with-debian-squeeze-sid
Timestamp of tree: Mon, 26 Oct 2009 02:55:10 +0000
app-shells/bash:     4.0_p33-r00.1
dev-lang/python:     2.6.2-r2
sys-devel/autoconf:  2.63-r01.1
sys-devel/automake:  1.10.2-r00.1, 1.11
sys-devel/binutils:  2.20.51.0.2
sys-devel/gcc-config: 1.4.1-r00.2
sys-devel/libtool:   2.2.6a-r00.2
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="~amd64-linux"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/gentoo/usr/portage/distfiles"
FEATURES="assume-digests collision-protect distlocks fixpackages news parallel-fetch preserve-libs protect-owned sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
PKGDIR="/gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/gentoo/"
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="/gentoo/var/tmp"
PORTDIR="/gentoo/usr/portage"
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="amd64 berkdb bzip2 cli cracklib crypt dri fortran gdbm iconv ipv6 isdnlog mmx modules mudflap ncurses nls nptl nptlonly openmp pcre perl pppd prefix python readline reflection session spl sse sse2 ssl sysfs tcpd unicode xorg zlib" 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 authn_alias authn_anon 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Darik Horn 2009-10-26 03:38:39 UTC
Created attachment 208281 [details, diff]
patch to disable asm for openssl in x86_64-pc-linux-gnu prefix
Comment 2 Darik Horn 2009-10-26 03:39:52 UTC
Created attachment 208282 [details]
entire openssl build log
Comment 3 Darik Horn 2009-10-26 04:00:59 UTC
Bug #289130 is related.
Comment 4 SpanKY gentoo-dev 2009-11-05 20:10:09 UTC

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