Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 94288 - emerge bestcrypt-1.5_p10 build error
Summary: emerge bestcrypt-1.5_p10 build error
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-28 07:21 UTC by Havard Bjerke
Modified: 2005-06-21 02:21 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Havard Bjerke 2005-05-28 07:21:46 UTC
x86_64-pc-linux-gnu-gcc -c -D__KERNEL__ -DMODULE 
-I/usr/src/linux/include/asm/mach-default/ -DKBUILD_BASENAME=BestCrypt
-D_NEED_THIS_MODULE 
-I/var/tmp/portage/bestcrypt-1.5_p10/work/bcrypt/mod/../include/
-I/usr/src/linux/include/ -O3 -march=athlon64 -pipe -ftracer -ffast-math
-fno-stack-protector-all -fno-stack-protector -DKBUILD_MODNAME=bc_serpent -I. -o
bc_alg.o ../bc_alg.c
{standard input}: Assembler messages:
{standard input}:12: Error: suffix or operands invalid for `push'


Reproducible: Always
Steps to Reproduce:
1. emerge bestcrypt
Actual Results:  
build error

Expected Results:  
install bestcrypt

Portage 2.0.51.19 (default-linux/amd64/2004.3, gcc-3.4.3,
glibc-2.3.4.20041102-r1, 2.6.9-gentoo-r14 x86_64)
=================================================================
System uname: 2.6.9-gentoo-r14 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, May 13 2005, 09:28:41)]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.9.5, 1.6.3, 1.4_p6, 1.8.5-r3, 1.7.9-r1
sys-devel/binutils:  2.15.92.0.2-r8
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon64 -pipe -ftracer -ffast-math"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon64 -pipe -ftracer -ffast-math"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.linux.ee/pub/gentoo/distfiles/
http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.pudas.net/gentoo
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 3dnowex X acpi alsa apm avi bash-completion berkdb bitmap-fonts cdr
crypt cups curl dvd dvdread esd ethereal fam font-server foomaticdb fortran gdbm
gif gpm gtk gtk2 imagemagick imlib jabber jack java jp2 jpeg libwww lzw lzw-tiff
mad motif mozilla mozsvg mp3 mpeg msn ncurses network nls noplugin ogg oggvorbis
opengl oss pam perl png portaudio postgres ppds python qt readline real rtc
samba sdl slang ssl svg tcltk tcpd tetex theora tiff truetype truetype-fonts
type1-fonts usb userlocales vim-with-x vorbis xinerama xml xml2 xmms xpm xrandr
xv xvid xvmc zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Daniel Black (RETIRED) gentoo-dev 2005-05-28 17:04:07 UTC
amd64 peoples - seen this bug before? 
Comment 2 Olivier Crete (RETIRED) gentoo-dev 2005-05-29 00:51:14 UTC
the problem is that the whole thing for the serpent algorithm is in ASM..
Porting that to amd64 will be a pain.. You would have to replace all "push %eXX"
to "push %rXX" (and the same for pops).

Blubb, how did you test this ?
Comment 3 Daniel Black (RETIRED) gentoo-dev 2005-05-29 01:27:08 UTC
does bestcrypt-1.6_p1 work? 
Comment 4 Havard Bjerke 2005-05-29 07:09:00 UTC
bestcrypt-1.6_p1 doesn't build either. It has the same problem.
Comment 5 Daniel Black (RETIRED) gentoo-dev 2005-06-01 04:43:47 UTC
I've emailed the jetico developers. 
Comment 6 Daniel Black (RETIRED) gentoo-dev 2005-06-18 17:56:50 UTC
bestcrypt has been masked on amd64. I'll try to remember to notify you when 
the next version comes out. 
Comment 7 Daniel Black (RETIRED) gentoo-dev 2005-06-20 06:39:30 UTC
I've disabled rc6/serpent on amd64 in 1.6_p1 - hopefully it will work now. 
 
reporting serpent compile error to  Michael Oestergaard Pedersen 
(www.carceri.dk). 
Comment 8 Daniel Black (RETIRED) gentoo-dev 2005-06-20 14:16:14 UTC
From: Michael 
Comment 9 Daniel Black (RETIRED) gentoo-dev 2005-06-20 14:16:14 UTC
From: Michael Østergaard Pedersen 
 To: Daniel 
  
The reason for this error is that Serpent is written in x86 assembler. I 
have implemented the Windows version in C so it is compatible with more 
architectures, and I will do the same for the Linux patch. I was planning 
to do it tonight or sometime tomorrow. 
 
I will let you know when it is available. 
Comment 10 Daniel Black (RETIRED) gentoo-dev 2005-06-21 02:21:50 UTC
bestcrypt-1.6_p1-r1 added thanks to a patch from Michael. 
 
You'll need to unmask it to test it (add =app-crypt/bestcrypt-1.6_p1-r1 
to /etc/portage/package.unmask) 
 
Please test the rc6 and serpent on amd64. Michael is awaiting feedback and I'd 
like to know too. 
 
Thanks peoples.