valderman / haste-compiler

A GHC-based Haskell to JavaScript compiler
http://haste-lang.org
BSD 3-Clause "New" or "Revised" License
1.45k stars 109 forks source link

haste-boot failure in windows, 64 bit, Haskell platform 2014.2.0.0 #228

Closed agocorona closed 9 years ago

agocorona commented 10 years ago

Configuring base-4.6.0.1... Warning: Instead of 'ghc-options: -XCPP' use 'extensions: CPP' Building base-4.6.0.1... Preprocessing library base-4.6.0.1... In file included from C:\Users\magocoal\AppData\Roaming\haste\include/Rts.h:216: 0, from Stack.hsc:45: C:\Users\magocoal\AppData\Roaming\haste\include/rts/storage/Block.h: In function 'Bdescr': C:\Users\magocoal\AppData\Roaming\haste\include/rts/storage/Block.h:137:8: warni ng: cast from pointer to integer of different size [-Wpointer-to-int-cast] C:\Users\magocoal\AppData\Roaming\haste\include/rts/storage/Block.h:138:9: warni ng: cast from pointer to integer of different size [-Wpointer-to-int-cast] C:\Users\magocoal\AppData\Roaming\haste\include/rts/storage/Block.h:136:10: warn ing: cast to pointer from integer of different size [-Wint-to-pointer-cast] C:\Users\magocoal\AppData\Roaming\haste\include/rts/storage/Block.h: In function 'round_to_mblocks': C:\Users\magocoal\AppData\Roaming\haste\include/rts/storage/Block.h:272:17: warn ing: cast from pointer to integer of different size [-Wpointer-to-int-cast] C:\Users\magocoal\AppData\Roaming\haste\include/rts/storage/Block.h:276:18: warn ing: cast from pointer to integer of different size [-Wpointer-to-int-cast] C:\Users\magocoal\AppData\Roaming\haste\include/rts/storage/Block.h:284:18: warn ing: cast from pointer to integer of different size [-Wpointer-to-int-cast] C:\Users\magocoal\AppData\Roaming\haste\include/rts/storage/Block.h: In function 'round_up_to_mblocks': C:\Users\magocoal\AppData\Roaming\haste\include/rts/storage/Block.h:292:14: warn ing: cast from pointer to integer of different size [-Wpointer-to-int-cast] C:\Users\magocoal\AppData\Roaming\haste\include/rts/storage/Block.h:294:14: warn ing: cast from pointer to integer of different size [-Wpointer-to-int-cast] In file included from C:\Users\magocoal\AppData\Roaming\haste\include/Rts.h:217: 0, from Stack.hsc:45: C:\Users\magocoal\AppData\Roaming\haste\include/rts/storage/ClosureMacros.h: In function 'GET_CLOSURE_TAG': C:\Users\magocoal\AppData\Roaming\haste\include/rts/storage/ClosureMacros.h:182: 12: warning: cast from pointer to integer of different size [-Wpointer-to-int-ca st] C:\Users\magocoal\AppData\Roaming\haste\include/rts/storage/ClosureMacros.h: In function 'UNTAG_CLOSURE': C:\Users\magocoal\AppData\Roaming\haste\include/rts/storage/ClosureMacros.h:188: 26: warning: cast from pointer to integer of different size [-Wpointer-to-int-ca st] C:\Users\magocoal\AppData\Roaming\haste\include/rts/storage/ClosureMacros.h:188: 12: warning: cast to pointer from integer of different size [-Wint-to-pointer-ca st] C:\Users\magocoal\AppData\Roaming\haste\include/rts/storage/ClosureMacros.h: In function 'TAG_CLOSURE': C:\Users\magocoal\AppData\Roaming\haste\include/rts/storage/ClosureMacros.h:194: 26: warning: cast from pointer to integer of different size [-Wpointer-to-int-ca st] C:\Users\magocoal\AppData\Roaming\haste\include/rts/storage/ClosureMacros.h:194: 12: warning: cast to pointer from integer of different size [-Wint-to-pointer-ca st] C:\Users\magocoal\AppData\Roaming\haste\include/rts/storage/ClosureMacros.h: In function 'LOOKS_LIKE_INFO_PTR_NOT_NULL': C:\Users\magocoal\AppData\Roaming\haste\include/rts/storage/ClosureMacros.h:224: 26: warning: cast to pointer from integer of different size [-Wint-to-pointer-ca st] C:\Users\magocoal\AppData\Roaming\haste\include/rts/storage/ClosureMacros.h: In function 'LOOKS_LIKE_CLOSURE_PTR': C:\Users\magocoal\AppData\Roaming\haste\include/rts/storage/ClosureMacros.h:235: 32: warning: cast from pointer to integer of different size [-Wpointer-to-int-ca st] C:\Users\magocoal\AppData\Roaming\haste\include/rts/storage/ClosureMacros.h: In function 'stack_frame_sizeW': C:\Users\magocoal\AppData\Roaming\haste\include/rts/storage/ClosureMacros.h:402: 13: warning: cast from pointer to integer of different size [-Wpointer-to-int-ca st] C:\Users\magocoal\AppData\Roaming\haste\include/rts/storage/ClosureMacros.h:402: 13: warning: cast to pointer from integer of different size [-Wint-to-pointer-ca st] C:\Users\magocoal\AppData\Roaming\haste\include/rts/storage/ClosureMacros.h:405: 13: warning: cast to pointer from integer of different size [-Wint-to-pointer-ca st] In file included from C:\Users\magocoal\AppData\Roaming\haste\include/Rts.h:234: 0, from Stack.hsc:45: C:\Users\magocoal\AppData\Roaming\haste\include/rts/Threads.h: At top level: C:\Users\magocoal\AppData\Roaming\haste\include/rts/Threads.h:51:1: error: unkno wn type name 'pid_t' In file included from C:\Users\magocoal\AppData\Roaming\haste\include/Rts.h:237: 0, from Stack.hsc:45: C:\Users\magocoal\AppData\Roaming\haste\include/rts/Stable.h: In function 'deRef StablePtr': C:\Users\magocoal\AppData\Roaming\haste\include/rts/Stable.h:37:29: warning: cas t from pointer to integer of different size [-Wpointer-to-int-cast] compiling dist\build\GHC\Stack_hsc_make.c failed (exit code 1) command was: C:\Program Files\Haskell Platform\2014.2.0.0\mingw\bin\gcc.exe -c d ist\build\GHC\Stack_hsc_make.c -o dist\build\GHC\Stack_hsc_make.o -D__GLASGOW_HA SKELL__=708 -Dmingw32_BUILD_OS=1 -Dx86_64_BUILD_ARCH=1 -Dmingw32_HOST_OS=1 -Dx86 _64_HOST_ARCH=1 -Iinclude -Idist\build\autogen -include dist\build\autogen\cabal _macros.h -IC:\Users\magocoal\AppData\Roaming\haste\include -IC:\Program Files\H askell Platform\2014.2.0.0/lib/include/ Command 'C:\Users\magocoal\AppData\Roaming\cabal\bin\haste-inst' failed with err or code 1

