Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 85344 - emerge openssl-0.9.7e fails to use cross compiler
Summary: emerge openssl-0.9.7e fails to use cross compiler
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 92074 92075 92076
  Show dependency tree
 
Reported: 2005-03-15 07:04 UTC by Mike Rapoport
Modified: 2005-05-21 18:13 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge info output (emerge.info,2.01 KB, text/plain)
2005-03-15 07:06 UTC, Mike Rapoport
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Rapoport 2005-03-15 07:04:30 UTC
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
Comment 1 Mike Rapoport 2005-03-15 07:06:43 UTC
Created attachment 53523 [details]
emerge info output
Comment 2 SpanKY gentoo-dev 2005-03-15 08:54:04 UTC
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
Comment 3 Tim Dodge 2005-05-03 13:56:13 UTC
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'
Comment 4 emerald 2005-05-08 12:32:04 UTC
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
Comment 5 SpanKY gentoo-dev 2005-05-08 23:37:41 UTC
please sync up and try out 0.9.7g and see if it works any better
Comment 6 SpanKY gentoo-dev 2005-05-21 18:13:42 UTC
works for me