Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

NetBSD/evbarm build broken for imx233 (patch included)


I get following error when I try to compile NetBSD/evbarm for imx233 (olinuxino):
--- imx23_icoll.o ---
cc1: warnings being treated as errors
/home/tkoskine/work/ci-system/jobs/netbsd-imx233/ws/src/sys/arch/arm/imx/imx23_icoll.c: In function 'imx23_intr_dispatch': /home/tkoskine/work/ci-system/jobs/netbsd-imx233/ws/src/sys/arch/arm/imx/imx23_icoll.c:160:3: error: implicit declaration of function 'cpsie' /home/tkoskine/work/ci-system/jobs/netbsd-imx233/ws/src/sys/arch/arm/imx/imx23_icoll.c:160:9: error: 'I32_bit' undeclared (first use in this function) /home/tkoskine/work/ci-system/jobs/netbsd-imx233/ws/src/sys/arch/arm/imx/imx23_icoll.c:160:9: note: each undeclared identifier is reported only once for each function it appears in /home/tkoskine/work/ci-system/jobs/netbsd-imx233/ws/src/sys/arch/arm/imx/imx23_icoll.c:162:3: error: implicit declaration of function 'cpsid'
*** [imx23_icoll.o] Error code 1

To get around the problem, following patch seems to help:
Index: imx/imx23_icoll.c
RCS file: /cvsroot/src/sys/arch/arm/imx/imx23_icoll.c,v
retrieving revision 1.2
diff -u -r1.2 imx23_icoll.c
--- imx/imx23_icoll.c   16 Dec 2012 19:40:00 -0000      1.2
+++ imx/imx23_icoll.c   24 Feb 2014 21:56:26 -0000
@@ -36,6 +36,8 @@
 #include <sys/errno.h>
 #include <sys/systm.h>

+#include <arm/cpufunc.h>
 #define _INTR_PRIVATE
 #include <arm/pic/picvar.h>


Home | Main Index | Thread Index | Old Index