Subject: Re: Optimized kernel for PB520
To: Frederick Bruckman <fredb@immanent.net>
From: Joe Laffey <joe@laffeycomputer.com>
List: port-mac68k
Date: 11/29/2004 16:22:41
On Mon, 29 Nov 2004, Frederick Bruckman wrote:

> On Mon, 29 Nov 2004, Joe Laffey wrote:
>
>> So I starting doing this cross compile, but I get the bug listed in this 
>> (actually, yours, Frederick) PR 
>> http://mail-index.netbsd.org/netbsd-bugs/1999/07/02/0002.html
>> 
>> Did you ever come up with a solution for this?
>
> That was fixed in NetBSD 1.4.1. It had nothing to do with cross-compiles, in 
> any case. What error are you getting, exactly?


Below is the error message during the build. Note that I am building from 
a 1.6.x x86 machine.

This error only occurs when I comment out the following lines in the 
kernel conf:

# On-board serial interface
zsc0    at obio?
zstty*  at zsc? channel ?


If these are commented out I get the error below, even with less agressive 
CFLAGS.


#   compile  BRICK-SBC4/machdep.o
/usr/cross/bin/m68k--netbsdelf-gcc -msoft-float -m68040 -O3 -pipe 
-msoft-float -ffreestanding -O2 -Werror -Wall -Wno-main 
-Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes 
-Wstrict-prototypes -Wno-sign-compare -fno-zero-initialized-in-bss 
-Dmac68k -I. -I/export/client/bogus/usr/src/sys/arch 
-I/export/client/bogus/usr/src/sys -nostdinc -DHZ=60 -DM68040 -DGRF_COMPAT 
-DMAXUSERS=10 -D_KERNEL -D_KERNEL_OPT -c 
/export/client/bogus/usr/src/sys/arch/mac68k/mac68k/machdep.c
/export/client/bogus/usr/src/sys/arch/mac68k/mac68k/machdep.c: In function 
`mac68k_set_io_offsets':
/export/client/bogus/usr/src/sys/arch/mac68k/mac68k/machdep.c:2305: error: 
`sccA' undeclared (first use in this function)
/export/client/bogus/usr/src/sys/arch/mac68k/mac68k/machdep.c:2305: error: 
(Each undeclared identifier is reported only once
/export/client/bogus/usr/src/sys/arch/mac68k/mac68k/machdep.c:2305: error: 
for each function it appears in.)

*** Failed target:  machdep.o
*** Failed command: echo '# ' "compile BRICK-SBC4/machdep.o"; echo 
/usr/cross/bin/m68k--netbsdelf-gcc -msoft-float -m68040 -O3 -pipe 
-msoft-float -ffreestanding -O2 -Werror -Wall -Wno-main 
-Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes 
-Wstrict-prototypes -Wno-sign-compare -fno-zero-initialized-in-bss 
-Dmac68k -I. -I/export/client/bogus/usr/src/sys/arch 
-I/export/client/bogus/usr/src/sys -nostdinc -DHZ="60" -DM68040 
-DGRF_COMPAT -DMAXUSERS=10 -D_KERNEL -D_KERNEL_OPT -c 
/export/client/bogus/usr/src/sys/arch/mac68k/mac68k/machdep.c; 
/usr/cross/bin/m68k--netbsdelf-gcc -msoft-float -m68040 -O3 -pipe 
-msoft-float -ffreestanding -O2 -Werror -Wall -Wno-main 
-Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes 
-Wstrict-prototypes -Wno-sign-compare -fno-zero-initialized-in-bss 
-Dmac68k -I. -I/export/client/bogus/usr/src/sys/arch 
-I/export/client/bogus/usr/src/sys -nostdinc -DHZ="60" -DM68040 
-DGRF_COMPAT -DMAXUSERS=10 -D_KERNEL -D_KERNEL_OPT -c 
/export/client/bogus/usr/src/sys/arch/mac68k/mac68k/machdep.c
*** Error code 1

Stop.
nbmake: stopped in 
/export/client/bogus/usr/src/sys/arch/mac68k/compile/obj/BRICK-SBC4

ERROR: Failed to make all in 
/export/client/bogus/usr/src/sys/arch/mac68k/compile/obj/BRICK-SBC4
*** BUILD ABORTED ***



Can anyone else confirm this bug?

--
Joe Laffey                |        Visual Effects for Film and Video
LAFFEY Computer Imaging   |        ---------------------------------
St. Louis, MO             |        Show Reel at http://LAFFEY.tv/?s
USA                       |        ---------------------------------
--------------------------------------------------------------------------
Mail here will be rejected --> "Real Trap" <r_trap@laffeycomputer.com>