View previous topic :: View next topic |
Author |
Message |
raphaelb n00b
Joined: 06 Oct 2005 Posts: 6
|
Posted: Tue Nov 08, 2005 12:41 am Post subject: Cross compiling Openssh/Openssl for ARM |
|
|
Could anyone help me solve this cross compilation mystery?
I'm compiling openssh (& openssl) for ARM using a toolchain I built with crossdev.
I built the full stage 4 toolchain, with glibc and everything.
When I run a
ROOT=/opt/cross CHOST=arm-unknown-linux-gnu emerge openssh
it compiles the first few deps without a problem, but when it gets to openssl, I get the following:
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'
asm/mx86-elf.s:17: Error: bad instruction `movl 12(%esp),%edi'
asm/mx86-elf.s:18: Error: bad instruction `movl 16(%esp),%esi'
asm/mx86-elf.s:19: Error: bad instruction `movl 20(%esp),%ecx'
Which looks to continue on down the line for a long time, in similar state as this, ending with:
make[2]: *** [asm/mx86-elf.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/openssl-0.9.7e-r2/work/openssl-0.9.7e/crypto/md5'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/var/tmp/portage/openssl-0.9.7e-r2/work/openssl-0.9.7e/crypto'
make: *** [sub_all] Error 1
Something is amiss, though I don't know how to fix it.
It seems to me that it is actually using the x86 assembler, hence the mx86-elf.o
I looked further up in the configuration, and found this, though I don't know how to change it:
Operating system: i686-whatever-linux2
Configuring for linux-elf
Configuring for linux-elf
IsWindows=0
CC =gcc
CFLAG =-fPIC -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DL_ENDIAN -DTERMIO -Wall -O2 -pipe -Wa,--noexecstack -DSHA1_ASM -DMD5_ASM -DRMD160_ASM
EX_LIBS =-ldl
BN_ASM =asm/bn86-elf.o asm/co86-elf.o
DES_ENC =asm/dx86-elf.o asm/yx86-elf.o
BF_ENC =asm/bx86-elf.o
CAST_ENC =c_enc.o
RC4_ENC =asm/rx86-elf.o
RC5_ENC =asm/r586-elf.o
MD5_OBJ_ASM =asm/mx86-elf.o
SHA1_OBJ_ASM =asm/sx86-elf.o
RMD160_OBJ_ASM=asm/rm86-elf.o
<SNIP>
Any suggestions on what to do now?
Thanks so much for your help!
-Raphael |
|
Back to top |
|
|
raphaelb n00b
Joined: 06 Oct 2005 Posts: 6
|
Posted: Wed Nov 09, 2005 7:08 pm Post subject: |
|
|
Now I think that openssl is doing its own weird configuration thing, and setting itself up with the wrong assembler...
Can anyone tell me what/how to have emerge override the default config for openssl so it uses arm-unknown-linux-gnu-as instead?
I allready tried USE="arm" and ACCEPT_KEYWORDS="arm"
am I missing anything?
Thanks,
Raphael |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|