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

Bug 292567

Summary: dev-libs/openssl fails to build
Product: Gentoo Linux Reporter: Zdenek Sojka <zsojka>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED DUPLICATE    
Severity: normal CC: hwoarang, toolchain
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
URL: http://sourceware.org/bugzilla/show_bug.cgi?id=10636
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log

Description Zdenek Sojka 2009-11-09 19:42:15 UTC
=dev-libs/openssl-0.9.8l fails to build with assembler error message at ~amd64
=dev-libs/openssl-0.9.8k-r1 fails too with similiar error message, but it didn't fail before (I have it installed)

Reproducible: Always

Steps to Reproduce:
1. emerge -1 dev-libs/openssl-0.9.8l

Actual Results:  
md5-x86_64.s: Assembler messages:                                                                                                                            
md5-x86_64.s:41: Error: 0xd76aa478 out range of signed 32bit displacement                                                                                    
md5-x86_64.s:50: Error: 0xe8c7b756 out range of signed 32bit displacement                                                                                    
md5-x86_64.s:68: Error: 0xc1bdceee out range of signed 32bit displacement                                                                                    
..........

md5-x86_64.s:571: Error: 0xf7537e82 out range of signed 32bit displacement
md5-x86_64.s:580: Error: 0xbd3af235 out range of signed 32bit displacement
md5-x86_64.s:598: Error: 0xeb86d391 out range of signed 32bit displacement
make[2]: *** [md5-x86_64.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-libs/openssl-0.9.8l/work/openssl-0.9.8l/crypto/md5'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-libs/openssl-0.9.8l/work/openssl-0.9.8l/crypto'
make: *** [build_crypto] Error 1

Expected Results:  
compiles fine

# gcc -v
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.3.4/work/gcc-4.3.4/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.4 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.4/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.4/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --enable-multilib --disable-libmudflap --disable-libssp --enable-libgomp --enable-cld --disable-libgcj --enable-languages=c,c++,treelang,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.3.4 p1.0'
Thread model: posix
gcc version 4.3.4 (Gentoo 4.3.4 p1.0)


# emerge --info =dev-libs/openssl-0.9.8l
Portage 2.2_rc49 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.11-r0, 2.6.30-gentoo-r8 x86_64)
=================================================================                             
                        System Settings                                                       
=================================================================                             
System uname: Linux-2.6.30-gentoo-r8-x86_64-AMD_Phenom-tm-_9950_Quad-Core_Processor-with-gentoo-2.0.1
Timestamp of tree: Mon, 09 Nov 2009 18:15:02 +0000                                                   
distcc 3.1 x86_64-pc-linux-gnu [disabled]                                                            
ccache version 2.4 [enabled]                                                                         
app-shells/bash:     4.0_p35                                                                         
dev-lang/python:     2.6.4, 3.1.1-r1                                                                 
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.2-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.6.3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.20.51.0.2
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 -fomit-frame-pointer -s -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=barcelona -fomit-frame-pointer -s -pipe -fpermissive"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache 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="cs_CZ.UTF-8"
LC_ALL="cs_CZ.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en cs"
MAKEOPTS="-j6"
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="/usr/portage/local/layman/toolchain /usr/portage/local/legacy"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowex 3dnowext 7zip X a52 aac aalib acpi akode alsa amd64 ansi aotuv artswrappersuid asf async audiofile automount bash-completion binary-drivers blas boost branding browserplugin bzip2 cddb cdparanoia cdr chdir crypt css cups custom-cflags custom-cxxflags custom-flags custom-optimization cvs cxx dbus dc1394 debugger divx dlloader dmi double-precision dv dvb dvbplayer dvd dvdnav dvdr dvdread dynamic ecc emerald encode exif fat ffmpeg firefox flac fortran fpx ftp gecko gif ginac git glib glibc-omitfp gmedia gmp gphoto2 gpm graphite graphviz gs gtk hal hddtemp hpn iconv idea ieee1394 imagemagick imlib ipv6 java5 java6 javascript jbig jpeg jpeg2k kde kdeenablefinal kqemu lame libcaca lm_sensors logitech-mouse lzma lzo mad matroska midi mikmod mjpeg mmap mmx mmxext mng modplug motif mozbranding mozdevelop mozilla moznopango mp2 mp3 mp4 mpeg mplayer multilib musepack musicbrainz ncurses nls no-old-linux nodrm noflagstrip nopie nossp nptl nptlonly nsplugin ntfs nvidia ogg oldnet openal opencore-amr opengl openmp osdmenu pdf png pnm povray qhull qt3support qt4 quicktime rar readline realmedia reiser4 reiserfs rle rtc run-as-root samba scenarios sdl shm slang smbclient smp sndfile speex srt sse sse2 sse3 ssl stream submenu subtitles subversion svg swat sysfs syslog t1lib tetex tga theora threads threadsafe tiff timidity truetype unicode urandom usb v4l v4l2 vcd vlm vorbis wma-fixed wmf wmp x264 xanim xcb xine xml xmms xorg xulrunner xv xvid xvmc yv12 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="*" 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" CAMERAS="spca50x" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en cs" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


# emerge -pqv =dev-libs/openssl-0.9.8l
[ebuild     U ] dev-libs/openssl-0.9.8l [0.9.8k-r1] USE="gmp (sse2) zlib -bindist -kerberos -test"
Comment 1 Zdenek Sojka 2009-11-09 19:44:53 UTC
Created attachment 209765 [details]
build log
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2009-11-09 19:54:42 UTC
please disable ccache from FEATURES and try again to build it
Comment 3 Zdenek Sojka 2009-11-09 20:13:51 UTC
Thank you for your reply. I tried to disable ccache and remove some CFLAGS, but it didn't help:

CFLAGS="-O2 -march=barcelona"
CXXFLAGS="-O2 -march=barcelona -fpermissive"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"

Still fails with the same error.
Comment 4 Zdenek Sojka 2009-11-09 20:20:34 UTC
It happens even for vanilla openssl-0.9.8l for me:

wget http://www.openssl.org/source/openssl-0.9.8l.tar.gz
tar xzf openssl-0.9.8l.tar.gz && cd openssl-0.9.8l
./config && make

...
md5-x86_64.s:508: Error: 0x8f0ccc92 out range of signed 32bit displacement                                                                                   
md5-x86_64.s:517: Error: 0xffeff47d out range of signed 32bit displacement 
...
Comment 5 Markos Chandras (RETIRED) gentoo-dev 2009-11-09 20:24:43 UTC
Seems to be an upstream bug

http://sourceware.org/bugzilla/show_bug.cgi?id=10636

Gentoo devs seems to be already aware of this
Comment 6 SpanKY gentoo-dev 2009-11-09 20:50:57 UTC

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