[Botan-devel] Botan 64-bit on Solaris

Jack Lloyd lloyd at randombit.net
Mon Dec 15 08:41:17 EST 2008


On Mon, Dec 15, 2008 at 02:21:42PM +0100, Rickard Bondesson wrote:
> Hi
> 
> I am trying to compile a 64-bit version of Botan on Solaris, but I have problem with some of the assembly code:
> 
> ./configure.pl --with-tr1=none --cpu=amd64
> make
> [...]
> g++ -m64 -Ibuild/include -O2 -finline-functions -march=opteron -momit-leaf-frame-pointer -D_REENTRANT -ansi -Wno-long-long -W -Wall -fPIC -c src/hash/sha1_amd64/sha1_amd64_imp.S -o build/lib/sha1_amd64_imp.o
> /var/tmp//ccmDDPgx.s: Assembler messages:
> /var/tmp//ccmDDPgx.s:83: Error: `0x5A827999(%esi,%eax,1)' is not a valid 64 bit base/index expression
[...]

Hi Richard,

For the time being I'd suggst simply disabliny the 64-bit SHA-1 asm
entirely with --disable-module=sha1_amd64. I'm not sure why Solaris
would reject these instructions - I'll investigate but I will not have
a chance until later this week at the earliest (and actually am off
the net entirely from about now until Wednesday night).

You might also try using GNU binutils instead of Solaris's as?

-Jack




More information about the botan-devel mailing list