Simon Marlow:
Manuel M T Chakravarty wrote:
Trying to validate the HEAD on MacOS 10.5 fails with
../compiler/ghc-inplace -optc-Werror -optc-Wall -optc-W -optc- Wstrict-prototypes -optc-Wmissing-prototypes -optc-Wmissing- declarations -optc-Winline -optc-Waggregate-return -optc-I../ includes -optc-I. -optc-Iparallel -optc-Ism -optc-DCOMPILING_RTS - optc-fomit-frame-pointer -optc-I../gmp/gmpbuild -optc-fno-strict- aliasing -Werror -H64m -Onot -fasm -optc-O2 -I../includes -I. - Iparallel -Ism -DCOMPILING_RTS -package-name rts -static -I../gmp/ gmpbuild -I. -#include HCIncludes.h -dcmm-lint -c sm/ BlockAlloc.c -o sm/BlockAlloc.o
cc1: warnings being treated as errors
posix/OSMem.c: In function 'my_mmap':
posix/OSMem.c:96:0:
    warning: 'err' may be used uninitialized in this function
make[1]: *** [posix/OSMem.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [stage1] Error 1
This is MacOS 10.5 aka Leopard, so maybe it is an OS dependency. Does it work elsewhere or was the file not warning cleaned?

That looks like a warning from some darwin-specific code. In fact, it looks a real bug! Could you try

-    kern_return_t err;
+    kern_return_t err = 0;

and let me know if that makes validate go through for you? (feel free to just push if so).

That does fix it.  I pushed a patch.

Cheers!
Manuel

_______________________________________________
Cvs-ghc mailing list
Cvs-ghc@haskell.org
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to