{"action":"created","issue":{"url":"https://api.github.com/repos/mikeizbicki/subhask/issues/22","labels_url":"https://api.github.com/repos/mikeizbicki/subhask/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/mikeizbicki/subhask/issues/22/comments","events_url":"https://api.github.com/repos/mikeizbicki/subhask/issues/22/events","html_url":"https://github.com/mikeizbicki/subhask/issues/22","id":106171650,"number":22,"title":"Build on Windows error -> `can't load .so/.DLL for: libopenblas.dll`","user":{"login":"razvan-panda","id":1758708,"avatar_url":"https://avatars.githubusercontent.com/u/1758708?v=3","gravatar_id":"","url":"https://api.github.com/users/razvan-panda","html_url":"https://github.com/razvan-panda","followers_url":"https://api.github.com/users/razvan-panda/followers","following_url":"https://api.github.com/users/razvan-panda/following{/other_user}","gists_url":"https://api.github.com/users/razvan-panda/gists{/gist_id}","starred_url":"https://api.github.com/users/razvan-panda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/razvan-panda/subscriptions","organizations_url":"https://api.github.com/users/razvan-panda/orgs","repos_url":"https://api.github.com/users/razvan-panda/repos","events_url":"https://api.github.com/users/razvan-panda/events{/privacy}","received_events_url":"https://api.github.com/users/razvan-panda/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-09-12T16:46:42Z","updated_at":"2015-09-20T19:58:58Z","closed_at":null,"body":"I applied the hmatrix commits for `stack` and build on windows found in https://github.com/varosi/hmatrix/tree/feature/base-stack over the hmatrix 0.16.1.5 which is required as a subhask dependency. When I build only hmatrix it builds without any error.\r\n\r\nAdding the altered hmatrix package above to the subhask package yaml configuration yields the following error:\r\n\r\n```\r\n$ stack build\r\nsubhask-0.1.1.0: build\r\n\r\n--  While building package subhask-0.1.1.0 using:\r\n      C:\\\\Users\\\\Razvan\\\\AppData\\\\Local\\\\Programs\\\\stack\\\\i386-windows\\\\ghc-7.10.2\\\\bin\\\\runhaskell.exe -package=Cabal-1.22.4.0 -clear-package-db -global-package-db -package-db=C:\\Users\\Razvan\\AppData\\Roaming\\stack\\snapshots\\i386-windows\\lts-3.3\\7.10.2\\pkgdb\\ C:\\Users\\Razvan\\AppData\\Local\\Temp\\stack148160\\Setup.hs --builddir=.stack-work\\dist\\i386-windows\\Cabal-1.22.4.0\\ build --ghc-options -hpcdir .stack-work\\dist\\i386-windows\\Cabal-1.22.4.0\\hpc\\.hpc\\\r\n    Process exited with code: ExitFailure 1\r\n    Logs have been written to: D:\\Sources\\subhask\\.stack-work\\logs\\subhask-0.1.1.0.log\r\n\r\n    Building subhask-0.1.1.0...\r\n    Preprocessing library subhask-0.1.1.0...\r\n    [ 6 of 36] Compiling SubHask.Mutable  ( src\\SubHask\\Mutable.hs, .stack-work\\dist\\i386-windows\\Cabal-1.22.4.0\\build\\SubHask\\Mutable.o )\r\n    <command line>: can't load .so/.DLL for: libopenblas.dll (addDLL: could not load DLL)\r\n    ghc.exe: libopenblas: The specified module could not be found.\r\n```\r\n\r\nThe modified subhask yaml file used for building is:\r\n\r\n```\r\nflags:\r\n  hmatrix:\r\n    openblas: true\r\npackages:\r\n- '.'\r\n- location: D:\\Sources\\hmatrix-varosi\r\n  subdirs:\r\n  - packages\\base\r\nextra-deps:\r\n    [ gamma-0.9.0.2\r\n    , continued-fractions-0.9.1.1\r\n    , converge-0.1.0.1\r\n    ]\r\nresolver: lts-3.3\r\n\r\nextra-include-dirs:\r\n- D:\\Libs\\OpenBLAS\\OpenBLAS-v0.2.14-Win64-int64\\include\r\nextra-lib-dirs:\r\n- D:\\Libs\\OpenBLAS\\OpenBLAS-v0.2.14-Win64-int64\\lib\r\n```\r\n\r\nCould instead have passed the extra setting by command line as mentioned in: https://github.com/varosi/hmatrix/blob/feature/base-stack/INSTALL.md"},"comment":{"url":"https://api.github.com/repos/mikeizbicki/subhask/issues/comments/141827577","html_url":"https://github.com/mikeizbicki/subhask/issues/22#issuecomment-141827577","issue_url":"https://api.github.com/repos/mikeizbicki/subhask/issues/22","id":141827577,"user":{"login":"varosi","id":6051718,"avatar_url":"https://avatars.githubusercontent.com/u/6051718?v=3","gravatar_id":"","url":"https://api.github.com/users/varosi","html_url":"https://github.com/varosi","followers_url":"https://api.github.com/users/varosi/followers","following_url":"https://api.github.com/users/varosi/following{/other_user}","gists_url":"https://api.github.com/users/varosi/gists{/gist_id}","starred_url":"https://api.github.com/users/varosi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/varosi/subscriptions","organizations_url":"https://api.github.com/users/varosi/orgs","repos_url":"https://api.github.com/users/varosi/repos","events_url":"https://api.github.com/users/varosi/events{/privacy}","received_events_url":"https://api.github.com/users/varosi/received_events","type":"User","site_admin":false},"created_at":"2015-09-20T19:58:58Z","updated_at":"2015-09-20T19:58:58Z","body":"http://comments.gmane.org/gmane.linux.lib.musl.general/4007\r\n\r\nHave more information. I think that the problem comes from OpenBLAS lib itself."}}