make all-recursive make[1]: Entering directory '/home/diwou/gnumach/build' make[2]: Entering directory '/home/diwou/gnumach/build' depbase=`echo i386/intel/pmap.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ gcc -DHAVE_CONFIG_H -I. -I.. -ffreestanding -nostdinc -imacros config.h -Ii386 -I. -I../i386 -I../i386/include/mach/sa -I../include -fno-builtin-log --no-pie --no-pic -Wall -fgnu89-inline -fno-strict-aliasing -fno-stack-protector -mno-3dnow -mno-mmx -mno-sse -mno-sse2 -g -O2 -MT i386/intel/pmap.o -MD -MP -MF $depbase.Tpo -c -o i386/intel/pmap.o ../i386/intel/pmap.c &&\ mv -f $depbase.Tpo $depbase.Po In file included from ../kern/thread.h:50:0, from ../i386/intel/pmap.c:65: ../kern/sched_prim.h:188:1: warning: parameter names (without types) in function declaration extern void cause_ast_check(processor); /*new*/ ^~~~~~ In file included from ../i386/intel/pmap.c:65:0: ../kern/thread.h:348:1: warning: parameter names (without types) in function declaration extern void cause_ast_check(processor); /*new*/ ^~~~~~ ../i386/intel/pmap.c: In function ‘pmap_map_bd’: ../i386/intel/pmap.c:238:8: warning: implicit declaration of function ‘splvm’ [-Wimplicit-function-declaration] spl = splvm(); \ ^ ../i386/intel/pmap.c:253:2: note: in expansion of macro ‘SPLVM’ SPLVM(spl); \ ^~~~~ ../i386/intel/pmap.c:546:2: note: in expansion of macro ‘PMAP_READ_LOCK’ PMAP_READ_LOCK(pmap, spl); ^~~~~~~~~~~~~~ In file included from ../kern/lock.h:41:0, from ../kern/queue.h:38, from ../kern/mach_clock.h:31, from ../kern/thread.h:46, from ../i386/intel/pmap.c:65: ../i386/intel/pmap.c:546:17: error: ‘pmap’ undeclared (first use in this function) PMAP_READ_LOCK(pmap, spl); ^ ./machine/lock.h:50:31: note: in definition of macro ‘_simple_lock_xchg_’ : "0" (new_val), "m" (*(lock)) : "memory" \ ^~~~ ../i386/intel/pmap.c:255:2: note: in expansion of macro ‘simple_lock’ simple_lock(&(pmap)->lock); \ ^~~~~~~~~~~ ../i386/intel/pmap.c:546:2: note: in expansion of macro ‘PMAP_READ_LOCK’ PMAP_READ_LOCK(pmap, spl); ^~~~~~~~~~~~~~ ../i386/intel/pmap.c:546:17: note: each undeclared identifier is reported only once for each function it appears in PMAP_READ_LOCK(pmap, spl); ^ ./machine/lock.h:50:31: note: in definition of macro ‘_simple_lock_xchg_’ : "0" (new_val), "m" (*(lock)) : "memory" \ ^~~~ ../i386/intel/pmap.c:255:2: note: in expansion of macro ‘simple_lock’ simple_lock(&(pmap)->lock); \ ^~~~~~~~~~~ ../i386/intel/pmap.c:546:2: note: in expansion of macro ‘PMAP_READ_LOCK’ PMAP_READ_LOCK(pmap, spl); ^~~~~~~~~~~~~~ ../i386/intel/pmap.c:244:2: warning: implicit declaration of function ‘splx’ [-Wimplicit-function-declaration] splx(spl); \ ^ ../i386/intel/pmap.c:266:2: note: in expansion of macro ‘SPLX’ SPLX(spl); \ ^~~~ ../i386/intel/pmap.c:575:2: note: in expansion of macro ‘PMAP_READ_UNLOCK’ PMAP_READ_UNLOCK(pmap, spl); ^~~~~~~~~~~~~~~~ In file included from ../i386/intel/pmap.c:63:0: ../i386/intel/pmap.c: In function ‘pmap_enter’: ../i386/intel/pmap.c:1866:13: warning: format ‘%p’ expects argument of type ‘void *’, but argument 5 has type ‘vm_offset_t {aka long unsigned int}’ [-Wformat=] panic("pmap_enter(%p, %p) falls in physical memory area!\n", v, pa); ^ ../kern/debug.h:67:43: note: in definition of macro ‘panic’ Panic (__FILE__, __LINE__, __FUNCTION__, s, ##__VA_ARGS__) ^ ../i386/intel/pmap.c:1866:13: warning: format ‘%p’ expects argument of type ‘void *’, but argument 6 has type ‘phys_addr_t {aka long unsigned int}’ [-Wformat=] panic("pmap_enter(%p, %p) falls in physical memory area!\n", v, pa); ^ ../kern/debug.h:67:43: note: in definition of macro ‘panic’ Panic (__FILE__, __LINE__, __FUNCTION__, s, ##__VA_ARGS__) ^ ../i386/intel/pmap.c:1923:9: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 5 has type ‘vm_offset_t {aka long unsigned int}’ [-Wformat=] panic("pmap_expand kernel pmap to %#x", v); ^ ../kern/debug.h:67:43: note: in definition of macro ‘panic’ Panic (__FILE__, __LINE__, __FUNCTION__, s, ##__VA_ARGS__) ^ ../i386/intel/pmap.c: In function ‘signal_cpus’: ../i386/intel/pmap.c:2778:22: warning: implicit declaration of function ‘ffs’ [-Wimplicit-function-declaration] while ((which_cpu = ffs(use_list)) != 0) { ^~~ ../i386/intel/pmap.c:2804:3: warning: implicit declaration of function ‘interrupt_processor’; did you mean ‘current_processor’? [-Wimplicit-function-declaration] interrupt_processor(which_cpu); ^~~~~~~~~~~~~~~~~~~ current_processor In file included from ../kern/lock.h:41:0, from ../kern/queue.h:38, from ../kern/mach_clock.h:31, from ../kern/thread.h:46, from ../i386/intel/pmap.c:65: ../i386/intel/pmap.c: In function ‘pmap_map_bd’: ./machine/lock.h:48:2: error: memory input 2 is not directly addressable asm volatile("xchgl %0, %2" \ ^ ./machine/lock.h:60:8: note: in expansion of macro ‘_simple_lock_xchg_’ while(_simple_lock_xchg_(l, 1)) \ ^~~~~~~~~~~~~~~~~~ ../i386/intel/pmap.c:255:2: note: in expansion of macro ‘simple_lock’ simple_lock(&(pmap)->lock); \ ^~~~~~~~~~~ ../i386/intel/pmap.c:546:2: note: in expansion of macro ‘PMAP_READ_LOCK’ PMAP_READ_LOCK(pmap, spl); ^~~~~~~~~~~~~~ ./machine/lock.h:48:2: error: memory input 2 is not directly addressable asm volatile("xchgl %0, %2" \ ^ ./machine/lock.h:67:3: note: in expansion of macro ‘_simple_lock_xchg_’ (_simple_lock_xchg_(l, 0)) ^~~~~~~~~~~~~~~~~~ ../i386/intel/pmap.c:264:2: note: in expansion of macro ‘simple_unlock’ simple_unlock(&(pmap)->lock); \ ^~~~~~~~~~~~~ ../i386/intel/pmap.c:575:2: note: in expansion of macro ‘PMAP_READ_UNLOCK’ PMAP_READ_UNLOCK(pmap, spl); ^~~~~~~~~~~~~~~~ Makefile:4535: recipe for target 'i386/intel/pmap.o' failed make[2]: *** [i386/intel/pmap.o] Error 1 make[2]: Leaving directory '/home/diwou/gnumach/build' Makefile:7083: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/home/diwou/gnumach/build' Makefile:2946: recipe for target 'all' failed make: *** [all] Error 2