From: graham van epps <[EMAIL PROTECTED]> gvanepps> making all in crypto/sha... gvanepps> make[2]: Entering directory `/usr/local/src/openssl-0.9.5a/crypto/sha' gvanepps> cc -I.. -I../../include -std1 -tune host -O4 -readonly_strings -c sha_dgst.c -o sha_dgst.o gvanepps> Fatal: Insufficient virtual memory to continue compilation. I've investigated this, and found that of all the files using md32_common.h, this only happens to sha_dgst.c, at least on the Alpha I'm playing with. sha1dgst.c gets through with no trouble at all. So, it comes down to the difference between SHA0 and SHA1 in sha_locl.h, and all I can find is the difference in the macro Xupdate(), which of course must be kept the way it is, or things will not work any more. However, I also checked what optimization level was the trigger point. Result: it compiles with -O0, but not with -O1. The conclusion is that it might be the stuff at -O1 that does it, and considering that the man page for cc says that -O1 basically does, and I quote: Local optimizations and recognition of common subexpressions. Global optimizations, including code motion, strength reduction and test replacement, split lifetime analysis, and code scheduling. well, I'm not too surprised. Trouble is, you really wanna optimize as much as possible, so having all of OpenSSL at -O0 is not really a good option (except that it does go through the whole compilation then :-)). It would be better to have it only on sha_dgst.c. I tried inserting "#pragma optimize level=0", but that didn't have any effect. Maybe I'm missing something? So, it seems like the choice to make it compile at all is to do the following after you configured: make DIRS=crypto SDIRS=sha "`grep '^CFLAG=' Makefile.ssl | sed -e 's/ -O[0-9] / -O0 /'`" rm `ls crypto/*.o crypto/sha/*.o | grep -v 'sha_dgst\.o'` make It works for me, at least as fast as compilation goes... Until we've resolved this, I propose the above three lines as a solution. -- Richard Levitte \ Spannv�gen 38, II \ [EMAIL PROTECTED] Chairman@Stacken \ S-168 35 BROMMA \ T: +46-8-26 52 47 Redakteur@Stacken \ SWEDEN \ or +46-709-50 36 10 Procurator Odiosus Ex Infernis -- [EMAIL PROTECTED] Member of the OpenSSL development team: http://www.openssl.org/ Software Engineer, Celo Communications: http://www.celocom.com/ Unsolicited commercial email is subject to an archival fee of $400. See <http://www.stacken.kth.se/~levitte/mail/> for more info. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
