Subject: port-next68k/6726: COMPAT_M68K4K is broken on next68k
To: None <gnats-bugs@gnats.netbsd.org>
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
>Last-Modified:
>Originator:     matt debergalis
>Organization:
matt debergalis <deberg@mit.edu> KB1CTH
finger deberg@ai.mit.edu for PGP key
>Release:        -current 19990103
>Environment:
NetBSD pizzabox.deberg.org 1.3I NetBSD 1.3I (GENERIC) #19: Sat Jan  2 01:25:25 EST 1999     deberg@sunrise.ne.mediaone.net:/src/netbsd/src/sys/arch/next68k/compile/GENERIC next68k

>Description:
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

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

>Audit-Trail:
>Unformatted: