Can't build with PIC on Linux (Fedora, gcc 4.3)

16 views
Skip to first unread message

Aurélien Bompard

unread,
Aug 29, 2008, 2:42:14 AM8/29/08
to Crypto++ Users
Hi all,

I'm trying to build crypto++ on a Fedora system, using the PIC feature
(as recommanded by the Fedora policy), and it fails with this error :

g++ -DHAVE_CONFIG_H -I. -MT vmac.lo -MD -MP -MF .deps/vmac.Tpo -c
vmac.cpp -fPIC -DPIC -o .libs/vmac.o
vmac.cpp: In member function ‘void
CryptoPP::VMAC_Base::VHASH_Update_SSE2(const CryptoPP::word64*,
size_t, int)’:
vmac.cpp:367: erreur: can't find a register in class ‘GENERAL_REGS’
while reloading ‘asm’
vmac.cpp:367: erreur: ‘asm’ operand has impossible constraints

Any idea how to fix this ?
Thanks !

Aurélien

Eugene Zolenko

unread,
Aug 29, 2008, 5:40:07 PM8/29/08
to Crypto++ Users
You can try disabling SSE2 optimization, since it seems to be broken
in this case (define CRYPTOPP_DISABLE_SSE2).

Don't know how to fix that properly though...
Reply all
Reply to author
Forward
0 new messages