Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ll-xn!mit-eddie!wjc From: wjc@eddie.MIT.EDU (Bill Chiarchiaro) Newsgroups: comp.os.minix Subject: Problems compiling kernel; problems with build(?) Message-ID: <5692@eddie.MIT.EDU> Date: Sun, 3-May-87 18:03:29 EDT Article-I.D.: eddie.5692 Posted: Sun May 3 18:03:29 1987 Date-Received: Sun, 3-May-87 22:00:49 EDT Organization: MIT EE/CS Computer Facility, Cambridge, MA Lines: 69 Please excuse the length of this posting, but I wanted to provide as thorough a description of my problem as possible. I am having problems compiling the MINX kernel and building good boot diskettes. My machine is a Leading Edge MP-1673 with 640K and two 320KB floppy drives. I also have the Leading Edge Monochrome Display/Parallel printer adapter, a Standard Brands Multifunction card, and a Standard Brands FlashCard 30 (MiniScribe 8425 Winchester drive with Western Digital WX1002-27X RLL controller). The 8088's clock rate is switchable to either 4.77 or 7.16 MHz. When I try to compile the kernel and build a boot diskette, I get one of three results: 1) A working boot diskette. 2) A fatal error during the "make" of the kernel. 3) No errors from make, cc, or build, but a boot diskette that doesn't boot. Out of the first 8 times I tried to make a boot diskette, only 1 was successful. I then realized that I wasn't sure which CPU speed I had been using; I had been changing it for other purposes. I dropped the speed to 4.77 MHz and my next 3 attempts were all successful. However, my last 4 attempts have all failed. Of the 4 successful attempts, 2 started with a make from scratch of the sources in the kernel directory, and the other 2 consisted of compiling only one source file (printer.c or wini.c) and asld'ing with the other previously-compilied files. The build's have always used the existing object files in the tools directory, except for my new kernel object files. The error mentioned in item 2 above is of the form: make . . cc -S -Di8088 -w -F -T. floppy.c Unrecoverable disk error on device 2/0, block 330 /usr/lib/opt: error on line 825(%*s): unknown instruction byte Make Error code 1 ***Stop. Note that the error does not necessarily occur during the compiliation of floppy.c or during the opt phase of the compiler; these are just examples. Also, the error can occur on device 2/1 and at different block numbers. I also tried switching the diskettes between the two drives and have still seen the error. After getting the error, I can cat every file on the kernel diskette without any problems. The problem mentioned in item 3 goes as follows: I go through a make (or single cc and asld) of the kernel, move the new kernel to the tools diskette, and do a build. No errors have occured up to this point. However, when I try to boot the new boot diskette, I get the following message: Booting MINIX 1.1 Read Error. Automatic reboot. The machine then sits in a loop repeating the message. I have had no problems with the machine under MS-DOS 2.11 or 3.10. Under MINIX, the only other problems I have had have been the expected ones with the hard disk and parallel printer, and also that the shell sometimes does not return a prompt after completing a command (hitting the interrupt character wakes it up). Can anyone give me any advice? Thanks, Bill N1CPK wjc@eddie.mit.edu