Building 3.7-p1 on i686-pc-linux-gnu for execution on i386-pc-linux-gnu

Weber, Michael J. (US SSA) michael.weber at baesystems.com
Fri Apr 9 02:24:19 EST 2004


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 




More information about the openssh-unix-dev mailing list