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
Windows support #106
Comments
Thanks a lot for testing on Windows! As you observed, something not quite right is going on. It looks like it has to do with the c-preprocessing phase which calls upon |
395fd7a fixes the build for Now its failing with:
Another thing is this: you seem to detect the version of
And the
There is no |
|
@alexbiehl Try now? |
@rahulmutt It works better now. But I get the same error again
I am on mingw and
Maybe you should also check for |
Hi, i a trying to build eta in windows too, and i get another error doing "stack exec eta-build -- install" :
I checked that this jar exists |
@jneira Thanks for reporting! Appveyor was giving me that exact same problem so it's nice having a repro from someone else as well. Did you happen to encounter the error that @alexbiehl reported as well? Or was your @alexbiehl You didn't encounter a similar error on your end? |
@rahulmutt no I didn't. But I tried weeks ago. I can try again tomorrow. I will report back here. |
i didnt get the gcc error, but i didnt nothing for it
|
@jneira Can you try extracting |
@rahulmutt it seems it's the first case: when i try to open the jar the zip program raises an error (with java itself the message is clear: "Error: invalid or corrupt jar file") |
@alexbiehl I closed #11 so now there should be no dependency on |
I now get another error:
What is touchy and where should it come from? |
Ah, I found that |
With my
Edit: it's not |
Can you specify what flags you used to invoke |
Surprisingly: Works! There is a window with a circle and a button (nothing happens if I click the button). But when I do
pops up! |
@alexbiehl Hmm very interesting. Btw when you click the button on the JavaFX example it should print You can also try out the 2048 implementation. |
I traced it and it lead me to @puffnfresh The solution you had was portable since it used just Java calls so do you think removing the #ifdef and making an identical implementation of @alexbiehl you can try out the change and let me know if it works for you. |
@alexbiehl I've gone ahead and re-used the implementations for *nix-based systems, can you compile the windows-support branch and let me know if that fixes the problem? |
Hmm. It doesn't it crashes with the same error. :( Also: When I implemented the |
In the mean time, can you use that definition as the implementation of |
jacobstanley/unix-compat#25 is merged and available on Hackage as unix-compat-0.4.3.0 |
@jystic Thanks for the prompt update! |
@rahulmutt PR is on its way |
Hi, i've tried to compile again and i got another error:
ghc-prim-0.4.0.0.log is empty |
In my case zip-bench.exe fails:
|
It's supposed to fail. Can you show a directory listing with file sizes of |
Sure!
|
Types.jar seems to be identical to Tuples.jar of zip-bench, no? |
Following the steps in #184 i've done a |
Meanwhile the zip problem is fixed to get integer lib built i've built the libraries manually, doing each step in
same with |
@jneira Can you go to Also, Mark wanted to check to make sure the test suite for the Thanks! |
Using this translation:
and running i got this trace file: https://gist.github.com/jneira/dd7399b13a4d89be61657580d941c44b |
I've posted the test suite of |
@jneira Can you run the trace again removing |
@rahulmutt i've updated the gist with the trace including eta/runtime (now it has almost 10000 lines long) |
@rahulmutt i am afraid that after update eta to last upstream commit and install it the execution of RunHelloWorld seems to loop forever. |
Respect to zip lib problem: i've update my repo to use zip-0.1.6 and the install continue failing due to corrupted jar |
The zip bug is fixed for zip-0.1.7! Now cleaninstall completes succesfully (tested in windows xp and windows 10) Respect to the execution of HelloWorld.hs (linked as RunHelloWorld.jar by eta) in eta/examples:
|
@rahulmutt hi, i finally get to work Helloworld.hs with cp1215 encoding, adding a iconv first draft implementation in java: https://github.com/jneira/eta/blob/windows-support-iconv/libraries/base/java-utils/HSIConv.java |
i tried to execute this version of Helloworld.hs: main :: IO () -- Note that this line is optional. Written for clarity.
main = do
putStrLn "Hello World!"
putStrLn "Hólà müñdõ!"
putStrLn "世界,你好" but it fails with
even with only the 2 first lines (without chinese chars) |
There seems to be a some bug with unpacking Unicode strings, see #180. Probably a mismatch between the indexing in Eta |
I took a look at your implementation |
@rahulmutt
I've changed the impl: jneira@3c636e3 |
@jneira Since Windows build is working pretty well now minus the patches and the cases missing in the error handling of iconv, I think we can close this. Can you reproduce whatever is left on the iconv error handling in a new issue? |
Hi, i've submitted a new issue with the actual state of HSIconv error handling. |
Closing then. Any further issues that are found regarding Windows should be filed as separate issues. @alexbiehl You can give it a try now. |
I get a similar error. One line in the error output that caught my attention is:
So I ran that command at the prompt and got: Resolving dependencies... Which GMP library makes eta happy? |
@jstr045329 Please file a new issue since this issue has already been closed. |
I am trying to bootstrap
eta
on Windows andstack exec eta-build install
fails withSomehow it thinks a
gcc
is atC:\Users\abiehl\AppData\Roaming\eta/../mingw/bin/gcc.exe
which is of course not right! (a goodgcc
is on path throughstack exec
).Trying to manually build
ghc-prim
withstack exec -- epm build --eta-options=" -v4 -pgmP C:\Users\abiehl\AppData\Local\Programs\stack\x86_64-windows\ghc-7.10.3\mingw\bin\gcc"
Well it does find gcc now but it tries to assemble JArray.hs as is which is of course wrong.
How can I install
eta
and co on Windows?The text was updated successfully, but these errors were encountered: