Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Sep 1996 12:18:21 +0200 (MET DST)
From:      grog@lemis.de (Greg Lehey)
To:        azhad@azhad.elec.uq.edu.au (Ahmad Azhad)
Cc:        questions@freebsd.org
Subject:   Re: problem recompiling the kernel (2.1.5)
Message-ID:  <199609171018.MAA07956@allegro.lemis.de>
In-Reply-To: <199609160755.RAA00709@azhad.elec.uq.edu.au> from "Ahmad Azhad" at Sep 16, 96 05:55:05 pm

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609171018.MAA07956>