Return to BSD News archive
Path: sserve!manuel!munnari.oz.au!mips!mips!zaphod.mps.ohio-state.edu!uwm.edu!ogicse!news.u.washington.edu!serval!yoda.eecs.wsu.edu!hlu From: hlu@yoda.eecs.wsu.edu (H.J. Lu) Newsgroups: comp.unix.bsd Subject: Re: Where can I get 386BSD? Message-ID: <1992Jun26.134457.16928@serval.net.wsu.edu> Date: 26 Jun 92 13:44:57 GMT Article-I.D.: serval.1992Jun26.134457.16928 References: <BqEnBz.JC7@fmsrl7.srl.ford.com> <BqG6tM.Grp@mhres> Sender: news@serval.net.wsu.edu (USENET News System) Organization: Washington State University Lines: 44 > >I am also interested in obtaining a copy of 386BSD. > >By the way, I tried to compile the bootstrap programs of the first >article in Dr. Dobb's Journal. I used DJ's GCC for MS-DOS and Turbo C 2.0 >for compiling these programs. > >Trying to run the bootstrap loader I got the message that the generated >386 executable didn't have a correct magic number, so it couldn't be >loaded. > >Does anyone know any solution to this problem? I don't have a mini-computer >for cross-compiling 386 programs, so I can't use GCC for cross-compilation. > BTW, you maybe can cross-compiler 386bsd from Linux. as (gas 1.38.1) should be compatible. You may have to use a bsd version of binutils.tar.Z, at least ar. Linux uses USG style. I think it is almost trivial for gcc. cd /usr/lib/gcc-lib mkdir i386-bsd (i386-386bsd?) cd i386-linux/2.2.2 ln -s cpp cc1 cc1plus include ../i386-bsd/2.2.2 cd ../../i386-bsd/2.2.2 mkdir sys-include cd sys-include # fixincludes? Linux doesn't need it. cp -r (-R?) 386bsd/include/* . cd ../ fix specs # no -Dlinux, -Dbsd? ...... You are done. You can use gcc -b i386-bsd to compile for 386bsd and gcc for Linux. BTW, gcc 2.2.2 for Linux will be out this weekend. H.J. ------ gcc/libc maintainer for Linux.