From owner-freebsd-questions Tue Sep 17 03:43:42 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id DAA26546 for questions-outgoing; Tue, 17 Sep 1996 03:43:42 -0700 (PDT) Received: from diablo.ppp.de (diablo.ppp.de [193.141.101.34]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id DAA26516 for ; Tue, 17 Sep 1996 03:42:52 -0700 (PDT) Received: from allegro.lemis.de by diablo.ppp.de with smtp (Smail3.1.28.1 #1) id m0v2xbS-000QjoC; Tue, 17 Sep 96 12:42 MET DST From: grog@lemis.de (Greg Lehey) Organisation: LEMIS, Schellnhausen 2, 36325 Feldatal, Germany Phone: +49-6637-919123 Fax: +49-6637-919122 Received: (grog@localhost) by allegro.lemis.de (8.6.9/8.6.9) id MAA07956; Tue, 17 Sep 1996 12:18:21 +0200 Message-Id: <199609171018.MAA07956@allegro.lemis.de> Subject: Re: problem recompiling the kernel (2.1.5) To: azhad@azhad.elec.uq.edu.au (Ahmad Azhad) Date: Tue, 17 Sep 1996 12:18:21 +0200 (MET DST) Cc: questions@freebsd.org In-Reply-To: <199609160755.RAA00709@azhad.elec.uq.edu.au> from "Ahmad Azhad" at Sep 16, 96 05:55:05 pm X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Ahmad Azhad writes: > > Hi, I just had problem recompiling my kernel (it used to be fine). > Here is the log: > > root:/sys/compile/ATA> make > cpp -DLOCORE -nostdinc -I. -I../.. -I../../sys -I../../../include -DATA > -DI486_CPU -DXSERVER -DATAPI -DSYSVMSG -DSYSVSEM -DSYSVSHM -DUCONSOLE > -DBOUNCE_BUFFERS -DCOMPAT_43 -DPROCFS -DCD9660 -DMSDOSFS -DNFS -DFFS > -DINET -DKERNEL -Di386 -DLOAD_ADDRESS=0xF0100000 > ../../i386/i386/locore.s | as -o locore.o > ../../i386/i386/locore.s: Assembler messages: > ../../i386/i386/locore.s:156: Error: Rest of line ignored. First ignored > character is `b'. > ../../i386/i386/locore.s:156: Error: invalid character '_' in opcode > (etc) > *** Error code 1 > > Stop. > > Please help me, I want to recompile my kernel desperately. Well, since as is friendly enough to tell you the line number, why don't you take a look at what's there? In 2.1, it looked something like: /* * btext: beginning of text section. * Also the entry point (jumped to directly from the boot blocks). */ NON_GPROF_ENTRY(btext) movw $0x1234,0x472 /* warm boot */ /* Set up a real frame, some day we will be doing returns */ pushl %ebp movl %esp, %ebp I'd guess that your locore.s is hosed, and that you'll see a lot of junk starting on line 156. Greg