Subject: Re: failed kernel compile
To: Chris Jones <cjones@honors.montana.edu>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: port-pmax
Date: 03/10/1998 14:23:22
On Tue, 10 Mar 1998 13:21:22 -0700 (MST) 
 Chris Jones <cjones@honors.montana.edu> wrote:

 > I got this message from cc, and it looks bad to me:
 > 
 > # make
 > cc -x assembler-with-cpp -traditional-cpp -D_LOCORE -I. -I../../../../arch -I../../../.. -nostdinc -DMIPS1 -DDS5000_240 -DDIAGNOSTIC -DCOMPAT_43 -DKTRACE -DNKMEMCLUSTERS=1024 -DDDB -DDDB_HISTORY_SIZE="0x64" -DKGDB -DNTP -DFIFO -DNFSSERVER -DINET -DGATE
  WAY
 >  -DCOMPAT_12 -DCOMPAT_13 -DCOMPAT_ULTRIX -DHZ=256 -DMAXUSERS=64 -D_KERNEL  -Dpmax -G 0 -c ../../../../arch/mips/mips/locore.S
 > ../../../../arch/mips/mips/locore.S: Assembler messages:
 > ../../../../arch/mips/mips/locore.S:703: Error: expression too complex
 > ../../../../arch/mips/mips/locore.S:703: Fatal error: internal Error, line 1669, ../../gas/config/tc-mips.c
 > *** Error code 1
 > 
 > Stop.
 > 
 > Any ideas what this *really* means?  Is it actually a gcc problem?

It's the assembler's less-than-perfect way of telling you that a
constant isn't defined... on my locore.S (rev 1.47), line 703 is:

        lw      t0, cnt+V_SWTCH

...which tells me that V_SWTCH isn't defined.  It _should_ be defined
in your assym.h file!

Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                            Home: +1 408 866 1912
NAS: M/S 258-5                                       Work: +1 650 604 0935
Moffett Field, CA 94035                             Pager: +1 415 428 6939