qblindeman / eid-mw

Automatically exported from code.google.com/p/eid-mw
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Build failure on Gentoo : libtomcrypt #49

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ./configure --lib+=-L/usr/lib/qt4 --include+=/usr/include/qt4 
--with-pcsclite=/usr/lib --with-openssl=/usr/lib
2. make

What is the expected output? What do you see instead?

gcc -c -pipe -fPIC -DBEID_35 -DEIDMW_PREFIX=/usr/local -DEIDMW_CMN_EXPORT 
-DUSING_DL_OPEN -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4 
-I/usr/include/PCSC -I/usr/include/qt4/QtCore -I/usr/include/Qt -I/usr/include 
-I/opt/icedtea6-bin-1.8.0/include -I/opt/icedtea6-bin-1.8.0/include/linux 
-Icommon -Icommon/libtomcrypt -Icommon/Socket -I/usr/include/PCSC -o md5.o 
libtomcrypt/md5.c
In file included from libtomcrypt/tomcrypt_hash.h:22,
                 from libtomcrypt/md5.c:11:
libtomcrypt/tomcrypt_macros.h: In function ‘ROLc’:
libtomcrypt/tomcrypt_macros.h:229: attention : asm operand 2 probably doesn’t 
match constraints
libtomcrypt/tomcrypt_macros.h:229: erreur: impossible constraint in ‘asm’
make[1]: *** [md5.o] Erreur 1
make[1]: quittant le répertoire « 
/home/vincent/beid-runtime/3_5_4/eid-mw/_src/eidmw/common »
make: *** [sub-common-make_default-ordered] Erreur 2

What version of the product are you using? On what operating system?
Eid-mw branch 3.5.4 on Gentoo linux

Original issue reported on code.google.com by vincent.hardy.be@gmail.com on 31 Aug 2010 at 10:35

GoogleCodeExporter commented 9 years ago
Vincent,

This is a 64-bit issue. 

Libtomcrypt conditionally uses blocks of assembly to speed up operations.
The assembly is very platform-dependent and not 64-bit compatible.

in the trunk, we now consistently use -DLTC_NO_ASM in our CXXFLAGS to disable 
the asm, and then libtomcrypt compiles and works fine on 64-bit.

The build scripts are deprecated, and for 4.0 we'll be building on GNU 
autotools.
Unless you really need 3.5.4 (because e.g. you need the eid-viewer) I'd suggest 
using the trunk for now.

Original comment by fr...@apsu.be on 1 Oct 2010 at 10:24