Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 155434 - openssl 0.9.8d compile fails with x86_64cpuid.s "bad register name" errors
Summary: openssl 0.9.8d compile fails with x86_64cpuid.s "bad register name" errors
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Other
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
Reported: 2006-11-16 16:39 UTC by Gregg Casillo
Modified: 2006-11-16 17:24 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Gregg Casillo 2006-11-16 16:39:06 UTC
Portage 2.1.1-r1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.18-gentoo-r2 i686)
System uname: 2.6.18-gentoo-r2 i686 Intel(R) Core(TM)2 CPU          6300  @ 1.86GHz
Gentoo Base System version 1.12.1
Last Sync: Thu, 16 Nov 2006 21:30:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [disabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
CFLAGS="-march=nocona -O2 -pipe"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=nocona -O2 -pipe"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
USE="x86 X a52 aac acpi alsa apache2 arts audiofile bash-completion berkdb bitmap-fonts bzip2 cddb cdparanoia cdr cli cracklib crypt ctype dlloader dvd dvdread elibc_glibc encode ffmpeg flac gdbm gif iconv imap imlib innodb input_devices_evdev input_devices_keyboard input_devices_mouse ivtv jpeg kde kdeenablefinal kdehiddenvisibility kdexdeltas kernel_linux libg++ libwww lirc lm_sensors mad maildir matroska mime mmx mng mp3 mpeg mplayer mysql ncurses nls nptl nptlonly nvidia ogg openal opengl pcre perl php png python quicktime readline samba sdl speex spl sse sse2 ssl svg tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU v4l vhosts video_cards_nvidia vim-syntax vorbis win32codecs x264 xine xml xorg xpm xv xvid xvmc zlib"
Comment 1 Gregg Casillo 2006-11-16 16:40:22 UTC
While performing an "emerge -e system" during a new install on my Core 2 Duo system, I received this error in openssl-0.9.8d:

gcc -I. -I.. -I../include -fPIC -DOPENSSL_PIC -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -Wall -DMD32_REG_T=int -DMD5_ASM -march=nocona -O2 -pipe -Wa,--noexecstack -c  -o x86_64cpuid.o x86_64cpuid.s
x86_64cpuid.s: Assembler messages:
x86_64cpuid.s:6: Error: bad register name `%rdx'
x86_64cpuid.s:7: Error: bad register name `%rdx'
x86_64cpuid.s:15: Error: bad register name `%rdi)'
x86_64cpuid.s:16: Error: bad register name `%rsi,%rax)'
x86_64cpuid.s:17: Error: bad register name `%r8d'
x86_64cpuid.s:19: Error: bad register name `%r8d'
x86_64cpuid.s:36: Error: bad register name `%xmm8'
x86_64cpuid.s:37: Error: bad register name `%xmm9'
x86_64cpuid.s:38: Error: bad register name `%xmm10'
x86_64cpuid.s:39: Error: bad register name `%xmm11'
x86_64cpuid.s:40: Error: bad register name `%xmm12'
x86_64cpuid.s:41: Error: bad register name `%xmm13'
x86_64cpuid.s:42: Error: bad register name `%xmm14'
x86_64cpuid.s:43: Error: bad register name `%xmm15'
x86_64cpuid.s:44: Error: bad register name `%rcx'
x86_64cpuid.s:45: Error: bad register name `%rdx'
x86_64cpuid.s:46: Error: bad register name `%rsi'
x86_64cpuid.s:47: Error: bad register name `%rdi'
x86_64cpuid.s:48: Error: bad register name `%r8'
x86_64cpuid.s:49: Error: bad register name `%r9'
x86_64cpuid.s:50: Error: bad register name `%r10'
x86_64cpuid.s:51: Error: bad register name `%r11'
x86_64cpuid.s:52: Error: bad register name `%rsp)'
x86_64cpuid.s:59: Error: bad register name `%rbx'
x86_64cpuid.s:62: Error: bad register name `%rcx'
x86_64cpuid.s:64: Error: bad register name `%r8'
x86_64cpuid.s:65: Error: bad register name `%rcx'
make[1]: *** [x86_64cpuid.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/openssl-0.9.8d/work/openssl-0.9.8d/crypto'
make: *** [build_crypto] Error 1

!!! ERROR: dev-libs/openssl-0.9.8d failed.
Call stack:, line 1546:   Called dyn_compile, line 937:   Called src_compile
  openssl-0.9.8d.ebuild, line 110:   Called die

!!! make all failed
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-11-16 16:42:13 UTC
(In reply to comment #0)
> Portage 2.1.1-r1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3,
> CBUILD="x86_64-pc-linux-gnu"
> CHOST="x86_64-pc-linux-gnu"

You aren't serious about this, are you? :P You've got pretty screwed system, go reinstall from scratch.

Comment 3 Gregg Casillo 2006-11-16 17:05:50 UTC
OK, fine, I'm a frickin idiot. Please explain why I need to reinstall from scratch. Seriously. I don't understand. This is my first 64-bit build with Gentoo and a Core 2 Duo processor. I am using the prescribed safe CFLAGS. What's wrong with my emerge --info?
Comment 4 Gregg Casillo 2006-11-16 17:15:28 UTC
Uh, I'll guess that I needed to pickup the AMD64 stage3 tarball instead of the x86/i686 tarball. Stupid.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-11-16 17:24:34 UTC
(In reply to comment #4)
> Uh, I'll guess that I needed to pickup the AMD64 stage3 tarball instead of the
> x86/i686 tarball. 

That would be really helpful... And default-linux/x86/2006.1 is not the best profile if you want to run 64bit OS, try one of the amd64 ones ;)