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

Windows build possibility #13

Open
EddieNejadi opened this issue Mar 16, 2016 · 4 comments
Open

Windows build possibility #13

EddieNejadi opened this issue Mar 16, 2016 · 4 comments

Comments

@EddieNejadi
Copy link

It is not possible to build for windows. Please add the possibility to build for windows by cabal install call-haskell-from-anything or cabal build?

@nh2
Copy link
Owner

nh2 commented Mar 16, 2016

I support this idea, but I use Windows extremely rarely, and I haven't tried to build it there, so help would be appreciated on this topic.

What kind of error message are you seeing?

@EddieNejadi
Copy link
Author

I got this error:
cabal install call-haskell-from-anything
Resolving dependencies...
Configuring call-haskell-from-anything-1.0.1.0...
Failed to install call-haskell-from-anything-1.0.1.0
Build log ( C:\Users\mahdiab\AppData\Roaming\cabal\logs\call-haskell-from-anythi
ng-1.0.1.0.log ):
Configuring call-haskell-from-anything-1.0.1.0...
setup-Configure-Cabal-1.22.5.0-x86_64-windows-ghc-7.10.3.exe: The package has
a './configure' script. This requires a Unix compatibility toolchain such as
MinGW+MSYS or Cygwin.
cabal: Error: some packages failed to install:
call-haskell-from-anything-1.0.1.0 failed during the configure step. The
exception was:
ExitFailure 1

It looks like need a simple fix (maybe not that easy as in Linux environment) ....

@nh2
Copy link
Owner

nh2 commented Mar 16, 2016

Hmm so the configure script is this one here:

https://github.com/nh2/call-haskell-from-anything/blob/0ba6737ea17a45e59704dfdc21c971fe10b7d692/configure

The only thing it does is to execute detect-ghc-buildinfo.py :

https://github.com/nh2/call-haskell-from-anything/blob/0ba6737ea17a45e59704dfdc21c971fe10b7d692/detect-ghc-buildinfo.py

To detect the GHC version and calculate the path to the .so file of the Haskell runtime.

You could try cloning the repo, changing the build-type to from Configure to Simple in the cabal file, running the python script manually, and then doing cabal build.

@manzznam
Copy link

manzznam commented Jun 30, 2016

I tried what "nh2" suggested and still get the following errors:

E:\call-haskell-from-anything>cabal build
Package has never been configured. Configuring with default flags. If this
fails, please run configure manually.
Resolving dependencies...
Warning: solver failed to find a solution:
Could not resolve dependencies:
trying: call-haskell-from-anything-1.0.1.0 (user goal)
next goal: vector (dependency of call-haskell-from-anything-1.0.1.0)
Dependency tree exhaustively searched.
Trying configure anyway.
Configuring call-haskell-from-anything-1.0.1.0...
cabal: Encountered missing dependencies:
msgpack >=1.0.0, mtl >=2.1.2, vector -any

So i did configure first and got a similar error:

E:\call-haskell-from-anything>cabal configure
Resolving dependencies...
Warning: solver failed to find a solution:
Could not resolve dependencies:
trying: call-haskell-from-anything-1.0.1.0 (user goal)
next goal: vector (dependency of call-haskell-from-anything-1.0.1.0)
Dependency tree exhaustively searched.
Trying configure anyway.
Configuring call-haskell-from-anything-1.0.1.0...
cabal: Encountered missing dependencies:
msgpack >=1.0.0, mtl >=2.1.2, vector -any

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants