Subject: Weird G3 problem
To: None <port-macppc@netbsd.org>
From: Michael Wolfson <mw@blobulent.com>
List: port-macppc
Date: 07/29/2001 12:12:19
Hey y'all.

I just finally got around to borrowing a G3 card for my 7300.  Everything
seems to work, except L2 cache.  In the process of trying to build a new
kernel with the cache enabled, I ran into a problem.

It seems that (even with the cache disabled), the G3 is unable to compile
the stock 1.5.1 kernel, but my 604 is.  It fails at the same point every
time, and when I reboot with the 604, it works just fine.

This is with the stock 1.5.1 syssrc.tgz, my G3 card at its slowest speed
(40 MHz system bus, no cache, 220 MHz), even though it works under MacOS
just fine at a reasonable speed (43 MHz system bus, 1.5x cache, and ~270
MHz).

The only difference between a successful compile and a failed compile is
the CPU.

I'd appreciate any help here.  Since no one with a G4 and a DSL line has
stepped up to build binary packages, I'm using my 150 MHz 604 over a flaky
128 kbps connection.  And I definitely don't want to get into building kde
only to find out that the G3 is corrupting stuff.

Thanks,
  -- MW

rm -f param.c
cp ../../../../conf/param.c .
cc  -O2 -pipe -Werror -Wreturn-type -Wpointer-arith -Wno-uninitialized
-Wno-main
 -msoft-float -I. -I../../../../arch -I../../../.. -nostdinc
-DOFB_ENABLE_CACHE
-DL2CR_CONFIG="(L2SIZ_1M|L2CLK_15|L2RAM_PIPELINE_BURST)" -DTRAP_PANICWAIT
-DNMBC
LUSTERS="0x400" -DMAXUSERS=32 -D_KERNEL -Dmacppc  -c param.c
cc1: warnings being treated as errors
In file included from machine/proc.h:3,
                 from ../../../../sys/proc.h:53,
                 from param.c:51:
powerpc/proc.h:39: warning: structure defined inside parms
In file included from machine/lock.h:4,
                 from ../../../../sys/lock.h:91,
                 from ../../../../sys/proc.h:54,
                 from param.c:51:
powerpc/lock.h:46: storage class specified for parameter `__cpu_simple_lock_t'
In file included from ../../../../sys/proc.h:54,
                 from param.c:51:
../../../../sys/lock.h:99: syntax error before `__cpu_simple_lock_t'
../../../../sys/lock.h:108: warning: structure defined inside parms
../../../../sys/lock.h:118: storage class specified for parameter
`simple_lock_d
ata_t'
../../../../sys/lock.h:119: storage class specified for parameter
`simple_lock_t
'
../../../../sys/lock.h:120: storage class specified for parameter `lock_data_t'
../../../../sys/lock.h:121: storage class specified for parameter `lock_t'
../../../../sys/lock.h:152: warning: structure defined inside parms
../../../../sys/lock.h:159: warning: structure defined inside parms
../../../../sys/lock.h:170: warning: structure defined inside parms
In file included from ../../../../sys/proc.h:56,
                 from param.c:51:
../../../../sys/callout.h:84: warning: structure defined inside parms
../../../../sys/callout.h:87: warning: structure defined inside parms
../../../../sys/callout.h:92: warning: structure defined inside parms
../../../../sys/callout.h:100: storage class specified for parameter
`callwheel'
../../../../sys/callout.h:101: storage class specified for parameter
`callwheels
ize'
../../../../sys/callout.h:101: syntax error before `callwheelbits'
../../../../sys/callout.h:108: warning: anonymous struct declared inside
paramet
er list
../../../../sys/callout.h:108: warning: its scope is only this definition
or dec
laration,
../../../../sys/callout.h:108: warning: which is probably not what you want.
../../../../sys/callout.h:108: warning: `struct callout' declared inside
paramet
er list
../../../../sys/callout.h:108: warning: `struct callout_queue' declared
inside p
arameter list
../../../../sys/callout.h:108: warning: anonymous struct declared inside
paramet
er list
../../../../sys/callout.h:108: warning: anonymous struct declared inside
paramet
er list
../../../../sys/callout.h:108: warning: `struct lock' declared inside
parameter
list
../../../../sys/callout.h:108: warning: `struct simplelock' declared inside
para
meter list
../../../../sys/callout.h:108: warning: `struct mdproc' declared inside
paramete
r list
/u1/bldsrc/gnu/usr.bin/egcs/cc1/../../../dist/gcc/c-decl.c:4370: Internal
compil
er error in function grokdeclarator
cpp: output pipe has been closed
*** Error code 1

Stop.