Subject: problem compiling a kernel with COMPAT_MACH
To: None <tech-toolchain@netbsd.org>
From: Serge Basterot <serge.basterot@wanadoo.fr>
List: tech-toolchain
Date: 11/11/2003 11:40:19
Hi,

I've tried to compile a GENERIC kernel for macppc with these options
enabled : COMPAT_DARWIN, COMPAT_MACH, EXEC_MACHO, DEBUG_DARWIN and
DEBUG_MACH (I use a source tree from 20031101 tar_files).

I got this error :

make: no target to make.
make: "/usr/share/mk/bsd.own.mk" line 136: warning: "cd / && make -V .OBJDIR" returned non-zero status
../../../../compat/mach/mach_port.c: In function `mach_debug_port':
../../../../compat/mach/mach_port.c:853: warning: `l' might be used uninitialized in this function

E. Dreyfus advised me to change this line, so I wrote at the line 853 :
struct lwp *l = NULL;

Compiling again I got this :

make: "/usr/share/mk/bsd.own.mk" line 136: warning: "cd / && make -V .OBJDIR" returned non-zero status
../../../../compat/mach/mach_vm.c: In function `mach_vm_wire':
../../../../compat/mach/mach_vm.c:304: error: Attempt to delete prologue/epilogue insn:
(insn/f 215 214 216 0 0x0 (set (mem:SI (plus:SI (reg/f:SI 1 r1)
                (const_int 84 [0x54])) [0 S4 A32])
        (reg:SI 0 r0)) -1 (nil)
    (expr_list:REG_FRAME_RELATED_EXPR (set (mem:SI (plus:SI (reg/f:SI 1 r1)
                    (const_int 84 [0x54])) [0 S4 A32])
            (reg:SI 65 lr))
        (nil)))
../../../../compat/mach/mach_vm.c:304: internal compiler error: in propagate_one_insn, at flow.c:1642

Do you have an idea about this ?

-- 
Serge Basterot