Subject: port-next68k/6726: COMPAT_M68K4K is broken on next68k
To: None <>
From: None <deberg@MIT.EDU>
List: netbsd-bugs
Date: 01/04/1999 04:01:32
>Number:         6726
>Category:       port-next68k
>Synopsis:       build error when building next68k kernel with COMPAT_M68K4K
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    port-next68k-maintainer (NetBSD/next68k Portmaster)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan  4 01:05:00 1999
>Originator:     matt debergalis
matt debergalis <> KB1CTH
finger for PGP key
>Release:        -current 19990103
NetBSD 1.3I NetBSD 1.3I (GENERIC) #19: Sat Jan  2 01:25:25 EST 1999 next68k

when building a next68k kernel configured with COMPAT_M68K4K, the build
fails.  apparently, __m68k__ isn't defined.

cc -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-format -msoft-float -I. -I../../../../arch -I../../../.. -nostdinc -DLKM -DDEBUG -DDIAGNOSTIC -DSCSIDEBUG -DSWAPDEBUG -DCOMPAT_44 -DCOMPAT_M68K4K -DM68040 -DM68030 -DFPSP -DZS_CONSOLE_ABORT -DMAXUSERS=16 -D_KERNEL  -undef -Dmc68020 -Dnext68k -D__NetBSD__  -c ../../../../compat/m68k4k/m68k4k_exec.c
../../../../compat/m68k4k/m68k4k_exec.c:44: #error YOU GOTTA BE KIDDING!
*** Error code 1

configure a kernel and try to build it.
no idea, but it's not a cross-compile problem, as this happens natively.