[Botan-devel] Botan 64-bit on Solaris

Rickard Bondesson Rickard.Bondesson at iis.se
Mon Dec 15 08:21:42 EST 2008


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
/var/tmp//ccmDDPgx.s:84: Error: `0x5A827999(%ecx,%eax,1)' is not a valid 64 bit base/index expression
/var/tmp//ccmDDPgx.s:85: Error: `0x5A827999(%r11d,%eax,1)' is not a valid 64 bit base/index expression
[... 60 more rows ...]
/var/tmp//ccmDDPgx.s:165: Error: `0xCA62C1D6(%r9d,%eax,1)' is not a valid 64 bit base/index expression
/var/tmp//ccmDDPgx.s:166: Error: `0xCA62C1D6(%r8d,%eax,1)' is not a valid 64 bit base/index expression
/var/tmp//ccmDDPgx.s:167: Error: `0xCA62C1D6(%esi,%eax,1)' is not a valid 64 bit base/index expression
/var/tmp//ccmDDPgx.s:168: Error: `0xCA62C1D6(%ecx,%eax,1)' is not a valid 64 bit base/index expression

Seems to be a problem with the assembly code in sha1_amd64_imp.S

I am using g++ 3.4.3.

Any suggestions on how to fix this?

// Rickard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 475 bytes
Desc: not available
URL: <http://lists.randombit.net/pipermail/botan-devel/attachments/20081215/fd99372e/attachment.sig>


More information about the botan-devel mailing list