TR : cross-compile cryptlib 3.4.0 with arm-linux-gcc

"Ludo Brands" <[email protected]>
Newsgroups gmane.comp.encryption.cryptlib
Message-ID <021601cc163c$5d3a1c40$6602a8c0@Ludo10>
Replied by accident to sender directly. 


-----Message d'origine-----
De : Ludo Brands [mailto:[email protected]] 
Envoyé : jeudi 19 mai 2011 11:09
À : 'yuqm'
Objet : RE : [Cryptlib] cross-compile cryptlib 3.4.0 with arm-linux-gcc


You specified the compiler but not the target architecture. The target
architecture is the ubuntu one (arch=pentiumpro). 
The closest target I can find for android on ARM in the makefile is
target-uclinux. Try "make target-uclinux". 

Ludo



-----Message d'origine-----
De : [email protected]
[mailto:[email protected]] De la part de yuqm Envoyé : jeudi
19 mai 2011 10:09 À : [email protected] Objet : [Cryptlib]
cross-compile cryptlib 3.4.0 with arm-linux-gcc



Hi,
In my Android project,I need to used cryptlib statically-linked library.So
under Ubuntu, I used arm-linux-gcc to cross-compile the cryptlib project.But
it failed! 
I can not really read the makefile and donnot know if it support the arm
linux cross-compilation. Here is the Error Message:

/***************************************************/
lcz@ubuntu:~/Desktop/cl340$ make CC=arm-linux-gcc
make[1]: Entering directory `/home/lcz/Desktop/cl340'
make[1]: Leaving directory `/home/lcz/Desktop/cl340'
make[1]: Entering directory `/home/lcz/Desktop/cl340'
make[1]: Leaving directory `/home/lcz/Desktop/cl340'
make[1]: Entering directory `/home/lcz/Desktop/cl340'
make[2]: Entering directory `/home/lcz/Desktop/cl340' arm-linux-gcc -c
-DNDEBUG -I. -DDATA_LITTLEENDIAN -DHAS_RECURSIVE_MUTEX -DHAS_ROBUST_MUTEX
-march=pentiumpro -O2 -Wno-pointer-sign -Wno-strict-aliasing -std=gnu99
-fstack-protector -D_FORTIFY_SOURCE=2 -DOSVERSION=2 -DUSE_ASM
-fomit-frame-pointer -D_REENTRANT -o ./static-obj/bn_add.o bn/bn_add.c
bn/bn_add.c:1: error: bad value (pentiumpro) for -march= switch
make[2]: *** [static-obj/bn_add.o] Error 1
make[2]: Leaving directory `/home/lcz/Desktop/cl340'
make[1]: *** [Linux] Error 2
make[1]: Leaving directory `/home/lcz/Desktop/cl340'
make: *** [default] Error 2
lcz@ubuntu:~/Desktop/cl340$ 
/*****************************************************/

thanks,yuqm 
-- 
View this message in context:
http://old.nabble.com/cross-compile-cryptlib-3.4.0-with-arm-linux-gcc-tp3164
5435p31645435.html
Sent from the Cryptlib mailing list archive at Nabble.com.


_______________________________________________
Cryptlib mailing list
[email protected] via Mail:
[email protected]
Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/
http://news.gmane.org/gmane.comp.encryption.cryptlib
Posts from non-subscribed addresses are blocked to prevent spam, please
subscribe in order to post messages.


_______________________________________________
Cryptlib mailing list
[email protected] via Mail: [email protected]
Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/
http://news.gmane.org/gmane.comp.encryption.cryptlib
Posts from non-subscribed addresses are blocked to prevent spam, please
subscribe in order to post messages.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.