Weber, Michael J. (US SSA)
2004-Apr-08 16:24 UTC
Building 3.7-p1 on i686-pc-linux-gnu for execution on i386-pc-linux-gnu
I have a small single-board computer (SBC) I'd like to run OpenSSH on, but when I build the binaries on my development station and copy them over, I get "Illegal Instruction" errors when running them (sshd, ssh-keygen, ssh-add, ssh-agent, ssh-keyscan). I have successfully built zlib 1.2.1 and tested it with minigzip on the SBC, so I don't think the problem is with zlib. I have successfully built OpenSSL 0.9.7d and run the speed test on all of the ciphers and hashes on the SBC, so I don't think the problem is with OpenSSL. I have successfully built OpenSSH 3.7-p1 on the development machine, and it runs there, but it will not run on the SBC, which has a 386-compatible chip (AMD Elan 520.) I have tried putting -march=i386 and -mcpu=i386 on the command line before running configure, but it doesn't work (and in fact, configure appears to ignore them, as they never make it in to the makefiles). I've tried manually editing the makefiles in the root and in openbsd-compat to include the correct compiler flags, but that doesn't help either. I even replaced config.guess to output "i386-pc-linux-gnu" instead of "i686-pc-linux-gnu." I can't find the source of the mis-compilation. Any ideas?? I'm stuck! glibc 2.2.5, gcc 2.96, build kernel 2.4.18, SBC kernel 2.4.23. Thanks, Mike ----------------------------- Mike Weber * 703-668-4516 Network Engineer, BAE Systems
Peter Stuge
2004-Apr-08 19:14 UTC
Building 3.7-p1 on i686-pc-linux-gnu for execution on i386-pc-linux-gnu
On Thu, Apr 08, 2004 at 12:24:19PM -0400, Weber, Michael J. (US SSA) wrote:> I have tried putting -march=i386 and -mcpu=i386 on the command line > before running configure, but it doesn't workHow did you do this, exactly? Try: $ CFLAGS=-mcpu=i386 ./configure //Peter
Maybe Matching Threads
- Building 3.7-p1 on i686-pc-linux-gnu for execution oni386-pc-linux-gnu
- [BUG] boot failure since syslinux-3.00
- Samba 4 AD Join to Itself
- [LLVMdev] llvm-gcc-i686-pc-linux-gnu-cross-arm-eabi-soft-float
- [LLVMdev] llvm-gcc-i686-pc-linux-gnu-cross-arm-eabi-soft-float