mistuke / cabalchoco Goto Github PK
View Code? Open in Web Editor NEWChocolatey sources for pure Cabal installs
License: MIT License
Chocolatey sources for pure Cabal installs
License: MIT License
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:
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
.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
.
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?
Can we have support for cabal-3.4 release candidate?
I can see cabal-3.4.0.0-rc3
listed, but it seems broken:
https://gist.github.com/choco-bot/3c4b83125a8bae73d1aecd195aa10e27
Genuinely curious, I usually don't even think about these sort of things but it struck me because it is so out of place and hilarious.
See https://downloads.haskell.org/~cabal/cabal-install-3.4.0.0/cabal-install-3.4.0.0-x86_64-windows.zip for the Windows bindist.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.