Skip to content
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

Cannot install gtk2hs-buildtools with stack #1050

Closed
mwu-tow opened this issue Sep 25, 2015 · 3 comments
Closed

Cannot install gtk2hs-buildtools with stack #1050

mwu-tow opened this issue Sep 25, 2015 · 3 comments

Comments

@mwu-tow
Copy link
Contributor

mwu-tow commented Sep 25, 2015

When I give the cabal install gtk2hs-buildtools correctly installs the package. However, the same fails with stack:
stack install gtk2hs-buildtools fails with an error:

    Linking .stack-work\dist\x86_64-windows\Cabal-1.22.4.0\build\gtk2hsTypeGen\g
tk2hsTypeGen.exe ...
    Preprocessing executable 'gtk2hsHookGenerator' for
    gtk2hs-buildtools-0.13.0.4...
    [1 of 2] Compiling Paths_gtk2hs_buildtools ( .stack-work\dist\x86_64-windows
\Cabal-1.22.4.0\build\autogen\Paths_gtk2hs_buildtools.hs, .stack-work\dist\x86_6
4-windows\Cabal-1.22.4.0\build\gtk2hsHookGenerator\gtk2hsHookGenerator-tmp\Paths
_gtk2hs_buildtools.o )
    .stack-work\dist\x86_64-windows\Cabal-1.22.4.0\build\gtk2hsHookGenerator\gtk
2hsHookGenerator-tmp\.stack-work\dist\x86_64-windows\Cabal-1.22.4.0\build\autoge
n\Paths_gtk2hs_buildtools.dump-hi: openFile: does not exist (No such file or dir
ectory)

I give the command from my home directory, outside from any projects.

See https://gist.github.com/mwu-tow/2c7f9f204eed5efedd16 for the full output
and https://gist.github.com/mwu-tow/c1e71813b76443ecc794 for the --verbose version

My stack --version is Version 0.1.4.0, Git revision dac8cfe51802e08edb523b80c51cf35e21933513 (1722 commits) X86_64 — but I just checked the recently released 0.1.5.0 and the issue is the same.

Interestingly, on another Windows machine it works fine.
Could this be caused by the Windows paths length limitation? Where is the file that cannot be opened? (only relative path is outputted, I'm not sure where I should look for it)

@snoyberg
Copy link
Contributor

Can you try first set STACK_ROOT=c:\sw to see if it helps? In all likelihood, it won't, and this will be triggered by the length of your temporary directory path.

@snoyberg
Copy link
Contributor

I just merged #1027, which should help with this. If you try again with Stack master (stack upgrade --git), it will likely succeed.

@mwu-tow
Copy link
Contributor Author

mwu-tow commented Sep 27, 2015

I already have STACK_ROOT=c:\s so it does not help.

The master version solved the problem for me. :-)

@mwu-tow mwu-tow closed this as completed Sep 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants