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

Why hmatrix-gsl needs gsl-0 #312

Open
chenyulue opened this issue Nov 5, 2019 · 2 comments
Open

Why hmatrix-gsl needs gsl-0 #312

chenyulue opened this issue Nov 5, 2019 · 2 comments

Comments

@chenyulue
Copy link

I wonder why hmatrix-gsl needs gsl-0 library. Actually, in msys2, after running pacman -S mingw-w64-x86_64-gsl, the lib installed is gsl, not gsl-0.

If I download the source files, edit hmatrix-gsl.cabal and change the gsl-0 reference to gsl, the following error occurs:

hmatrix-gsl-0.19.0.0: copy/register
Installing library in C:\Users\{my name}\hmatrix\packages\gsl\.stack-work\install\f7aa4a34\lib\x86_64-windows-ghc-8.6.5\hmatrix-gsl-0.19.0.0-DJciqu5BI0GLZgpPyo8VNH
Registering library for hmatrix-gsl-0.19.0.0..
Cabal-simple_Z6RU0evB_2.4.0.1_ghc-8.6.5.exe:
'C:\Users\{my name}\AppData\Local\Programs\stack\x86_64-windows\ghc-8.6.5\bin\ghc-pkg.EXE'
exited with an error:
hmatrix-gsl-0.19.0.0: Warning: haddock-interfaces:
C:\Users\{my name}\hmatrix\packages\gsl\.stack-work\install\f7aa4a34\doc\hmatrix-gsl-0.19.0.0\hmatrix-gsl.haddock
doesn't exist or isn't a file
hmatrix-gsl-0.19.0.0: library-dirs: /usr/local/lib is a relative path which
makes no sense (as there is nothing for it to be relative to). You can make
paths relative to the package database itself by using ${pkgroot}. (use
--force to override)
hmatrix-gsl-0.19.0.0: dynamic-library-dirs: /usr/local/lib is a relative path
which makes no sense (as there is nothing for it to be relative to). You can
make paths relative to the package database itself by using ${pkgroot}. (use
--force to override)


--  While building package hmatrix-gsl-0.19.0.0 using:
      C:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_2.4.0.1_ghc-8.6.5.exe --builddir=.stack-work\dist\e626a42b register
    Process exited with code: ExitFailure 1

I have no idea about this error.

@mpilgrem
Copy link
Contributor

I think this is resolved by #332.

@alex404
Copy link

alex404 commented Apr 9, 2021

As of now hmatrix-gsl on both hackage and stackage still can't compile on windows because of this. Is there any reason hmatrix-gsl and hmatrix-special on hackage and stackage haven't been updated in a while? If there's any bottlenecks there I'd be happy to help.

mpilgrem added a commit to mpilgrem/hmatrix that referenced this issue Sep 9, 2021
This proposal updates INSTALL.md for the following:

* stack comes with `msys2-20200903`
* MSYS2 `pacman -Syu` has further keyring issues which can be overcome (msys2/MSYS2-packages#2058 (comment))
* The incorrect `hmatrix-gsl-0.19.0.1` is still the latest on Hackage (haskell-numerics#312)
* Invoking `stack ghci` in the respository root folder fails, apparently because of a bug in GHC, but `stack ghci` works in the `tests` folder if an appropriate `stack.yaml` is created
* The unit tests actually fail (haskell-numerics#333)
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