Subject: kern/33014: Jornada720 kernel doesn't compile
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <degroote@enseirb.fr>
List: netbsd-bugs
Date: 03/06/2006 19:40:01
>Number:         33014
>Category:       kern
>Synopsis:       Jornada720 kernel doesn't compile
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 06 19:40:00 +0000 2006
>Originator:     arnaud degroote
>Release:        current
>Organization:
>Environment:
NetBSD Hermes.at.home 3.99.16 NetBSD 3.99.16 (HERMES) #1: Sun Mar  5 22:23:51 CET 2006  zul@Hermes.at.home:/usr/build_tmp/objdir/sys/arch/i386/compile/HERMES i386
>Description:
When I crosscompile the JORNADA720 current kernel, it fails with the following error

/usr/src/sys/arch/arm/sa11x0/sa11x0_com.c:188:1: "SET" redefinedIn file included from /usr/src/sys/sys/param.h:89,                 from /usr/src/sys/arch/arm/sa11x0/sa11x0_com.c:88:/usr/src/sys/sys/types.h:317:1: this is the location of the previous definition/usr/src/sys/arch/arm/sa11x0/sa11x0_com.c:189:1: "CLR" redefined/usr/src/sys/sys/types.h:319:1: this is the location of the previous definitionnbmkdep: compile failed.
>How-To-Repeat:
/usr/src/build.sh -m hpcarm kernel=JORNADA720
>Fix:
Index:sa11x0_com.c
===================================================================
RCS file: /pub/NetBSD-CVS/src/sys/arch/arm/sa11x0/sa11x0_com.c,v
retrieving revision 1.28
diff -u -r1.28 sa11x0_com.c
--- sa11x0_com.c        4 Mar 2006 17:22:06 -0000       1.28
+++ sa11x0_com.c        6 Mar 2006 19:32:30 -0000
@@ -185,9 +185,6 @@ 
#define COM_LOCK(sc) 
#define COM_UNLOCK(sc)

-#define SET(t, f)      (t) |= (f)
-#define CLR(t, f)      (t) &= ~(f)
-#define ISSET(t, f)    ((t) & (f)) 

 int            sacomintr(void *);
 int            sacomcngetc(dev_t);