Subject: port-amd64/32303: -current amd64 kernel compilation failure with options COMPAT_LINUX
To: None <port-amd64-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <njoly@pasteur.fr>
List: netbsd-bugs
Date: 12/14/2005 17:05:00
>Number:         32303
>Category:       port-amd64
>Synopsis:       -current amd64 kernel compilation failure with options COMPAT_LINUX
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-amd64-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 14 17:05:00 +0000 2005
>Originator:     Nicolas Joly
>Release:        NetBSD 3.99.14
>Organization:
Institut Pasteur, Paris.
>Environment:
System: NetBSD lanfeust.sis.pasteur.fr 3.99.14 NetBSD 3.99.14 (LANFEUST) #5: Mon Dec 12 10:45:08 CET 2005 njoly@lanfeust.sis.pasteur.fr:/local/src/NetBSD/obj/amd64/sys/arch/amd64/compile/LANFEUST amd64
Architecture: x86_64
Machine: amd64
>Description:
With recent ktrace-lwp branch merge to head, -current amd64 kernels does not
compile anymore with COMPAT_LINUX. The amd64 part of the code seems to needs
some proc -> lwp tweaking.

#   compile  LANFEUST/exec_conf.o
/local/src/NetBSD/tool/amd64/bin/x86_64--netbsd-gcc -mcmodel=kernel -mno-red-zone -ffreestanding -g -O2 -fno-omit-frame-pointer -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 -fno-zero-initialized-in-bss -Damd64 -Dx86_64 -I. -I/local/src/NetBSD/src/sys/arch -I/local/src/NetBSD/src/sys -nostdinc -DLKM -DDIAGNOSTIC -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -I/local/src/NetBSD/src/sys/dist/ipf -c /local/src/NetBSD/src/sys/kern/exec_conf.c
/local/src/NetBSD/src/sys/kern/exec_conf.c:471: warning: initialization from incompatible pointer type

>How-To-Repeat:
Try to compile a -current amd64 kernel with options COMPAT_LINUX enabled.
>Fix: