I try to emerge openssl using cross-compiler as follows: > ARCH=ppc CFLAGS="-O2" CXXFLAGS="-O2" USE="-userlocales -perl -pam -gdbm -berkdb" CBUILD=i686-pc-linux-gnu CHOST=powerpc-unknown-linux-gnu ROOT=/home/ppc_root/ ebuild dev-libs/openssl and the native gcc compiler was used instead of powerpc-unknown-linux-gnu-gcc
Created attachment 53523 [details] emerge info output
openssl is known to not cross-compile and to fail pretty badly the configure detection scripts utilize tools like `uname` to figure out the build system
openssl-0.9.7e-r1 seems to pick the right compiler for me (arm-xscale-linux-uclibc-gcc). But then it chokes on the assembly code in crypto/md5/asm. I get error messages like so: arm-xscale-linux-uclibc-gcc -c -I.. -I../.. -I../../include -fPIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DL_ENDIAN -DTERMIO -Wall -Os -pipe -march=armv5te -mtune=xscale -Wa,--noexecstack -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -o asm/mx86-elf.o asm/mx86-elf.s asm/mx86-elf.s: Assembler messages: asm/mx86-elf.s:11: Error: alignment too large: 15 assumed asm/mx86-elf.s:13: Error: unrecognized symbol type "" asm/mx86-elf.s:15: Error: bad instruction `pushl %esi' asm/mx86-elf.s:16: Error: bad instruction `pushl %edi'
if you really need to cross compile, create a fake uname i compiled gentoo in chroot on a amd64 for a k6-2, in such case it works just fine
please sync up and try out 0.9.7g and see if it works any better
works for me