When trying to upgrade from openssl-0.9.8d to openssl-0.9.8e-r3 on a VIA C3 system, compilation aborts here: i586-pc-linux-gnu-gcc -I.. -I../.. -I../../include -fPIC -DOPENSSL_PIC -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -Wall -DOPENSSL_BN_ASM_PART_WORDS -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -pipe -march=i586 -Wa,--noexecstack -c -o eng_padlock.o eng_padlock.c eng_padlock.c: In function 'padlock_xcrypt_ecb': eng_padlock.c:445: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm' make[2]: *** [eng_padlock.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/dev-libs/openssl-0.9.8e-r3/work/openssl-0.9.8e/crypto/engine' make[1]: *** [subdirs] Error 1 make[1]: Leaving directory `/var/tmp/portage/dev-libs/openssl-0.9.8e-r3/work/openssl-0.9.8e/crypto' make: *** [build_crypto] Error 1 * * ERROR: dev-libs/openssl-0.9.8e-r3 failed. * Call stack: * ebuild.sh, line 1654: Called dyn_compile * ebuild.sh, line 990: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * openssl-0.9.8e-r3.ebuild, line 114: Called die I am using gcc-4.1.2. Reproducible: Always Steps to Reproduce: 1. emerge openssl 2. 3.
I have found some references on the web about that gcc error. Adding at least -O1 to CFLAGS seems to resolve it. Please check/confirm. Maybe adding some check/advice about that in the ebuild would be nice.
Fixed in -r4 *** This bug has been marked as a duplicate of bug 185104 ***