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] Openblas successfully installed, but stack doesn't seem to "see" it #284

Closed
Magalame opened this issue Oct 16, 2018 · 15 comments
Closed

Comments

@Magalame
Copy link

Magalame commented Oct 16, 2018

After a lot of effort, I got Openblas installed:

Generating openblas_config.h in /opt/OpenBLAS/include
Generating f77blas.h in /opt/OpenBLAS/include
Generating cblas.h in /opt/OpenBLAS/include
Copying LAPACKE header files to /opt/OpenBLAS/include
Copying the static library to /opt/OpenBLAS/lib
Copying the shared library to /opt/OpenBLAS/lib
Generating openblas.pc in /opt/OpenBLAS/lib/pkgconfig
Generating OpenBLASConfig.cmake in /opt/OpenBLAS/lib/cmake/openblas
Generating OpenBLASConfigVersion.cmake in /opt/OpenBLAS/lib/cmake/openblas
Install OK!

I used the instructions from here, except I downloaded the 0.3.3 version, and not the 0.2.20, as it seems like the 0.2.20 really has a hard time compiling (see here)
But when trying to install hmatrix, I get this:

C:\Users\user\Downloads\hmatrix-master\hmatrix-master> stack install --flag hmatrix:openblas --extra-include-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\opt\OpenBLAS\include --extra-lib-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\opt\OpenBLAS\bin --extra-lib-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\usr\lib\gcc\x86_64-pc-msys\7.3.0
�[0mhmatrix-0.19.0.0: configure (lib)�[0m
�[0mLog files have been written to: C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\logs\�[0m
Progress 1/7

--  While building custom Setup.hs for package hmatrix-0.19.0.0 using:
      C:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_2.0.1.0_ghc-8.2.2.exe --builddir=.stack-work\dist\5c8418a7 configure --with-ghc=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.2\bin\ghc.EXE --with-ghc-pkg=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.2\bin\ghc-pkg.EXE --user --package-db=clear --package-db=global --package-db=C:\sr\snapshots\90c14513\pkgdb --package-db=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\pkgdb --libdir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\lib --bindir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\bin --datadir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\share --libexecdir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\libexec --sysconfdir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\etc --docdir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\doc\hmatrix-0.19.0.0 --htmldir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\doc\hmatrix-0.19.0.0 --haddockdir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\doc\hmatrix-0.19.0.0 --dependency=array=array-0.5.2.0 --dependency=base=base-4.10.1.0 --dependency=binary=binary-0.8.5.1 --dependency=bytestring=bytestring-0.10.8.2 --dependency=deepseq=deepseq-1.4.3.0 --dependency=random=random-1.1-LLUGZ7T9DqQ5vN0Jbcd0We --dependency=semigroups=semigroups-0.18.4-mxkGq2xNPcBC0dj8uuk3q --dependency=split=split-0.2.3.3-69JBPqG5rhJEaFzFyiVOGW --dependency=storable-complex=storable-complex-0.2.2-4WEqCO29MfMHlD0g6H5VIw --dependency=vector=vector-0.12.0.1-JlawpRjIcMJIYPJVsWriIA -fopenblas --extra-include-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\include --extra-include-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\opt\OpenBLAS\include --extra-lib-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\bin --extra-lib-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\lib --extra-lib-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\opt\OpenBLAS\bin --extra-lib-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\usr\lib\gcc\x86_64-pc-msys\7.3.0 --enable-tests --enable-benchmarks
    Process exited with code: ExitFailure 1
    Logs have been written to: C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\logs\hmatrix-0.19.0.0.log

    Configuring hmatrix-0.19.0.0...
    Cabal-simple_Z6RU0evB_2.0.1.0_ghc-8.2.2.exe: Missing dependency on a foreign
    library:
    * Missing C library: libopenblas
    This problem can usually be solved by installing the system package that
    provides this library (you may need the "-dev" version). If the library is
    already installed but in a non-standard location then you can use the flags
    --extra-include-dirs= and --extra-lib-dirs= to specify where it is.

What am I doing wrong? Thanks!

@Magalame
Copy link
Author

Magalame commented Oct 17, 2018

I moved the location of installation of OpenBLAS, now stack does seem to see it. Also MSYS build a cygopenblas.dll instead of a libopenblas.dll, renaming it probably helped, but I still have some trouble:


PS C:\Users\user\Downloads\hmatrix-master\hmatrix-master> stack install --flag hmatrix:openblas --extra-lib-dirs=C:\sr\lib\OpenBLAS\bin --extra-include-dirs=C:\sr\lib\OpenBLAS\include --extra-lib-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\usr\lib\gcc\x86_64-pc-msys\7.3.0
�[0mhmatrix-0.19.0.0: unregistering (flags changed from ["--extra-lib-dirs=C:\\Users\\user\\AppData\\Local\\Programs\\stack\\x86_64-windows\\msys2-20180531\\mingw64\\bin","--extra-lib-dirs=C:\\Users\\user\\AppData\\Local\\Programs\\stack\\x86_64-windows\\msys2-20180531\\mingw64\\lib","--extra-lib-dirs=C:\\sr\\lib\\OpenBLAS\\bin"] to ["--extra-include-dirs=C:\\sr\\lib\\OpenBLAS\\include","--extra-lib-dirs=C:\\Users\\user\\AppData\\Local\\Programs\\stack\\x86_64-windows\\msys2-20180531\\mingw64\\bin","--extra-lib-dirs=C:\\Users\\user\\AppData\\Local\\Programs\\stack\\x86_64-windows\\msys2-20180531\\mingw64\\lib","--extra-lib-dirs=C:\\Users\\user\\AppData\\Local\\Programs\\stack\\x86_64-windows\\msys2-20180531\\usr\\lib\\gcc\\x86_64-pc-msys\\7.3.0","--extra-lib-dirs=C:\\sr\\lib\\OpenBLAS\\bin"])�[0m
�[0mhmatrix-0.19.0.0: configure (lib)�[0m
�[0mhmatrix-0.19.0.0: build (lib)�[0m
�[0mhmatrix-0.19.0.0: copy/register�[0m
�[0mhmatrix-glpk-0.19.0.0: configure (lib)�[0m
�[0mhmatrix-gsl-0.19.0.0: configure (lib)�[0m
�[0mhmatrix-sundials-0.19.0.0: configure (lib)�[0m
�[0mLog files have been written to: C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\logs\�[0m
Progress 4/7

--  While building custom Setup.hs for package hmatrix-sundials-0.19.0.0 using:
      C:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_2.0.1.0_ghc-8.2.2.exe --builddir=.stack-work\dist\5c8418a7 configure --with-ghc=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.2\bin\ghc.EXE --with-ghc-pkg=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.2\bin\ghc-pkg.EXE --user --package-db=clear --package-db=global --package-db=C:\sr\snapshots\90c14513\pkgdb --package-db=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\pkgdb --libdir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\lib --bindir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\bin --datadir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\share --libexecdir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\libexec --sysconfdir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\etc --docdir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\doc\hmatrix-sundials-0.19.0.0 --htmldir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\doc\hmatrix-sundials-0.19.0.0 --haddockdir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\doc\hmatrix-sundials-0.19.0.0 --dependency=base=base-4.10.1.0 --dependency=containers=containers-0.5.10.2 --dependency=hmatrix=hmatrix-0.19.0.0-8WhX5YND2gtF8wQeromowO --dependency=inline-c=inline-c-0.6.0.5-Kqpwsr3UaHrFyKaGVnCXMe --dependency=template-haskell=template-haskell-2.12.0.0 --dependency=vector=vector-0.12.0.1-JlawpRjIcMJIYPJVsWriIA --extra-include-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\include --extra-include-dirs=C:\sr\lib\OpenBLAS\include --extra-lib-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\bin --extra-lib-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\lib --extra-lib-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\usr\lib\gcc\x86_64-pc-msys\7.3.0 --extra-lib-dirs=C:\sr\lib\OpenBLAS\bin
    Process exited with code: ExitFailure 1
    Logs have been written to: C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\logs\hmatrix-sundials-0.19.0.0.log

    Configuring hmatrix-sundials-0.19.0.0...
    Cabal-simple_Z6RU0evB_2.0.1.0_ghc-8.2.2.exe: Missing dependencies on foreign
    libraries:
    * Missing C libraries: sundials_arkode, sundials_cvode
    This problem can usually be solved by installing the system packages that
    provide these libraries (you may need the "-dev" versions). If the libraries
    are already installed but in a non-standard location then you can use the
    flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.


--  While building custom Setup.hs for package hmatrix-gsl-0.19.0.0 using:
      C:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_2.0.1.0_ghc-8.2.2.exe --builddir=.stack-work\dist\5c8418a7 configure --with-ghc=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.2\bin\ghc.EXE --with-ghc-pkg=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.2\bin\ghc-pkg.EXE --user --package-db=clear --package-db=global --package-db=C:\sr\snapshots\90c14513\pkgdb --package-db=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\pkgdb --libdir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\lib --bindir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\bin --datadir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\share --libexecdir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\libexec --sysconfdir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\etc --docdir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\doc\hmatrix-gsl-0.19.0.0 --htmldir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\doc\hmatrix-gsl-0.19.0.0 --haddockdir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\doc\hmatrix-gsl-0.19.0.0 --dependency=array=array-0.5.2.0 --dependency=base=base-4.10.1.0 --dependency=hmatrix=hmatrix-0.19.0.0-8WhX5YND2gtF8wQeromowO --dependency=process=process-1.6.1.0 --dependency=random=random-1.1-LLUGZ7T9DqQ5vN0Jbcd0We --dependency=vector=vector-0.12.0.1-JlawpRjIcMJIYPJVsWriIA -f-onlygsl --extra-include-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\include --extra-include-dirs=C:\sr\lib\OpenBLAS\include --extra-lib-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\bin --extra-lib-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\lib --extra-lib-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\usr\lib\gcc\x86_64-pc-msys\7.3.0 --extra-lib-dirs=C:\sr\lib\OpenBLAS\bin
    Process exited with code: ExitFailure 1
    Logs have been written to: C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\logs\hmatrix-gsl-0.19.0.0.log

    Configuring hmatrix-gsl-0.19.0.0...
    Cabal-simple_Z6RU0evB_2.0.1.0_ghc-8.2.2.exe: The pkg-config package 'gsl' is
    required but it could not be found.


--  While building custom Setup.hs for package hmatrix-glpk-0.19.0.0 using:
      C:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_2.0.1.0_ghc-8.2.2.exe --builddir=.stack-work\dist\5c8418a7 configure --with-ghc=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.2\bin\ghc.EXE --with-ghc-pkg=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.2\bin\ghc-pkg.EXE --user --package-db=clear --package-db=global --package-db=C:\sr\snapshots\90c14513\pkgdb --package-db=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\pkgdb --libdir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\lib --bindir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\bin --datadir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\share --libexecdir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\libexec --sysconfdir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\etc --docdir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\doc\hmatrix-glpk-0.19.0.0 --htmldir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\doc\hmatrix-glpk-0.19.0.0 --haddockdir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\doc\hmatrix-glpk-0.19.0.0 --dependency=base=base-4.10.1.0 --dependency=containers=containers-0.5.10.2 --dependency=hmatrix=hmatrix-0.19.0.0-8WhX5YND2gtF8wQeromowO --extra-include-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\include --extra-include-dirs=C:\sr\lib\OpenBLAS\include --extra-lib-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\bin --extra-lib-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\lib --extra-lib-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\usr\lib\gcc\x86_64-pc-msys\7.3.0 --extra-lib-dirs=C:\sr\lib\OpenBLAS\bin
    Process exited with code: ExitFailure 1
    Logs have been written to: C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\logs\hmatrix-glpk-0.19.0.0.log

    Configuring hmatrix-glpk-0.19.0.0...
    Cabal-simple_Z6RU0evB_2.0.1.0_ghc-8.2.2.exe: Missing dependency on a foreign
    library:
    * Missing C library: glpk
    This problem can usually be solved by installing the system package that
    provides this library (you may need the "-dev" version). If the library is
    already installed but in a non-standard location then you can use the flags
    --extra-include-dirs= and --extra-lib-dirs= to specify where it is.

@Magalame
Copy link
Author

After following the steps outlined here I did make some progress but I'm still having problems with the sundials library:

PS C:\Users\user\Downloads\hmatrix-master\hmatrix-master> stack install --flag hmatrix:openblas --extra-include-dirs=C:\sr\lib\OpenBLAS\include --extra-lib-dirs=C:\sr\lib\OpenBLAS\bin --extra-lib-dirs=C:\Users\user\AppData\Local\Progra
ms\stack\x86_64-windows\msys2-20180531\usr\lib\gcc\x86_64-pc-msys\7.3.0 --extra-lib-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\bin
�[0mhmatrix-0.19.0.0: configure (lib)�[0m
�[0mhmatrix-0.19.0.0: build (lib)�[0m
�[0mhmatrix-0.19.0.0: copy/register�[0m
�[0mhmatrix-glpk-0.19.0.0: configure (lib)�[0m
�[0mhmatrix-gsl-0.19.0.0: configure (lib)�[0m
�[0mhmatrix-glpk-0.19.0.0: build (lib)�[0m
�[0mhmatrix-glpk-0.19.0.0: copy/register�[0m
�[0mhmatrix-sundials-0.19.0.0: configure (lib)�[0m
�[0mhmatrix-gsl-0.19.0.0: build (lib)�[0m
�[0mhmatrix-gsl-0.19.0.0: copy/register�[0m
�[0mLog files have been written to: C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\logs\�[0m
Progress 4/7

--  While building custom Setup.hs for package hmatrix-sundials-0.19.0.0 using:
      C:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_2.0.1.0_ghc-8.2.2.exe --builddir=.stack-work\dist\5c8418a7 configure --with-ghc=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.2\bin\ghc.EXE --with-ghc-pkg=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.2\bin\ghc-pkg.EXE --user --package-db=clear --package-db=global --package-db=C:\sr\snapshots\90c14513\pkgdb --package-db=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\pkgdb --libdir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\lib --bindir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\bin --datadir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\share --libexecdir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\libexec --sysconfdir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\etc --docdir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\doc\hmatrix-sundials-0.19.0.0 --htmldir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\doc\hmatrix-sundials-0.19.0.0 --haddockdir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\doc\hmatrix-sundials-0.19.0.0 --dependency=base=base-4.10.1.0 --dependency=containers=containers-0.5.10.2 --dependency=hmatrix=hmatrix-0.19.0.0-8WhX5YND2gtF8wQeromowO --dependency=inline-c=inline-c-0.6.0.5-Kqpwsr3UaHrFyKaGVnCXMe --dependency=template-haskell=template-haskell-2.12.0.0 --dependency=vector=vector-0.12.0.1-JlawpRjIcMJIYPJVsWriIA --extra-include-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\include --extra-include-dirs=C:\sr\lib\OpenBLAS\include --extra-lib-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\bin --extra-lib-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\lib --extra-lib-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\usr\lib\gcc\x86_64-pc-msys\7.3.0 --extra-lib-dirs=C:\sr\lib\OpenBLAS\bin
    Process exited with code: ExitFailure 1
    Logs have been written to: C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\logs\hmatrix-sundials-0.19.0.0.log

    Configuring hmatrix-sundials-0.19.0.0...
    Cabal-simple_Z6RU0evB_2.0.1.0_ghc-8.2.2.exe: Missing dependencies on foreign
    libraries:
    * Missing C libraries: sundials_arkode, sundials_cvode
    This problem can usually be solved by installing the system packages that
    provide these libraries (you may need the "-dev" versions). If the libraries
    are already installed but in a non-standard location then you can use the
    flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.

@idontgetoutmuch
Copy link
Member

How did you install sundials?

@Magalame
Copy link
Author

Magalame commented Oct 19, 2018

Hi!
I downloaded it from here, then I used Cmake to configure the build, and then I ran mingw32-make.exe in the build folder. When it got done, I tried to compile hamtrix again but I got this:

stack install --flag hmatrix:openblas --extra-include-dirs=C:\sr\lib\OpenBLAS\include --extra-lib-d
irs=C:\sr\lib\OpenBLAS\bin --extra-lib-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\usr\lib\gcc\x86_64-pc-msys\7.3.0 --extra
-lib-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\bin --extra-lib-dirs=C:\Users\user\Downloads\sundials-3.2.1\build

�[0mhmatrix-0.19.0.0: unregistering (flags changed from ["--extra-lib-dirs=C:\\sr\\lib\\OpenBLAS\\bin"] to ["--extra-lib-dirs=C:\\Users\\user\\Downloads\\sundials-3.2.1\\build","--extra-lib-dirs=C:\\sr\\lib\\OpenBLAS\\bin"])�[0m
�[0mhmatrix-glpk-0.19.0.0: unregistering (missing dependencies: hmatrix)�[0m
�[0mhmatrix-gsl-0.19.0.0: unregistering (missing dependencies: hmatrix)�[0m
�[0mhmatrix-special-0.19.0.0: unregistering (missing dependencies: hmatrix, hmatrix-gsl)�[0m
�[0mhmatrix-tests-0.19.0.0: unregistering (missing dependencies: hmatrix, hmatrix-gsl)�[0m
�[0mhmatrix-0.19.0.0: configure (lib)�[0m
�[0mhmatrix-0.19.0.0: build (lib)�[0m
�[0mhmatrix-0.19.0.0: copy/register�[0m
�[0mhmatrix-glpk-0.19.0.0: configure (lib)�[0m
�[0mhmatrix-gsl-0.19.0.0: configure (lib)�[0m
�[0mhmatrix-glpk-0.19.0.0: build (lib)�[0m
�[0mhmatrix-glpk-0.19.0.0: copy/register�[0m
�[0mhmatrix-sundials-0.19.0.0: configure (lib)�[0m
�[0mhmatrix-gsl-0.19.0.0: build (lib)�[0m
�[0mhmatrix-gsl-0.19.0.0: copy/register�[0m
�[0mLog files have been written to: C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\logs\�[0m
Progress 4/7

--  While building custom Setup.hs for package hmatrix-sundials-0.19.0.0 using:
      C:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_2.0.1.0_ghc-8.2.2.exe --builddir=.stack-work\dist\5c8418a7 configure --with-ghc=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.2\bin\ghc.EXE --with-ghc-pkg=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.2\bin\ghc-pkg.EXE --user --package-db=clear --package-db=global --package-db=C:\sr\snapshots\90c14513\pkgdb --package-db=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\pkgdb --libdir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\lib --bindir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\bin --datadir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\share --libexecdir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\libexec --sysconfdir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\etc --docdir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\doc\hmatrix-sundials-0.19.0.0 --htmldir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\doc\hmatrix-sundials-0.19.0.0 --haddockdir=C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\install\6be9b82c\doc\hmatrix-sundials-0.19.0.0 --dependency=base=base-4.10.1.0 --dependency=containers=containers-0.5.10.2 --dependency=hmatrix=hmatrix-0.19.0.0-8WhX5YND2gtF8wQeromowO --dependency=inline-c=inline-c-0.6.0.5-Kqpwsr3UaHrFyKaGVnCXMe --dependency=template-haskell=template-haskell-2.12.0.0 --dependency=vector=vector-0.12.0.1-JlawpRjIcMJIYPJVsWriIA --extra-include-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\include --extra-include-dirs=C:\sr\lib\OpenBLAS\include --extra-lib-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\bin --extra-lib-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\lib --extra-lib-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\usr\lib\gcc\x86_64-pc-msys\7.3.0 --extra-lib-dirs=C:\Users\user\Downloads\sundials-3.2.1\build --extra-lib-dirs=C:\sr\lib\OpenBLAS\bin
    Process exited with code: ExitFailure 1
    Logs have been written to: C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\logs\hmatrix-sundials-0.19.0.0.log

    Configuring hmatrix-sundials-0.19.0.0...
    Cabal-simple_Z6RU0evB_2.0.1.0_ghc-8.2.2.exe: Missing dependencies on foreign
    libraries:
    * Missing C libraries: sundials_arkode, sundials_cvode
    This problem can usually be solved by installing the system packages that
    provide these libraries (you may need the "-dev" versions). If the libraries
    are already installed but in a non-standard location then you can use the
    flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.

I thought about following these instructions but there is no "configure" file in the sundials sources.

In the end, these worked well, using Mingw32 to build, as detailed at the very end of the article.

@Magalame
Copy link
Author

I just tried adding some more directories to the command and I got that:

PS C:\Users\user\Downloads\hmatrix-master\hmatrix-master> stack install --flag hmatrix:openblas --extra-include-dirs=C:\sr\lib\OpenBLAS\include --extra-lib-d
irs=C:\sr\lib\OpenBLAS\bin --extra-lib-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\usr\lib\gcc\x86_64-pc-msys\7.3.0 --extra
-lib-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\bin --extra-lib-dirs=C:\Users\user\Downloads\sundials-3.2.1\build
\src\arkode --extra-lib-dirs=C:\Users\user\Downloads\sundials-3.2.1\build\src\cvode --extra-include-dirs=C:\Users\user\Downloads\sundials-3.2.1\include
�[0mhmatrix-sundials-0.19.0.0: configure (lib)�[0m
�[0mhmatrix-special-0.19.0.0: configure (lib)�[0m
�[0mhmatrix-sundials-0.19.0.0: build (lib)�[0m
�[0mhmatrix-tests-0.19.0.0: configure (lib)�[0m
�[0mhmatrix-special-0.19.0.0: build (lib)�[0m
�[0mhmatrix-tests-0.19.0.0: build (lib)�[0m
�[0mhmatrix-special-0.19.0.0: copy/register�[0m
�[0mhmatrix-tests-0.19.0.0: copy/register�[0m
�[0mLog files have been written to: C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\logs\�[0m
Progress 3/4

--  While building custom Setup.hs for package hmatrix-sundials-0.19.0.0 using:
      C:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_2.0.1.0_ghc-8.2.2.exe --builddir=.stack-work\dist\5c8418a7 build lib:hmatrix-sundials --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always"
    Process exited with code: ExitFailure 1
    Logs have been written to: C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\logs\hmatrix-sundials-0.19.0.0.log

    Configuring hmatrix-sundials-0.19.0.0...
    Preprocessing library for hmatrix-sundials-0.19.0.0..
    In file included from C:\Users\user\Downloads\sundials-3.2.1\include/sundials/sundials_nvector.h:51:0,
                     from Arkode.hsc:24:
    C:\Users\user\Downloads\sundials-3.2.1\include/sundials/sundials_types.h:53:38: fatal error: sundials/sundials_config.h: No such file or directory
     #include <sundials/sundials_config.h>
                                          ^
    compilation terminated.
    compiling .stack-work\dist\5c8418a7\build\Numeric\Sundials\Arkode_hsc_make.c failed (exit code 1)
    command was: C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.2\mingw\bin\gcc.exe -c .stack-work\dist\5c8418a7\build\Numeric\Sundials\Arkode_hsc_make.c -o .stack-work\dist\5c8418a7\build\Numeric\Sundials\Arkode_hsc_make.o -fno-stack-protector -D__GLASGOW_HASKELL__=802 -Dmingw32_BUILD_OS=1 -Dx86_64_BUILD_ARCH=1 -Dmingw32_HOST_OS=1 -Dx86_64_HOST_ARCH=1 -IC:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\include -IC:\Users\user\Downloads\sundials-3.2.1\include -IC:\sr\lib\OpenBLAS\include -I.stack-work\dist\5c8418a7\build\autogen -I.stack-work\dist\5c8418a7\build\global-autogen -include .stack-work\dist\5c8418a7\build\autogen\cabal_macros.h -IC:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\include -IC:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\opt\OpenBLAS\include -IC:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\include -IC:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\opt\OpenBLAS\include -IC:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\include -IC:\Users\user\Downloads\MSYS-20111123\msys\opt\OpenBLAS\include -IC:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\include -IC:\Users\user\Downloads\MSYS-20111123\msys\opt\OpenBLAS\include -IC:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\include -IC:\Users\user\Downloads\sundials-3.2.1\include -IC:\sr\lib\OpenBLAS\include -IC:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\include -IC:\Users\user\Downloads\MSYS-20111123\msys\opt\OpenBLAS\include -IC:\sr\snapshots\90c14513\lib\x86_64-windows-ghc-8.2.2\vector-0.12.0.1-JlawpRjIcMJIYPJVsWriIA\include -IC:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\include -IC:\Users\user\Downloads\MSYS-20111123\msys\opt\OpenBLAS\include -IC:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\include -IC:\Users\user\Downloads\MSYS-20111123\msys\opt\OpenBLAS\include -IC:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\include -IC:\Users\user\Downloads\MSYS-20111123\msys\opt\OpenBLAS\include -IC:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\include -IC:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\opt\OpenBLAS\include -IC:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\include -IC:\Users\user\Downloads\MSYS-20111123\msys\opt\OpenBLAS\include -IC:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\include -IC:\Users\user\Downloads\MSYS-20111123\msys\opt\OpenBLAS\include -IC:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\include -IC:\Users\user\Downloads\MSYS-20111123\msys\opt\OpenBLAS\include -IC:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\include -IC:\Users\user\Downloads\MSYS-20111123\msys\opt\OpenBLAS\include -IC:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\include -IC:\Users\user\Downloads\MSYS-20111123\msys\opt\OpenBLAS\include -IC:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\include -IC:\Users\user\Downloads\MSYS-20111123\msys\opt\OpenBLAS\include -IC:\sr\snapshots\90c14513\lib\x86_64-windows-ghc-8.2.2\primitive-0.6.3.0-CXy1O9sQYlI58rn9KQkFyo\include -IC:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\include -IC:\Users\user\Downloads\MSYS-20111123\msys\opt\OpenBLAS\include -IC:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\include -IC:\Users\user\Downloads\MSYS-20111123\msys\opt\OpenBLAS\include -IC:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\include -IC:\Users\user\Downloads\MSYS-20111123\msys\opt\OpenBLAS\include -IC:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\include -IC:\Users\user\Downloads\MSYS-20111123\msys\opt\OpenBLAS\include -IC:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\include -IC:\Users\user\Downloads\MSYS-20111123\msys\opt\OpenBLAS\include -IC:\Users\user\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.2\lib\process-1.6.1.0\include -IC:\Users\user\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.2\lib\directory-1.3.0.2\include -IC:\Users\user\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.2\lib\time-1.8.0.2\include -IC:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\include -IC:\Users\user\Downloads\MSYS-20111123\msys\opt\OpenBLAS\include -IC:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\include -IC:\Users\user\Downloads\MSYS-20111123\msys\opt\OpenBLAS\include -IC:\Users\user\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.2\lib\Win32-2.5.4.1\include -IC:\Users\user\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.2\lib\bytestring-0.10.8.2\include -IC:\Users\user\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.2\lib\base-4.10.1.0\include -IC:\Users\user\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.2\lib\integer-gmp-1.0.1.0\include -IC:\Users\user\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.2\lib/include -IC:\Users\user\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.2/lib/include/

I tried including the sundials folder in question in my path, but the error won't go away

@Magalame
Copy link
Author

ok, so I figured that the headers it was looking for were in a different location, so one more --extra-include-dirs=and it works better. Although now I have a segfault error:

PS C:\Users\user\Downloads\hmatrix-master\hmatrix-master> stack install --flag hmatrix:openblas --extra-include-dirs=C:\sr\lib\OpenBLAS\include --extra-lib-d
irs=C:\sr\lib\OpenBLAS\bin --extra-lib-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\usr\lib\gcc\x86_64-pc-msys\7.3.0 --extra
-lib-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\bin --extra-lib-dirs=C:\Users\user\Downloads\sundials-3.2.1\build
\src\arkode --extra-lib-dirs=C:\Users\user\Downloads\sundials-3.2.1\build\src\cvode --extra-include-dirs=C:\Users\user\Downloads\sundials-3.2.1\include --ex
tra-include-dirs=C:\Users\user\Downloads\sundials-3.2.1\build\include
�[0mhmatrix-sundials-0.19.0.0: build (lib)�[0m
�[0mLog files have been written to: C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\logs\�[0m
Progress 1/2

--  While building custom Setup.hs for package hmatrix-sundials-0.19.0.0 using:
      C:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_2.0.1.0_ghc-8.2.2.exe --builddir=.stack-work\dist\5c8418a7 build lib:hmatrix-sundials --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always"
    Process exited with code: ExitFailure 1
    Logs have been written to: C:\Users\user\Downloads\hmatrix-master\hmatrix-master\.stack-work\logs\hmatrix-sundials-0.19.0.0.log

    Preprocessing library for hmatrix-sundials-0.19.0.0..
    Building library for hmatrix-sundials-0.19.0.0..
    [3 of 4] Compiling Numeric.Sundials.CVode.ODE ( src\Numeric\Sundials\CVode\ODE.hs, .stack-work\dist\5c8418a7\build\Numeric\Sundials\CVode\ODE.o )
    Access violation in generated code when executing data at 0000000000000000

@Magalame
Copy link
Author

Magalame commented Oct 25, 2018

Any idea how where the problem could come from?

@idontgetoutmuch
Copy link
Member

I have no idea why you would an access violation at compile time. I really don't have time to investigate given I would have to borrow a windows machine. I would guess something to do with word length but why this should cause compilation to crash baffles me. You could try using the instructions at LLNL: https://computation.llnl.gov/projects/sundials/faq#inst_win but you'd have to be careful that the stuff you installed already didn't get picked up by accident. The instructions you used look very old to me.

Do you actually need sundials? You could drop back to a previous version which doesn't contain them.

Good luck! I'd really like to help but it's just not possible ATM. You could try emailing haskell-cafe to see if other windows users (Neil Mitchell?) can help (or at least reproduce the problem).

@Magalame
Copy link
Author

Magalame commented Nov 25, 2018

Hi again!
I tried again, installing the version 0.18.1
I think I succeeded installing both hmatrix itself and the tests. But then, when I try to use the library when opening a new terminal, I have that:

Prelude> import Numeric.LinearAlgebra

<no location info>: error:
    Could not find module `Numeric.LinearAlgebra'
    It is not a module in the current program, or in any known package.
Prelude>

If I try to open it in the installation folder:

stack ghci --flag hmatrix:openblas --extra-include-dirs=C:\sr\lib\OpenBLAS\include --extra-lib-
dirs=C:\sr\lib\OpenBLAS\bin --extra-lib-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\usr\lib\gcc\x86_64-pc-msys\7.3.0 --extr
a-lib-dirs=C:\Users\user\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\bin

WARNING: cache is out of date: C:/Users/user/AppData/Local/Programs/stack/x86_64-windows/ghc-8.0.2\lib\package.conf.d\package.cache
ghc will see an old view of this package db. Use 'ghc-pkg recache' to fix.
�[0mConfiguring GHCi with the following packages: hmatrix, hmatrix-glpk, hmatrix-gsl, hmatrix-special, hmatrix-tests�[0m
GHCi, version 8.0.2: http://www.haskell.org/ghc/  :? for help
Segmentation fault/access violation in generated code

I tried running stack test it gave me:

Test suite failure for package hmatrix-tests-0.6.0.0
    hmatrix-base-testsuite:  exited with: ExitFailure (-1073741515)
    hmatrix-gsl-testsuite:  exited with: ExitFailure (-1073741515)

with completely blank log.

Although the installation logs per se seem to suggest everything went well:

Preprocessing library hmatrix-0.18.1.0...
[ 1 of 27] Compiling Internal.Vector  ( src\Internal\Vector.hs, .stack-work\dist\ca59d0ab\build\Internal\Vector.o ) [flags changed]
[ 2 of 27] Compiling Internal.Devel   ( src\Internal\Devel.hs, .stack-work\dist\ca59d0ab\build\Internal\Devel.o ) [flags changed]
[ 3 of 27] Compiling Internal.Vectorized ( src\Internal\Vectorized.hs, .stack-work\dist\ca59d0ab\build\Internal\Vectorized.o ) [flags changed]
[ 4 of 27] Compiling Internal.Matrix  ( src\Internal\Matrix.hs, .stack-work\dist\ca59d0ab\build\Internal\Matrix.o ) [flags changed]
[ 5 of 27] Compiling Internal.IO      ( src\Internal\IO.hs, .stack-work\dist\ca59d0ab\build\Internal\IO.o ) [flags changed]
[ 6 of 27] Compiling Internal.ST      ( src\Internal\ST.hs, .stack-work\dist\ca59d0ab\build\Internal\ST.o ) [flags changed]
[ 7 of 27] Compiling Internal.Element ( src\Internal\Element.hs, .stack-work\dist\ca59d0ab\build\Internal\Element.o ) [flags changed]
[ 8 of 27] Compiling Internal.Conversion ( src\Internal\Conversion.hs, .stack-work\dist\ca59d0ab\build\Internal\Conversion.o ) [flags changed]
[ 9 of 27] Compiling Internal.LAPACK  ( src\Internal\LAPACK.hs, .stack-work\dist\ca59d0ab\build\Internal\LAPACK.o ) [flags changed]
[10 of 27] Compiling Internal.Numeric ( src\Internal\Numeric.hs, .stack-work\dist\ca59d0ab\build\Internal\Numeric.o ) [flags changed]
[11 of 27] Compiling Internal.Sparse  ( src\Internal\Sparse.hs, .stack-work\dist\ca59d0ab\build\Internal\Sparse.o ) [flags changed]
[12 of 27] Compiling Numeric.LinearAlgebra.Devel ( src\Numeric\LinearAlgebra\Devel.hs, .stack-work\dist\ca59d0ab\build\Numeric\LinearAlgebra\Devel.o ) [flags changed]
[13 of 27] Compiling Numeric.Vector   ( src\Numeric\Vector.hs, .stack-work\dist\ca59d0ab\build\Numeric\Vector.o ) [flags changed]
[14 of 27] Compiling Internal.Chain   ( src\Internal\Chain.hs, .stack-work\dist\ca59d0ab\build\Internal\Chain.o ) [flags changed]
[15 of 27] Compiling Numeric.Matrix   ( src\Numeric\Matrix.hs, .stack-work\dist\ca59d0ab\build\Numeric\Matrix.o ) [flags changed]
[16 of 27] Compiling Internal.Algorithms ( src\Internal\Algorithms.hs, .stack-work\dist\ca59d0ab\build\Internal\Algorithms.o ) [flags changed]
[17 of 27] Compiling Internal.Container ( src\Internal\Container.hs, .stack-work\dist\ca59d0ab\build\Internal\Container.o ) [flags changed]
[18 of 27] Compiling Internal.CG      ( src\Internal\CG.hs, .stack-work\dist\ca59d0ab\build\Internal\CG.o ) [flags changed]
[19 of 27] Compiling Internal.Convolution ( src\Internal\Convolution.hs, .stack-work\dist\ca59d0ab\build\Internal\Convolution.o ) [flags changed]
[20 of 27] Compiling Internal.Random  ( src\Internal\Random.hs, .stack-work\dist\ca59d0ab\build\Internal\Random.o ) [flags changed]
[21 of 27] Compiling Internal.Util    ( src\Internal\Util.hs, .stack-work\dist\ca59d0ab\build\Internal\Util.o ) [flags changed]
[22 of 27] Compiling Internal.Modular ( src\Internal\Modular.hs, .stack-work\dist\ca59d0ab\build\Internal\Modular.o ) [flags changed]

src\Internal\Modular.hs:127:10: warning: [-Wmissing-methods]
    * No explicit implementation for
        `reorderV'
    * In the instance declaration for `Element (Mod m I)'

src\Internal\Modular.hs:144:10: warning: [-Wmissing-methods]
    * No explicit implementation for
        `reorderV'
    * In the instance declaration for `Element (Mod m Z)'
[23 of 27] Compiling Numeric.LinearAlgebra.Data ( src\Numeric\LinearAlgebra\Data.hs, .stack-work\dist\ca59d0ab\build\Numeric\LinearAlgebra\Data.o ) [flags changed]
[24 of 27] Compiling Numeric.LinearAlgebra ( src\Numeric\LinearAlgebra.hs, .stack-work\dist\ca59d0ab\build\Numeric\LinearAlgebra.o ) [flags changed]
[25 of 27] Compiling Internal.Static  ( src\Internal\Static.hs, .stack-work\dist\ca59d0ab\build\Internal\Static.o ) [flags changed]
[26 of 27] Compiling Numeric.LinearAlgebra.Static ( src\Numeric\LinearAlgebra\Static.hs, .stack-work\dist\ca59d0ab\build\Numeric\LinearAlgebra\Static.o ) [flags changed]
[27 of 27] Compiling Numeric.LinearAlgebra.HMatrix ( src\Numeric\LinearAlgebra\HMatrix.hs, .stack-work\dist\ca59d0ab\build\Numeric\LinearAlgebra\HMatrix.o ) [flags changed]
Installing library in
C:\Users\user\Downloads\hmatrix-0.18.1.0\hmatrix-0.18.1.0\.stack-work\install\c46812a2\lib\x86_64-windows-ghc-8.0.2\hmatrix-0.18.1.0-BIrg0IUPHzADGzjDxtCX1m
Registering hmatrix-0.18.1.0...

@idontgetoutmuch
Copy link
Member

Prelude> import Numeric.LinearAlgebra

: error:
Could not find module `Numeric.LinearAlgebra'
It is not a module in the current program, or in any known package.
Prelude>

What is in your cabal? How are you running this? stack repl?

@Magalame
Copy link
Author

I give up, I'll just use Linux. Thanks a lot for your help, it was very considerate!

@chenyulue
Copy link

Maybe you can try to install hmatrix according to here. I've installed it successfully with both openblas and the normal blas and lapack.

@idontgetoutmuch
Copy link
Member

@chenyulue Thanks for creating the wiki page

@Magalame
Copy link
Author

I'll try it when I can! :)

@emekoi
Copy link

emekoi commented Apr 9, 2020

an easier way would to just install it using the mingw installation that comes with stack: stack exec -- pacman -S mingw-w64-x86_64-openblas

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

4 participants