valderman commented 10 years ago

Which version of Haste is this? I recall fixing something very much like it fairly recently and it builds with 2014.2 on Win64 for me, so with a little luck it might already be fixed.

agocorona commented 10 years ago

Is the latest on hackage: 0.4.2

2014-09-09 21:19 GMT+02:00 Anton Ekblad notifications@github.com:

Which version of Haste is this? I recall fixing something very much like it fairly recently and it builds with 2014.2 on Win64 for me, so with a little luck it might already be fixed.

— Reply to this email directly or view it on GitHub https://github.com/valderman/haste-compiler/issues/228#issuecomment-55019291 .

Alberto.

valderman commented 10 years ago

Oh dear, it seems like there's another Windows bug then. :(

In the meantime, maybe the prebuilt Windows package on http://haste-lang.org/#downloads will serve as a workaround?

agocorona commented 10 years ago

Seems to be. I have a non standard configurartion however, with two compiler versions running. It would be helpful if someone can report the same error

2014-09-10 14:58 GMT+02:00 Anton Ekblad notifications@github.com:

Oh dear, it seems like there's another Windows bug then. :(

In the meantime, maybe the prebuilt Windows package on http://haste-lang.org/#downloads will serve as a workaround?

— Reply to this email directly or view it on GitHub https://github.com/valderman/haste-compiler/issues/228#issuecomment-55110791 .

Alberto.

Rewbert commented 9 years ago

I just experienced the same error. Command 'C:\Users\Robert\AppData\Roaming\cabal\bin\haste-inst' failed with error code 1 Trying to use this prebuilt package but since i'm a total noob i've no idea how to. x3