Could this be something to do with 32 vs 64 bit?  Builds ok for me on (a) 32 
bit windows (b) 64-bit Linux.

Ian, you've been fiddling with this 64 bit stuff haven't you?

Simion

| -----Original Message-----
| From: [email protected] [mailto:[email protected]]
| On Behalf Of Dimitrios Vytiniotis
| Sent: 30 April 2012 09:31
| To: [email protected]
| Subject: build failure due to RTS C errors ...
| 
| 
| Hi all, I just pulled this morning from HEAD and tried to validate in
| Linux (using gcc 4.6.1), and I got a lot of C errors from RTS type
| incompatibilities. Some are:
| 
| rts/Linker.c: In function 'mmapForLinker':
| 
| rts/Linker.c:1641:8:
|      error: format '%lu' expects argument of type 'long unsigned int',
| but argument 2 has type 'unsigned int' [-Werror=format]
| rts/Linker.c: In function 'do_Elf_Rel_relocations':
| 
| rts/Linker.c:4585:19:
|      error: format '%lu' expects argument of type 'long unsigned int',
| but argument 3 has type 'Elf32_Addr' [-Werror=format]
| rts/Linker.c: In function 'do_Elf_Rela_relocations':
| 
| rts/Linker.c:4879:19:
|      error: format '%lu' expects argument of type 'long unsigned int',
| but argument 3 has type 'Elf32_Addr' [-Werror=format]
| cc1: all warnings being treated as errors
| 
| make[1]: *** [rts/dist/build/Linker.o] Error 1
| make[1]: *** Waiting for unfinished jobs....
| make: *** [all] Error 2
| 
| Before that, I got an error at  ghc/hschooks.c (last line, type cast
| warning between lnat and size_t, which I temporarily solved with
| inserting a cast)
| 
| What's going on????
| 
| Thanks!
| d-
| 
| 
| 
| 
| 
| 
| 
| _______________________________________________
| Cvs-ghc mailing list
| [email protected]
| http://www.haskell.org/mailman/listinfo/cvs-ghc



_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to