Coder Social home page Coder Social logo

cabalchoco's People

Contributors

mistuke avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cabalchoco's Issues

Reconsider adding MSYS2's MinGW-w64 to `extra-lib-dirs`

Currently, the Chocolatey installers for cabal add MSYS2's /mingw64/lib to the extra-lib-dirs in the generated cabal config file. (See these lines). Unfortunately, this has a number of unfortunate consequences:

  1. Due to GHC#21111, pre-9.4 versions of GHC will break if LIBRARY_PATH includes the most recent version of the MinGW-w64 C runtime. More pressingly, GitHub Actions has recently updated its MSYS2 version to include the latest MinGW-w64, and since haskell/actions uses these Chocolately installers to install cabal, this means that the vast majority of Windows CI setups are now effectively broken due to the augmented LIBRARY_PATH.
  2. Even on GHC 9.4, which doesn't suffer from GHC#21111, augmenting LIBRARY_PATH is the wrong choice, since GHC 9.4 ships a Clang-based toolchain instead of a MinGW-w64–based one. Since the ABI that Clang uses is different from what MinGW-w64 uses, libraries that are built with MinGW-w64 are often not compatible with Clang. A more correct thing to put on the LIBRARY_PATH would be /clang64/lib, but even then, that would only work for GHC 9.4 or later.

For these reasons, I propose that the Chocolately installers not add directories from MSYS2 to the extra-lib-dirs.

Azure Pipelines: cabal extra-lib-dirs points to non existent dir

Hi @Mistuke ! First of all thanks for chocolatey packages, they are the soul of haskell ci for windows

I am starting to use it in azure and the ps script is adding a extra-lib-dir that does not exist in azure.
So the builds are littered with the warning:

ghc.exe: addLibrarySearchPath: C:\tools\msys64\mingw64\lib (Win32 error 3): The system cannot find the path specified.

azure has a mingw installation; https://github.com/actions/virtual-environments/blob/master/images/win/Windows2019-Readme.md#mingw but no a msys64 one?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.