-
Notifications
You must be signed in to change notification settings - Fork 36
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
Installing on Windows #25
Comments
I have both MinGW and MSYS installed as well. |
More details:
|
Ah, looks like this is a quoting problem, since the path to your ghc install has spaces in it. I'm really not a windows user though and don't have a box that I could test on. I believe @mikusp has a working setup though and might be able to help. Pull requests welcome of course (: |
I’d like to help, but I can’t find the place where such quotes should be put. Maybe in the |
I tried to fix that and haven’t found any ways to make it through :( |
I think it would be in the configure file. Maybe put all of |
that is change to |
Can you provide some more information. When exactly does this error occur? |
Just after it checks for the compiler to be there. It still outputs that the compiler doesn’t work, then fails. |
I found a way to make it compile:
|
|
Yeah, it does work, but I have issue with libs. The single way I’ve found, yet, is to replace the Haskell Platform’s mingw folder by my own, which is filthy and causes crashes :( |
Well, that doesn't sound good = |
God, is everything broken in that package?!
|
Well, let's not get snarky now, shall we? From my perspective, windows is the thing that is broken. We need to tell |
Yeah, I changed that in the
And error:
|
er, which file and on what? |
I can’t locate the failed files :/ |
I finally have more information! http://lpaste.net/119875 cc @tmcdonell |
Ah, so with #26 does it compile for you now? (finally (sorry...)) |
Not really, maybe it’s because |
Maintainer of C2HS here. I've been joining in the "fun". A few things:
I think at this point I have to give up. I don't know of anyone who's ever tried to use C2HS with the Microsoft C compiler, and I think that it would be very painful to go down that road. Unfortunately, I think that means that it's not going to be possible to build the I'd be very happy to be proven wrong, of course! |
Well, I think @mainland, @srutownik or @MikeStout managed to get the package installed on Windows. Do any of you have any suggestions? Did you have any trouble using |
(Apologies that I am next to useless when it comes to windows) |
I’m not on Windows anymore, back on Archlinux. Though, such an error is a pity :) |
Hello. I'm here with @srutownik, @zgredzik, and @wdanilo still working on this issue, as it is crucial for our case. After few days of research I realized that this task overwhelms me, and I probably won't accomplish it myself. From now on, we would like to provide you any help needed (such as fully configured windows amazon instances, etc.) just to get this task done as soon as possible. That's our #1 priority, and your projects will also greatly benefit this way, so please do not abandon us. #mayday |
@pioole Trevor can almost certainly comment further on this, but the only successful attempt to get the cuda package working on Windows that I know of was by Geoffrey Mainland, and he last touched it two years ago. You can look on the wip/win32 branch of https://github.com/mainland/cuda to see what he did. |
@phaazon It is not so desperate - the problem is that we need a huge amount of time to get into the code of As @pioole told, we've got fully configured Windows instance on Amazon and we can provide an ssh access to it - would it be suitable for you? Thank you for your help offer - that would be very helpfull for us! :) Of course I would love to collaborate further with both you, @ian-ross and @tmcdonell - we can discuss it and work together on such instances - we can even provide multiple ones for this problem, what do you think about it? :) |
Well, we've managed to get it running on Windows some time ago (during the last 8-9 months). The thing is we've had other issues with the Windows release for quite a long period of time. While working on those issues we stumbled upon the problems mentioned in this topic. |
Hi As proof it was once possible, see attached png (hope it doesn't Unfortunately I'm not working on Windows, ghc, accelerate, cuda these days. Did you try renaming the dlls? As described here (under "Setup dlls"): https://github.com/AccelerateHS/accelerate/wiki/Installing-Accelerate-CUDA-on-Windows Since I wrote this, many things have moved on with many packages, so If I were to begin on this again, I would probably start out with a https://github.com/fpco/minghc and install packages using cabal under a cmd prompt... Good luck! On 29/04/2015 11:50, Piotr Oleksy wrote:
|
Ugh… difficult. Basically a number of issues bulked into one. @tmcdonell At the moment I see following problems:
Ad 1 The questions: Ad 2
The question: why is this needed? [not that important] Ad 3
The questions: Ad 4 |
@mwu-tow To respond to the query about C2HS that you aimed at me: I didn't really make any attempt at all to get C2HS working with MS Visual C++, mostly because by that point I'd already gone quite a ways down the rabbit hole trying to figure out what was going on and just ran out of steam... Hence the rather vague and not very helpful comment about "compiler-specific types". My personal opinion is that getting C2HS to work with MS VC++ would be a lot of work, primarily because C2HS (or rather the I'm not sure I understand what you mean with your third option ("write the input for the C2HS tool by hand"), which leaves the idea of writing a preprocessor to massage the MS VC++ headers before you allow C2HS to ingest them. That would be very feasible if you can identify exactly what features in the MS headers are causing trouble and can come up with a simple (regular expression?) way of fixing them. I fear that that might still be quite difficult though (especially the first part). As you say: "Ugh… difficult." I don't really have any good advice to offer, I fear, which is why I more or less dropped out of the conversation... |
If I had a Windows key I’d install it in a VM and try to work on that, but currently I only have a linux installed there… |
@ian-ross Fixing the By writing the C2HS input by hand I meant replacing the preprocessed file by some fixed, predetermined content (manually written/copied/generated relevant parts of CUDA headers) that will make C2HS to generate identical (equivalent) output as proper header. I did some experiments and I believe I have a few answers: 1a) 1b) The 1c) From what I see getting rid of autoconf altogether should be possible. Still, not the first priority now, if I can get around this now. (I managed to.) 3a) It seems that 3c) As ian-ross pointed out, replacing C2HS does not seem feasible. Basically the whole I will write again, as I find out more. |
@phaazon Still, I'm not sure if it is feasible to work on |
On Linux, lack of NVIDIA GPU is not an issue. I have nvidia-utils and cuda packages installed from my distro repositories and I can install accelerate-cuda just fine. |
Going further — the |
@mwu-tow Right. This is basically what I meant by "compiler-specific types". The |
I'd suggest seeing if the default pre-processor on windows can be used, rather than setting it to Moving away from using C2HS and writing everything manually isn't something I want to think about. |
@ian-ross Oh, let the C++ guy have his moment of glory. I know quite much of Haskell (it's not difficult as people tend to say) and I am quickly learning more. :-) I already did some hackery for the @tmcdonell @phaazon |
It was for making Windows version compile, yes, but it’s also set for other OS as well. I don’t really remember why we had to set that, I’m looking for logs right now. |
@phaazon I tried to check what happens if not I tried this on Linux as well (to get the Windows-specific stuff out of the picture for moment), the output is:
I am somewhat confused as what these errors mean. I don't know who is searching the modules and what is the relation to switching the preprocessor for C2HS. See the https://gist.github.com/mwu-tow/e66e9e0419a1f5e68b6a for the complete log with -v3. |
Okay. I managed to install Having a |
Good news. I managed to install Summary:
I used all the mentioned packages from their repos heads. In the following days I am going to go over all this stuff, clean it up, upload, make it work on other Windows machines and come up with pull requests. |
Great! Good job! |
@mwu-tow you are the man! Great job, really! :) |
@mwu-tow Nice work! |
Awesome! Great job! (: |
It wouldn't be possible without your support and earlier efforts — thank you! Now I'm working on a new I'm still trying to figure out what parts of If you are impatient, you can check changes in my fork https://github.com/mwu-tow/cuda/tree/windows — the branch Windows should properly install both on Windows and Linux. This is is still not tested enough and work in progress, so some rough edges should be expected. However, I managed to install Notes:
|
My old wip/win32 cuda branch (mainland/cuda@a3c4410e) had most of the machinery needed to get cuda installed under Windows. The one catch was that |
Yes, I saw that and your work was really a great help. Actually most of what I needed to do was rewriting |
The support for generating
It works as expected. Next I'm going to check the OS X — I saw some entries in |
This is awesome, thanks! Please be sure to comment the changes, especially all of the tricky parts related to windows, so that I don't accidentally change something in the future and break it (: |
I think this can be safely closed now. Thanks again for all involved! (: |
The install fails with the following error:
The text was updated successfully, but these errors were encountered: