Subject: Re: test kernel for cobalt
To: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
From: Markus W Kilbinger <mk@kilbi.de>
List: port-cobalt
Date: 05/31/2006 20:08:26
>>>>> "Izumi" == Izumi Tsutsui <tsutsui@ceres.dti.ne.jp> writes:

    Izumi> FYI, these have been committed to -current (with some
    Izumi> modifications).

Great! Is it correct that there is no separate cobalt/interrupt.c file
as in your previous patch?

BTW: I'm trying to compile a -current kernel with gcc4 which fails
with:

cat ../../../../arch/mips/mips/genassym.cf  |  /usr/toolchain-mipsel/bin/nbgenassym -- /usr/toolchain-mipsel/bin/mipsel--netbsd-gcc  -G 0 -mno-abicalls -msoft-float -ffreestanding   -pipe -O2 -mips2 -mtune=vr5000 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-sign-compare -Wno-pointer-sign -Wno-attributes  -fno-zero-initialized-in-bss -fno-strict-aliasing    -Dcobalt -I.  -I../../../../../common/include -I../../../../arch  -I../../../.. -nostdinc -DMIPS3 -DMSGMNB="16384" -DMSGSSZ="64" -DMSGTQL="512" -DLKM -DDIAGNOSTIC -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -I../../../../lib/libkern/../../../common/lib/libc/quad -I../../../../lib/libkern/../../../common/lib/libc/string -I../../../../lib/libkern/../../../common/lib/libc/arch/mips/string  -I../../../../dist/pf   > assym.h.tmp &&  mv -f assym.h.tmp assym.h
cc1: warnings being treated as errors
In file included from ./machine/lock.h:3,
                 from ../../../../sys/lock.h:87,
                 from ../../../../sys/ucred.h:37,
                 from ../../../../sys/param.h:127,
                 from /tmp/genassym.1739/assym.c:2:
./mips/lock.h: In function '__cpu_simple_lock':
./mips/lock.h:100: warning: matching constraint does not allow a register
./mips/lock.h:75: warning: matching constraint does not allow a register
./mips/lock.h: In function '__cpu_simple_lock_try':
./mips/lock.h:129: warning: matching constraint does not allow a register
./mips/lock.h:108: warning: matching constraint does not allow a register

*** Failed target:  assym.h

Any way to resolve that?

Markus.