Hello, A follow up on my previous email on the same thread.
I am building OpenSSL-0.9.7c on a 64-bit Red Hat Linux 2.6.9-5.EL system. I was getting the following error - cryptlib.c:1: error: CPU you selected does not support x86-64 instruction set make[3]: *** [cryptlib.o] Error 1 make[2]: *** [sub_all] Error 1 make[1]: *** [all] Error 2 I got around this error by using GCC4 and using the -m64 and -march=k8 CFLAGS in the Makefile. Now, I am getting the following assembler errors - asm/mx86-elf.s: Assembler messages: asm/mx86-elf.s:15: Error: suffix or operands invalid for `push' asm/mx86-elf.s:16: Error: suffix or operands invalid for `push' asm/mx86-elf.s:20: Error: suffix or operands invalid for `push' asm/mx86-elf.s:22: Error: suffix or operands invalid for `push' asm/mx86-elf.s:26: Error: suffix or operands invalid for `push' asm/mx86-elf.s:680: Error: suffix or operands invalid for `pop' asm/mx86-elf.s:681: Error: suffix or operands invalid for `pop' asm/mx86-elf.s:682: Error: suffix or operands invalid for `pop' asm/mx86-elf.s:683: Error: suffix or operands invalid for `pop' asm/mx86-elf.s:684: Error: suffix or operands invalid for `pop' make[3]: *** [asm/mx86-elf.o] Error 1 make[3]: Leaving directory `/x/eng/build/scratch/saumyaa/p4/zephyr/main-02/src/openssl/openssl-0.9. 7c-linux/crypto/md5' make[2]: *** [subdirs] Error 1 make[2]: Leaving directory `/x/eng/build/scratch/saumyaa/p4/zephyr/main-02/src/openssl/openssl-0.9. 7c-linux/crypto' make[1]: *** [sub_all] Error 1 make[1]: Leaving directory `/x/eng/build/scratch/saumyaa/p4/zephyr/main-02/src/openssl/openssl-0.9. 7c-linux' make: *** [top] Error 2 Can openSSL-0.9.7c libraries be built for 64-bit linux? If yes, is there a workaround for the above assembler errors? If no, which version of openssl can be built on 64-bit Linux? Thanks, Saumya -----Original Message----- From: Agarwal, Saumya Sent: Wednesday, November 15, 2006 10:31 AM To: openssl-users@openssl.org Subject: RE: Is openSSL supported on 64-bit Linux ? Thanks Darryl. Here are the specific details of my system - bash-3.00$ uname -a Linux saumya.foobar.com 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:29:47 EST 2005 x86_64 x86_64 x86_64 GNU/Linux bash-3.00$ gcc -v Reading specs from /usr/lib/gcc/x86_64-redhat-linux/3.4.3/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,objc,java,f77 --enable-java-awt=gtk --host=x86_64-redhat-linux Thread model: posix gcc version 3.4.3 20041212 (Red Hat 3.4.3-9.EL4) Error on building openSSL on this machine - cryptlib.c:1: error: CPU you selected does not support x86-64 instruction set make[3]: *** [cryptlib.o] Error 1 make[2]: *** [sub_all] Error 1 make[1]: *** [all] Error 2 As you can see, the GCC version I am using is older than what you have mentioned. Could it be that this version does not support building openSSL on 64-bit linux? Thanks for the help, Saumya -----Original Message----- From: Darryl Miles [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 14, 2006 5:03 PM To: openssl-users@openssl.org Subject: Re: Is openSSL supported on 64-bit Linux ? I would guess anything within the last few years. Lets take a system: $ uname -a Linux me.foobar.com 2.6.18 #1 SMP Sun Sep 24 21:09:55 BST 2006 x86_64 x86_64 x86_64 GNU/Linux $ gcc -v Using built-in specs. Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,java,f95,ada --enable-java-awt=gtk --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --host=x86_64-redhat-linux Thread model: posix gcc version 4.0.2 20051125 (Red Hat 4.0.2-8) And run: $ tar -zxvf /tmp/openssl-0.9.8b.tar.gz $ ./config $ make $ make test $ echo $? 0 $ I have a native 64bit linux build: $ ar xv libcrypto.a cryptlib.o x - cryptlib.o $ file cryptlib.o cryptlib.o: ELF 64-bit LSB relocatable, AMD x86-64, version 1 (SYSV), not stripped $ ldd ./apps/openssl libdl.so.2 => /lib64/libdl.so.2 (0x0000003ec9e00000) libc.so.6 => /lib64/libc.so.6 (0x0000003ec9900000) /lib64/ld-linux-x86-64.so.2 (0x0000003ec9500000) Maybe you can be more specific about your building problems, which distribution, which gcc, etc... Darryl Agarwal, Saumya wrote: > Thanks for the replies. Let me clarify my question. > > I get the following error when building OpenSSL 0.9.7c on 64-bit Redhat > Linux - > cryptlib.c:1: error: CPU you selected does not support x86-64 > instruction set > make[3]: *** [cryptlib.o] Error 1 > > Do we build OpenSSL libraries on 64-bit Linux ? If yes, could you let me > know the version of OpenSSL that can be built on 64-bit Linux ? ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED] ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED] ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]