setting OBJECT_MODE=64 did not help. Here is the part of the output that make displays on the screen. --------------- making all in crypto/bn... make[2]: Entering directory `/home/nz/urjit/openssl-0.9.8-stable-SNAP-20071004/crypto/bn'
<snip> gcc -I.. -I../.. -I../../include -DOPENSSL_THREADS -D_THREAD_SAFE -DDSO_DLFC N -DHAVE_DLFCN_H -maix64 -O -DB_ENDIAN -c -o bn_err.o bn_err.c gcc -I.. -I../.. -I../../include -DOPENSSL_THREADS -D_THREAD_SAFE -DDSO_DLFC N -DHAVE_DLFCN_H -maix64 -O -DB_ENDIAN -c -o bn_sqr.o bn_sqr.c /usr/bin/perl asm/ppc.pl aix_ppc64.s gcc -I.. -I../.. -I../../include -DOPENSSL_THREADS -D_THREAD_SAFE -DDSO_DLFC N -DHAVE_DLFCN_H -maix64 -O -DB_ENDIAN -c -o aix_ppc64.o aix_ppc64.s ---------------- So, the perl script asm/ppc.pl generates aix_ppc64.s I opened aix_ppc64.s and the first few lines confused me ... they read: #-------------------------------------------------------------------- # # File: ppc32.s # -------------- Why does the comment say File: ppc32.s, when I am actually opening aix_ppc64.s ? On the other hand, a section in the file correctly mentions *.machine "ppc64"* So I am not sure if the .s file generated is valid. Also, running the above gcc command with -v gives me -------------- gcc -v -I.. -I../.. -I../../include -DOPENSSL_THREADS -D_THREAD_SAFE -DDSO_D LFCN -DHAVE_DLFCN_H -maix64 -O -DB_ENDIAN -o aix_ppc64.o aix_ppc64.s Reading specs from /usr/bin/../lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.2/specs Configured with: ../gcc-3.2/configure --prefix=/usr/local/gcc-3.2 --enable-languags=c,c++ --e nable-threads=posix --enable-shared --disable-nls --with-ld=/usr/bin/ld --wi th-as=/usr/bin/as Thread model: aix gcc version 3.2 /usr/bin/as -u -a64 -mppc64 -o /tmp//ccxeRF7B.o aix_ppc64.s --------------- The assembler version is 5.1 could someone help me with figuring out whether my compiler / assembler is missing any patches? Appriciate any help in this regard. ~ Urjit ----- Original Message ----- From: "Peter Waltenberg" <[EMAIL PROTECTED]> To: "Urjit Gokhale (Gmail)" <[EMAIL PROTECTED]> Sent: Monday, December 17, 2007 4:13 PM Subject: Re: Openssl AIX-64 bit build hangs > Yes, no-asm is fine. > The ONLY reason for the asm is to gain performance. The gain can be quite > significant though 3-5X faster for RSA and 2-3X for algorithms like AES is > typical. > > I actually support IBM's OpenSSL based crypto, so I know this does work - > I'd have thousands of screaming customers if it didn't, but as I commented > AIX 5.1 was early days for 64 bit AIX, and there may be some problems there > that got patched after release. > > FWIW it's "OBJECT_MODE" not "OBJECTMODE" - I just checked the scripts we > use to set up for our builds. > > Peter > > > > > From: "Urjit Gokhale \(Gmail\)" <[EMAIL PROTECTED]> > > To: Peter Waltenberg/Australia/[EMAIL PROTECTED] > > Date: 12/17/2007 07:04 PM > > Subject: Re: Openssl AIX-64 bit build hangs > > > > > > > Thank you Peter for responding. > I will check if setting OBJECTMODE or any other environment variable helps > me in getting a clean build. I will also check the possibility of applying > any patches that might be missing. > > I would just like to confirm that building with no-asm will just result in > a > little inefficient object code, but wont have any issues with the > correctness/features supported by the library, right? > Do you think it is safe to use the library build with no-asm, till I get > the > normal (without no-asm) build to work ? > > ~ Urjit > > ----- Original Message ----- > From: "Peter Waltenberg" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, December 17, 2007 2:09 PM > Subject: Re: Openssl AIX-64 bit build hangs > > > > From memory you need to set an environment variable as well. Something > > "Like" OBJECTMODE=64 to build 64 bit code on AIX. > > > > I've definitely built working 64 bit code on AIX though so it does work. > > In fact I contributed the asm, AFAIK it's O.K. Also - without patches, > AIX > > 5.1 had a few issues with 64 bit code - check for compiler/assembler > > updates. > > > > Peter > > > > > > > > > > > > > > From: "Urjit Gokhale \(Gmail\)" <[EMAIL PROTECTED]> > > > > To: <openssl-dev@openssl.org> > > > > Date: 12/17/2007 05:24 PM > > > > Subject: Openssl AIX-64 bit build hangs > > > > > > > > > > > > > > Hello everyone, > > > > I am trying to build 64 bit openssl on AIX 5.1 box. The build hangs in > the > > following step: > > > > gcc -I.. -I../.. -I../../include -DOPENSSL_THREADS -D_THREAD_SAFE > > -DDSO_DLFCN -DHAVE_DLFCN_H -maix64 -O -DB_ENDIAN -c -o aix_ppc64.o > > aix_ppc64.s > > > > It doesn't throw any warnings/errors. It just hangs. > > I am configuring the build with: ./Configure aix64-gcc > > > > I tried ./Configure no-asm aix64-gcc and it worked. So looks like > something > > to do with asm ? > > Also, The 32 bit build succeeds on the same system. So looks like > something > > to do with asm + -maix64 combination ? > > > > I am curious to know more about the effect of no-asm, and also if my AIX > > box is missing something that is preventing me from building a normal 64 > > bit openssl build (i.e. without using no-asm). > > > > Thank you, > > ~ Urjit > > > > > ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List openssl-dev@openssl.org Automated List Manager [EMAIL PROTECTED]