Sorry, I finally caught on, I build with xlc, not gcc on AIX. Which at least explains why I've never hit this on AIX.
I do however build with gcc on PPC Linux on SLES-8 which uses gcc 3.(something). So yes, an "as" bug seems most likely since this doesn't cause problems on Linux. All I can suggest is that you get the sources for the as that came with SLES-8 (www.suse.de will have those) and try to build it on AIX. Peter From: "Urjit Gokhale \(Gmail\)" <[EMAIL PROTECTED]> To: <openssl-dev@openssl.org>, Peter Waltenberg/Australia/[EMAIL PROTECTED] Date: 12/28/2007 08:18 PM Subject: Re: Openssl AIX-64 bit build hangs Here are the latest observations: (apologies in advance for the long mail). Machine: AIX 5.1 gcc -v : 3.2 (I also have gcc 4.0 and observed the same behavior mentioned below) as -v: V5.1 $ ./Configure aix64-gcc $ make This hangs in the following command. ======== making all in crypto/bn... make[3]: Entering directory `/osd4/netezza/nz/urjit/openssl-0.9.8-stable-SNAP-20071004/crypto/bn' 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 ======== Then I ran the above command with -v, to check what gcc is actually doing: ======== $ cd crypto/bn $ gcc -v -I.. -I../.. -I../../include -DOPENSSL_THREADS -D_THREAD_SAFE -DDSO_D LFCN -DHAVE_DLFCN_H -maix64 -O -DB_ENDIAN -c -o aix_ppc64.o aix_ppc64.s Using built-in specs. Target: powerpc-ibm-aix5.1.0.0 Configured with: ../configure --with-as=/usr/bin/as --with-ld=/usr/bin/ld --disable-nls --ena ble-languages=c,c++ --prefix=/opt/freeware --enable-threads --enable-version -specific-runtime-libs --host=powerpc-ibm-aix5.1.0.0 Thread model: aix gcc version 4.0.0 /usr/bin/as -u -a64 -mppc64 -o aix_ppc64.o aix_ppc64.s ======== This as command appeared to be hung. I ran this command without the -u options, and it worked: ======== $ /usr/bin/as -a64 -mppc64 -o aix_ppc64.o aix_ppc64.s $ ls aix_ppc64.o aix_ppc64.o ======== The man page for as, has this to say about the -u option: ======== -u Accepts an undefined symbol as an extern so that an error message is not displayed. Otherwise, undefined symbols are flagged with error messages. ======== So I wonder how the as commands hangs when -u is provided, and works fine without it ? As as is internally called by gcc, how can I tell gcc to call this command without -u? Does it even make sense (as calling as without -u may result in build failures in other components)? Has anyone seen this before? Do you guys think there is some problem with the assembler? Do you think I require a patch for the assembler? If yes, could you please point me to a place from where I can get the patch for the assembler? I will highly appriciate any help you guys may provide. Thank you, ~ Urjit ----- Original Message ----- From: "Peter Waltenberg" <[EMAIL PROTECTED]> To: <openssl-dev@openssl.org>; <[EMAIL PROTECTED]> Sent: Tuesday, December 18, 2007 3:45 AM Subject: Re: Openssl AIX-64 bit build hangs > All the versions of the PPC assembler are generated from one perl file. > (ppc.pl) > > And yes, that does leave ppc32.s in the comments at the top of the > generated assembler file, and references to 32 bit PowerPC platform, but at > least when I built it here out of openssl-0.9.8e the assembler was 64 bit > AIX ppc assembler. > > Look for the line with ".machine" as the first word, that should be > followed by "ppc64" > > My build machine is AIX 5.2 with xlc 6., as is V5.2. > > No hangs here, and the OpenSSL "make tests" also runs to completion. > " > util/opensslwrap.sh version -a > OpenSSL 0.9.8e 23 Feb 2007 > built on: Tue Dec 18 07:59:55 EET 2007 > platform: aix64-cc > options: bn(64,64) md2(int) rc4(ptr,char) des(idx,cisc,4,long) > blowfish(idx) > compiler: cc -DOPENSSL_THREADS -DDSO_DLFCN -DHAVE_DLFCN_H -g -q64 > -qdbxextra -qthreaded -q64 -O -DB_ENDIAN -qmaxmem=16384 > OPENSSLDIR: "/usr/local/ssl" > square-peterw [/sandboxes/peterw/ICC8.0/aix64/openssl-0.9.8e] > file apps/openssl > apps/openssl: 64-bit XCOFF executable or object module not stripped > " > > All I can suggest is that you check that you have all the current patches > for the C runtime and compiler. > > Peter > > > > > > From: "Urjit Gokhale \(Gmail\)" <[EMAIL PROTECTED]> > > To: <openssl-dev@openssl.org> > > Date: 17/12/2007 23:03 > > Subject: Re: Openssl AIX-64 bit build hangs > > > > > > > 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] > > ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List openssl-dev@openssl.org Automated List Manager [EMAIL PROTECTED]