Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 185644 - net-im/silc-client-1.1.2 doesn't compile on amd64
Summary: net-im/silc-client-1.1.2 doesn't compile on amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-17 08:53 UTC by Alexandre Rostovtsev (RETIRED)
Modified: 2007-08-10 18:09 UTC (History)
1 user (show)

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


Attachments
fixed silc-client-1.1.2.ebuild (silc-client-1.1.2.ebuild,2.04 KB, text/plain)
2007-07-17 08:54 UTC, Alexandre Rostovtsev (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Rostovtsev (RETIRED) gentoo-dev 2007-07-17 08:53:13 UTC
The problem is that silc-client uses yasm to compile some amd64 assembly, but specifies the object type as "elf". Yasm (or at least yasm-0.6.0) interprets "elf" to mean "elf32", and obviously that doesn't too great work on amd64:

/bin/sh ../../libtool --tag=CC --mode=compile /usr/bin/yasm -Xgnu -felf aes_x86_64.asm
 /usr/bin/yasm -Xgnu -felf aes_x86_64.asm -o aes_x86_64.o
aes_x86_64.asm:693: warning: `rsp' is a register in 64-bit mode
aes_x86_64.asm:693: undefined symbol `rsp' (first use)
aes_x86_64.asm:693:  (Each undefined symbol is reported only once.)
aes_x86_64.asm:694: warning: `rsp' is a register in 64-bit mode
aes_x86_64.asm:694: warning: `rsi' is a register in 64-bit mode
[...]
aes_x86_64.asm:856: warning: `rsp' is a register in 64-bit mode
make[3]: *** [aes_x86_64.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/net-im/silc-client-1.1.2/work/silc-client-1.1.2/lib/silccrypt'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-im/silc-client-1.1.2/work/silc-client-1.1.2/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-im/silc-client-1.1.2/work/silc-client-1.1.2'
make: *** [all] Error 2
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2007-07-17 08:54:29 UTC
Created attachment 125148 [details]
fixed silc-client-1.1.2.ebuild

Solution is to sed configure and replace felf with felf64 on amd64.
Comment 2 Raúl Porcel (RETIRED) gentoo-dev 2007-07-20 18:51:06 UTC
Hrm...why it uses yasm?
Comment 3 Alexandre Rostovtsev (RETIRED) gentoo-dev 2007-07-20 20:42:51 UTC
(In reply to comment #2)
> Hrm...why it uses yasm?
For fast crypto.

Comment 4 Raúl Porcel (RETIRED) gentoo-dev 2007-07-20 21:05:34 UTC
But how does that work? Just having yasm installed? I'm asking because i was able to built it successfully on amd64, but i don't have yasm installed.
Comment 5 Alexandre Rostovtsev (RETIRED) gentoo-dev 2007-07-20 21:31:33 UTC
(In reply to comment #4)
> But how does that work? Just having yasm installed? I'm asking because i was
> able to built it successfully on amd64, but i don't have yasm installed.
Have a look at configure.ac, it automatically looks for nasm and yasm, and uses them if they are available. Convenient.
Comment 6 Raúl Porcel (RETIRED) gentoo-dev 2007-07-23 11:51:39 UTC
Shrug...stupid build system...okay, i'll have a look, thanks for the info
Comment 7 Raúl Porcel (RETIRED) gentoo-dev 2007-08-10 18:09:42 UTC
Fixed, thanks.