-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Service failing to start #4
Comments
It's been awhile since I tried running those examples. I'll get back to you Are you running the 32-bit version of GHC? On Fri, Nov 7, 2014 at 12:33 PM, Elliot Cameron notifications@github.com
-- Michael Steele |
I'm not precisely sure if GHC is 64-bit or not. But I would guess it is since I downloaded it from the "ghc-7.8.3-x86_64-unknown-mingw32.tar.bz2" link. Thanks for the lightning fast reply! |
I just re-read your question. I would guess that GHC is 64-bit on my machine. |
The 64-bit version of GHC will not work because I make assumptions about pointer sizes in the marshaling code. I should have noted that in the cabal file's description. Sorry for any frustration you've had. |
Ah ok. I'll try it with the 32-bit version. How hard would that be to fix? |
Supporting both 32-bit and 64-bit versions of GHC would require that I either sprinkle the code with CPP directives or use a marshalling helper such as c2hs or hsc2hs. My preference would be to use c2hs, but as far as I know the current official release does not support marshaling function pointers in Windows. The c2hs developers have accepted a patch for this, but I don't think that has made it into an official release. Win32-services needs to pass function pointers around behind the scenes, so using c2hs is not an option at this time. At the time I first published Win32-services there was no 64-bit version of GHC for Windows. This is probably why I don't mention lack of 64-bit support in the description. |
That makes sense. Unfortunately, it looks like it can't find Advapi32 on my 64-bit machine?
|
Your |
If that doesn't work, then I really should double check whether the examples still build on my computer. |
That didn't seem to work. :( Thanks for your help! |
I get the same error as you when trying to use the Does that help get past your error? |
Ok. That makes sense. That would likely do the trick. P.S. Does Cabal have a bug then? |
This issue has been quiet, so here's a quick update. GHC 7.10.1 and c2hs 0.25.1 were both released last week, so I may have time to release a new version in the near future with 32-bit and 64-bit compatibility. |
Excellent! I would gladly like to start writing/porting our services in Haskell. |
Seems like I have the same trouble. @mikesteele81 , do you have plans to fix this issue at the nearest time? |
32-bit GHC is sufficient for what I use Win32-services for. Because of this, making the necessary changes to support both 32-bit and 64-bit GHC has been given lower priority than other tasks. I would like to see 64-bit GHC supported, and would be fine with just about any solution at this point. The issue will have to remain open for now. |
I'm trying to run both the simple and official examples, but getting the following error:
I'm using GHC 7.8.3 on Windows 8.1 x64 with the following cabal config:
Any ideas?
The text was updated successfully, but these errors were encountered: