Date: Thu, 12 Jul 2001 08:29:59 +1000 From: Peter Jeremy <peter.jeremy@alcatel.com.au> To: "Bruce A. Mah" <bmah@packetdesign.com> Cc: hackers@FreeBSD.ORG Subject: Re: Development for older FreeBSD releases Message-ID: <20010712082959.B506@gsmx07.alcatel.com.au>
next in thread | raw e-mail | index | archive | help
On Wed, 11 Jul 2001 14:13:36 -0700, bmah@packetdesign.com (Bruce A. Mah) wrote: >I need to make an executable to run on an i386 box running FreeBSD 2.2.X >machine. Unfortunately, it has no compiler installed on it. ... >Is it even possible to try doing a "cross-compile" to such an old >version of FreeBSD? (I'm primarily thinking of a.out vs. ELF issues...a >quick experiment already informed me that I'm lacking an appropriate >crt0.o.) At least the later 2.2.x kernels can run ELF executables. I'm not sure when ELF was added, but it was before 2.2.5. I can build a trivial[1] static executable using the -CURRENT toolchain and run it on a 2.2.5 machine. I can't quickly test a dynamic executable (I'd need to copy the ELF loader and shared libraries onto my 2.2.5 system). >Or am I better off trying somehow to build up a 2.2.X machine to do >development on? It is possible to do a buildworld of RELENG_2_2 on a -CURRENT system when chroot'd into a 2.2.5 userland. (Unfortunately, this won't help you since you need the 2.2.x compiler). About 6 months ago, I tried and failed to get a RELENG_2_2 buildworld to work using the -CURRENT toolchain, though it should be possible to build the 2.2.x compiler on -CURRENT. As Greg Black stated, your easiest option would be to use a 2.2.x CD-ROM. If you don't have the CD-ROM's and are just missing the compiler, I'd be happy to e-mail you a copy of cc, cc1, as and ld for any 2.2.x-RELEASE. [1] main() { printf("Hello World\n"); }. Non-trivial programs will run into syscall incompatibilities - the most obvious being the signal() changes just under 2 years ago. Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010712082959.B506>