Skip to content

stack build doesn't include MinGW bin folder where some DLLs reside (like http-client package) #3126

@varosi

Description

@varosi

General summary/comments (optional)

Steps to reproduce

  1. Clone http-client package from Hackage under Windows
  2. Using Stack's MinGW64 run: pacman -S mingw-w64-x86_64-openssl
  3. Run command stack build.

Expected

Expected to find eay32.dll which is installed using Stack's MingGW64.

Actual

stack build -v output

...
--extra-include-dirs=C:\Users\MyUser\AppData\Local\Programs\stack\x86_64-windows\msys2-20150512\mingw64\include --extra-lib-dirs=C:\Users\MyUser\AppData\Local\Programs\stack\x86_64-windows\msys2-20150512\mingw64\lib
...

There is no \bin folder included in extra-lib-dirs. And it cannot find OpenSSL libraries which are compiled and deployed by MinGW64 into \bin folder. When I add:

extra-lib-dirs:
- C:\Users\MyUser\AppData\Local\Programs\stack\x86_64-windows\msys2-20150512\mingw64\bin

to .yaml file - it finds it. But I think that it'll be useful if this folder is added automatically by Stack. So every library built with Stack's MinGW to be accessible for Haskell projects built with Stack.

Stack version

Version 1.4.0, Git revision e714f1dd3fade19496d91bd6a017e435a96a6bcd x86_64 hpack-0.17.0

Method of installation

  • Official binary, downloaded from stackage.org or fpcomplete's package repository

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions