warning: nested extern declaration of 'open' [-Wnested-externs] rts/Linker.c:5692:32: error: error: 'O_RDONLY' undeclared (first use in this function) rts/Linker.c:5692:32: error: note: each undeclared identifier is reported only once for each function it appears in rts/Linker.c:5731:11: error: warning: implicit declaration of function 'getPageSize' [-Wimplicit-function-declaration] rts/Linker.c:5731:11: error: warning: nested extern declaration of 'getPageSize' [-Wnested-externs] rts/Linker.c:5731:45: error: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] rts/Linker.c:5732:15: error: warning: implicit declaration of function 'm32_alloc' [-Wimplicit-function-declaration] rts/Linker.c:5732:15: error: warning: nested extern declaration of 'm32_alloc' [-Wnested-externs] rts/Linker.c:5732:34: error: error: 'allocator' undeclared (first use in this function) `gcc' failed in phase `C Compiler'. (Exit code: 1) rts/ghc.mk:246: recipe for target 'rts/dist/build/Linker.o' failed gmake[1]: *** [rts/dist/build/Linker.o] Error 1 Makefile:121: recipe for target 'all' failed gmake: *** [all] Error 2